Skip to content

Releases: gitbrent/PptxGenJS

Version 3.3.1

23 Aug 19:47
Compare
Choose a tag to compare

Changed

  • Fixed: Broken pptx has generated if used custom slide layout in v3.3.0 #826 (yhatt)
  • Fixed: lineSpacing option set to decimal triggers repair alert #827 (ReimaFrgos)
  • Updated demos.js to replace all fill:string with fill:ShapeFillProps (gitbrent)

Version 3.3.0

17 Aug 04:28
Compare
Choose a tag to compare

Major Change Summary

  • The addTable() method finally supports auto-paging, including support for repeating table headers!
  • The addText() method text layout engine has been rewritten from scratch and handles every type of layout case now
  • New addText() fit option ('none' | 'shrink' | 'resize') addresses long-standing issues with shrink/resize objects (new demo page as well)
  • Fix for Angular "Buffer is unknown" issue
  • Major update of typescript defs, including tons of documentation that has been added

BREAKING CHANGES

  • TypeScript users: fill property no longer accepts strings, only ShapeFill type now (sorry!)
  • All users: table and textbox text linebreaks may act differently! (a major rewrite to correct long-standing issues with alignment/breakLine finally landed)

Added

  • Added: Auto-Paging finally comes to addTable() #262 (okaiyong)
  • Added: Chart DataTable formatting dataTableFormatCode and valLabelFormatCode #489 (phobos7000) #684 (hanzi)
  • Added: Background image for slides (deprecated bkgd:string with background:BkgdOpts) #610 (thomasowow)
  • Added: shapeName to objects instead of default #724 (Offbeatmammal)
  • Added: valAxisDisplayUnitLabel Option #765 (hysh)
  • Added: Ability to create a hyperlink on a shape #767 (CroniD)

