Version 1.1.0
This release brings several new features and improvements, most notably support for storing business data as Shape Data, and some error corrections.
There are no incompatible changes.
New Features and Improvements
-
Added support for the
PropertiesandActionssections of the VSDX format. User data can now be added to shapes as Shape Data, and the newShapeDataProcessingStepmakes it easy to add the data of an `IModelItem’s tag as shape data. -
The default style sheet is now compatible with the stencils that come with Microsoft Visio.
-
The new context parameter of the
ExportFinishedevent listener allows the user to correctly call methods likeSvgSupport.applySvg. -
The
ExportFinishedevent listener is now allowed to return a promise, thus making it optionally asynchronous. Synchronous event listeners are still supported. -
The
SvgSupportclass now properly supports opacity and alpha values on strokes and fills, and has initial support forstroke-dasharray. -
The
SvgSupport.applySvgmethod now also accepts an Element as input. -
Added support for the
ClippingPathcell of theForeignShapesection, which allows clipping bitmap images at arbitrary paths.
Bugfixes
-
Added missing parameters of the
VsdxCollection.sortmethod in the typings. -
Removed unused function types from the typings.
-
Fixed signature and implementation of the
StyleSheets.createmethod. Itsnameparameter was missing in the options object. -
Parameters of the following methods are now correctly marked as optional:
Connections.create,MasterShapes.createShape,StyleSheets.create,Value.angle,Value.bool,Value.scalar,Value.number,Value.string,Value.font,Value.enum, andValue.point. -
Fixed a bug in the formula interpreter that resulted in incorrect "Themed" values in user-defined cells.
-
Fixed writing of the
X/YDynamicsandX/YBehaviorcells of theControlssection.