Version 2.0.0
Version 2.0.0 introduces the VsdxIO class, which provides a more powerful API than VsdxExport. It allows
you to render multiple diagrams into a single VSDX file, gives better control over the diagram position, and can
parse and modify existing VSDX files.
Breaking Changes
-
The semantics of the
VsdxExportConfiguration.scaleproperty changed. Previously, it scaled the entire page coordinate system including themarginsandpageSizeproperties. Now, it will only scale the diagram itself and not themarginsandpageSize. This allows for better control over the margins,pageSizeand diagram position. -
When providing a
VsdxExportConfiguration.pageSizein combination withVsdxExport, the diagram will now be scaled to fit the page.
New Features
-
The new
VsdxIOclass allows to render multiple diagrams on one or multiple VSDX pages. It also allows parsing and extending existing VSDX files.
Improvements
-
Removed the dependencies on the Node.js built-in module
fs, making stubbing it with Webpack or other build tools obsolete.
Bugfixes
-
All properties of the
DocumentSettingselement are now serialized with the correct name. -
The
VsdxExportConfiguration.marginsproperty is no longer applied twice, thus the margins are no longer twice as large as specified. To keep the previous default behavior, the initial value of this property is now 60px instead of 30px. -
Added missing required polyfills to the
lib/polyfillsfile and documentation. -
Added missing public API members
Shape.nameIdandShape.masterto typings and documentation.