Releases: gitbrent/PptxGenJS
Releases · gitbrent/PptxGenJS
Version 3.5.0
Release Summary
- write()/writeFile() method string arguments are deprecated - props object in now the sole arg (
WriteProps/WriteFileProps)
Added
- Enabled JSZip compression #713 (pimlottc-gov)
- Soft line break property:
softBreakBefore#806 (memorsolutions) - More text styles: underline/strike/baseline #854 (wangfengming)
- Support line spacing by multiple:
lineSpacingMultiple#855 (wangfengming) - Chart val axis option: logarithmic scale base:
valAxisLogScaleBase#878 (rkspx)
Changed
- Fixed: Setting the "Wrap text in shape" option #771 (CroniD)
- Fixed:
dataLabelFormatCodeoption 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
Version 3.4.0
Added
- Added:
firstSliceAngle(Pie, Doughnut charts) #666 (ghost) #809 (cronin4392) - Added: Ability to change hyperlink
color#389 (szilagyikinga) #793 (ReimaFrgos) - Added: Horizontal/Vertical flip capability to images #824 (luism-s)
- Added: New
titleBoldoption on chart settings #830 (twatson83) - Added: New cat/val-AxisLineColor/AxisLineSize/AxisLineStyle chart options #831 (twatson83)
- Added: New shape options:
angleRangeandarcThicknessRatio#547 (paolochiodi) #861 (apresmoi)
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,valAxisLabelPosprops #829 (twatson83) - Fixed: secondary axis param (
secondaryValAxis) check #832 (twatson83) - Fixed:
addSectionmethod missing return type inindex.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
Version 3.3.1
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.jsto replace all fill:string with fill:ShapeFillProps (gitbrent)
Version 3.3.0
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()fitoption ('none' | 'shrink' | 'resize') addresses long-standing issues with shrink/resize objects (new demo page as well) - Fix for Angular "
Bufferis unknown" issue - Major update of typescript defs, including tons of documentation that has been added
BREAKING CHANGES
- TypeScript users:
fillproperty no longer accepts strings, onlyShapeFilltype 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
dataTableFormatCodeandvalLabelFormatCode#489 (phobos7000) #684 (hanzi) - Added: Background image for slides (deprecated
bkgd:stringwithbackground:BkgdOpts) #610 (thomasowow) - Added:
shapeNameto objects instead of default #724 (Offbeatmammal) - Added:
valAxisDisplayUnitLabelOption #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
addHeaderToEachfinally duplicates all header rows, not just the first one #262 (okaiyong) - Fixed
colWlength mismatch with colspans (Issue #651) #679 (Joshua-rose) - Fixed: hyperlink and tooltip property
rIdis not working? #758 (kuldeept70) - Fixed: removed old/unused options from demo #759 (sijmenvos)
- Fixed: removed
Buffertype fromindex.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
fitprop, removedautoFit/shrinkText, new demo slide #779 (DonnaZukowskiPfizer) (ReimaFrgos) - Fixed: EMU calculations are not safe (calcPointValue in gen-xml) #781 (CroniD)
- Fixed: type defs for
TableCell.textnot correct (gitbrent) - Fixed: type defs for
ITableOptionss/bTableOptions(gitbrent)
Version 3.2.1
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
textprop andslideNumberalign (gitbrent) - Fixed: Type defs misspelled
rowWs/browH(gitbrent) - Fixed: Documentation: Corrected max value for
barGapWidthPct(gitbrent)
Version 3.2.0
Added
- Added: New chart type: Stacked Area Charts #333 (fordaaronj)
- Added: Sections can now be created #349 (atulsingh0913)
- Added: New bullet option
marginPtto control left indent margin #504 (Cyan005)
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
Added
- TypeScript: Add shapes and font options types #650 (cronin4392)
- TypeScript: Added correct export of types and ts-def file (
pptx.ShapeType.rect, etc) inindex.d.ts
Changed
- Fixed: Re-added "browser" property to
package.jsonto 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.tsfile was removed, shape def collapsed to simple type array, rolled intocore-enums.tsandindex.d.ts
Version 3.1.0
Added
- Added
valAxisDispUnits#606 (AmrutPatil) - Added
dataTableFontSizechart option #622 (MehdiAroui) - Added text glow option #630 (kevinresol)
- Ability to rotate image #639 (alabaki)
- Include types in package.json files #641 (cronin4392)
- Added new chart option
showLeaderLines#642 (cronin4392)
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
Changed
Version 3.0.0
Notice of Breaking Changes
Existing applications MUST BE UPDATED to continue to function.
- See the Version 3.0 Migration Guide
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 (!)