Changed

  • Fixed: complete rewrite of genXmlTextBody for new text run/paragraph generation. Fixes: #369
    #448, #460, #751, #772
  • Fixed: tableToSlides addHeaderToEach finally duplicates all header rows, not just the first one #262 (okaiyong)
  • Fixed colW length mismatch with colspans (Issue #651) #679 (Joshua-rose)
  • Fixed: hyperlink and tooltip property rId is not working? #758 (kuldeept70)
  • Fixed: removed old/unused options from demo #759 (sijmenvos)
  • Fixed: removed Buffer type from index.ts.d #761 (lustigerlurch551)
  • Fixed: addSection does not escape XML unsafe characters #774 (pimlottc-gov)
  • Fixed: Multiple Border Types not supported in Table Cell #775 (jsvishal)
  • Fixed: New ITextOpts fit prop, removed autoFit/shrinkText, new demo slide #779 (DonnaZukowskiPfizer) (ReimaFrgos)
  • Fixed: EMU calculations are not safe (calcPointValue in gen-xml) #781 (CroniD)
  • Fixed: type defs for TableCell.text not correct (gitbrent)
  • Fixed: type defs for ITableOptions s/b TableOptions (gitbrent)

Version 3.2.1

25 May 20:12
Compare
Choose a tag to compare

Changed

  • Fixed: addTable, addText, etc. not working properly inside tableToSlides #715 (Smithvinayakiya)
  • Fixed: Issue links in release notes are broken #749 (pimlottc-gov)
  • Fixed: Type defs were missing ISlideMasterOptions text prop and slideNumber align (gitbrent)
  • Fixed: Type defs misspelled rowW s/b rowH (gitbrent)
  • Fixed: Documentation: Corrected max value for barGapWidthPct (gitbrent)

Version 3.2.0

18 May 03:19
Compare
Choose a tag to compare

Added

Changed

  • Fixed: Placeholder type Body is defaulting in a hanging indent #589 (colmben)
  • Fixed: Text in slides does not override the bullet master #620 (sgenoud)
  • Fixed: Type errors in index.d.ts #672 (Krishnakanth94)
  • Fixed: Typescript defs Slide and ISlide #673 (gytisgreitai)
  • Fixed: Spelling consistent "Presenation" -> "Presentation" typo #694 (ankon)
  • Fixed: Handle errors with promise rejections #695 (ankon)
  • Fixed: Update 'pptx' to 'pres' in README.md #700 (lucidlemon)
  • Fixed: Time units validation #706 (lucasflomuller)
  • Fixed: Add the slide layout name to the generated background image name #726 (jrohland)
  • Fixed: Type issue addTable rows, updated TableCell/TableRow #735 (robertsoaa)
  • Continued improvement of typescript definitions file (gitbrent)

Version 3.1.1

03 Feb 05:40
Compare
Choose a tag to compare

Added

  • TypeScript: Add shapes and font options types #650 (cronin4392)
  • TypeScript: Added correct export of types and ts-def file (pptx.ShapeType.rect, etc) in index.d.ts

Changed

  • Fixed: Re-added "browser" property to package.json to avoid old "fs not found" Angular/webpack issue (Angular 8) #654 (cwilkens)
  • Fixed: Previous release introduced a regression bug and broke addTest placeholder's
  • Fixed: addChart and addImage in the same slide cause an error [fixed via getNewRelId] #655 (JuliaSheleva)

Removed

  • The core-shapes.ts file was removed, shape def collapsed to simple type array, rolled into core-enums.ts and index.d.ts

Version 3.1.0

22 Jan 02:33
Compare
Choose a tag to compare

Added

Changed

  • Fixed: Empty color negative values on barchart #285 (andrei-cs) (Slidemagic)
  • Fixed: Add missing margin type from ITextOpts #643 (cronin4392)
  • Fixed: Scatter plot dataLabelPosition #644 (afarghaly10)
  • Fixed: Added new babel polyfill for IE11; other IE11 fixes in demo, etc. #648 (YakQin)
  • Updated Demo: added support for light/dark mode; new Image slide for rotation; new busy progress modal (gitbrent)

Removed

  • Removed: jsdom pkg is no longer a dependency in package.json (gitbrent)

Version 3.0.1

08 Jan 05:31
Compare
Choose a tag to compare

Changed

  • Fixed: JSZip not found under Node.js #638 (rse)
  • Fixed: react demo fixes and new build for demo-react online (gitbrent)
  • Fixed: added missing catch on media promise.all to handle 404 media links (gitbrent)
  • Fixed: replaced wikimedia links in common/demos.js with github raw content links (gitbrent)

Version 3.0.0

03 Jan 05:39
Compare
Choose a tag to compare

Notice of Breaking Changes

Existing applications MUST BE UPDATED to continue to function.

Changelog

Added

  • Ability to specify numbered list format #452 (mayvazyan)
  • New cat/val axis options: majorTickMark/minorTickMark #473 (RokasDie)
  • Ability to set start number "startAt" for a bullet list of type numbered #554 #555 (bj-mitchell)

Changed

  • Fixed: Set proper MIME type for PPTX presentation #471 (StefanBrand)
  • Fixed: SVG images used to be generated by Node #515 (michaelcbrook)
  • Fixed: SVG support has several issues #528 (RicardoNiepel)
  • Fixed: Downloading PPT in iOS using Safari does not work. File named as UNKNOWN. #540 (mustafagentrit)
  • Fixed: Tables not being displayed after update #559 (emartz404)
  • Fixed: Hyperlink creates malformed slide if it includes "&" #562 (Tehnix)
  • Fixed: Exporting images corrupting file. #578 (joeberth)
  • Fixed: Multiple files getting downloaded if multiple base64 images are added. #581 (akshaymagapu)
  • Fixed: Links in tables won't work on tables generated with autoPage #583 (githuis)
  • Fixed: Added rounding of margin values to avoid invalid XML #633 (kevinresol)

Removed

  • Removed: jQuery is no longer required (!)

Version 2.6.0

25 Sep 04:01
Compare
Choose a tag to compare

Added

Changed

  • Fixed: MIME type is ppt now instead of "application/zip"
  • Fixed: Not Able to add background image from the www source #497 (nish25sp)
  • Fixed: Set proper MIME type for PPTX presentation #471 (StefanBrand)
  • Fixed: lineDash Option is not in documentation #526 (Jank1310)
  • Fixed: Downloading PPT in iOS using Safari does not work. File named as UNKNOWN. #540 (mustafagentrit)
  • Fixed: ReferenceError: strXmlBullet is not defined #587 (Saurabh-Chandil)
  • Fixed: Getting paraPropXmlCore not defined error - line 4200 in pptxgen.bundle.js missing "var" declaration #596 (rajeearyal)

Removed

Version 2.5.0

09 Feb 02:05
Compare
Choose a tag to compare

Added

  • Make Shapes available for a front-end usage #137 (spamforhope)
  • Ability to rotate chart axis labels (catAxisLabelRotate/valAxisLabelRotate) #378 (teejayvanslyke)
  • New Chart Type: 3D bar charts #384 (loictro)
  • New Chart Feature: Add Data Labels to Scatter Charts #420 (ReimaFrgos)
  • Add new chart options: catAxisLabelFontBold,dataLabelFontBold,legendFontFace,valAxisLabelFontBold #426 (BandaSatish07)
  • Add missing jpg content type to fix corrupt presentation for Office365 #435 (antonandreyev)
  • Add catAxisMinVal and catAxisMaxVal #462 (vrimar)
  • New Chart Option: valAxisCrossesAt #474 (ReimaFrgos)
  • Docs: Show how to save as Blob using client browser #478 (crazyx13th)

Changed

  • Fixed: Dynamic Text Options do not apply #427 (sunnyar)
  • Removed: legacy/deprecated attributes from README javascript script tags #431 (efx)
  • Fixed: issue with SlideNumber fontSize float values #432 (efx)
  • Fixed: query and fragment from image URL extension #433 (katsuya-horiuchi)
  • Changed: Replace "$" with "jQuery" to fix integration issues with some applications #436 (antonandreyev)
  • Changed: Export more types to enhance TypeScript support #443 (ntietz)
  • Fixed: Rounding in percentage leads to small deviations #470 (Slidemagic) #475 (ReimaFrgos)
  • Fixed: Hyperlinks causing duplicate relationship ID when other objects on page #477 (ReimaFrgos)
  • Fixed: ordering of paragraph properties #485 (sleepylemur)