Skip to content

Releases: gitbrent/PptxGenJS

Version 3.5.0

31 Mar 01:57

Choose a tag to compare

Release Summary

  • write()/writeFile() method string arguments are deprecated - props object in now the sole arg (WriteProps/WriteFileProps)

Added

Changed

  • Fixed: Setting the "Wrap text in shape" option #771 (CroniD)
  • Fixed: dataLabelFormatCode option creates corrupted file if the value includes quotes #834 (kornarakis) #884 (gazlo)
  • Fixed: Improve typescipt defs: fix dupes, etc #886 (mmarkelov)
  • Fixed: Wrong type definition for placeholder type property #921 (lukevella)

Internal Updates

  • Doc/Website Updates: Docusaurus docs and website updated to v2.0 #924 (gitbrent)

Version 3.4.0

03 Jan 23:44

Choose a tag to compare

Added

Changed

  • Fixed: catAxisLabelPos and valAxisLabelPos options are not working #709 (cpf121)
  • Fixed: logic for dataLabelFormat code in Pie and Donut charts #802 (cronin4392)
  • Fixed: data label position for Pie chart #808 (cronin4392)
  • Fixed: Single data set with a custom color should not create legends for each category #821 (tvt)
  • Fixed: bug when evaluating catAxisLabelPos,valAxisLabelPos props #829 (twatson83)
  • Fixed: secondary axis param (secondaryValAxis) check #832 (twatson83)
  • Fixed: addSection method missing return type in index.d.ts #833 (dylang)
  • Fixed: Align property doesn't work in slide number object #835 (ax2mx)
  • Fixed: Margin doesn't work in slide number object #836 (ax2mx)
  • Fixed: several rounding mistakes for precision, accuracy, and usability #840 (michaelcbrook)
  • Fixed: catAxisMinorTickMark #841 (twatson83)
  • Fixed: colspan/rowspan #852 (wangfengming)
  • Fixed: typo in ts doc #873 (jencii)
  • Fixed: TypeError: Cannot set property 'lIns' of undefined #879 (CroniD)

Internal Updates

  • Library Updates: TypeScript 4, Rollup 2.3 and more #866 (gitbrent)

Version 3.3.1

23 Aug 19:47

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

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

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

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

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

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

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

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 (!)