Please see the Version 3.0 Migration Guide
pptx.colors is deprecated - use pptx.SchemeColorpptx.charts is deprecated - use pptx.ChartTypepptx.shapes is deprecated - use pptx.ShapeTypePlease note that version 2.0.0 enabled some much needed cleanup, but may break your previous code… (however, a quick search-and-replace will fix any issues).
While the changes may only impact cosmetic properties, it’s recommended you test your solutions thoroughly before upgrading PptxGenJS to the 2.0 version.
The library getVersion() method is now a property: version
Option names are now caseCase across all methods:
font_face renamed to fontFacefont_size renamed to fontSizeline_dash renamed to lineDashline_head renamed to lineHeadline_size renamed to lineSizeline_tail renamed to lineTailOptions deprecated in early 1.0 versions (hopefully nobody still uses these):
marginPt renamed to marginrequire('pptxgenjs') no longer returns a singleton instancepptx = new PptxGenJS() will create a single, unique instance