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.

  • Added support for the Properties and Actions sections of the VSDX format. User data can now be added to shapes as Shape Data, and the new ShapeDataProcessingStep makes 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 ExportFinished event listener allows the user to correctly call methods like SvgSupport.applySvg.

  • The ExportFinished event listener is now allowed to return a promise, thus making it optionally asynchronous. Synchronous event listeners are still supported.

  • The SvgSupport class now properly supports opacity and alpha values on strokes and fills, and has initial support for stroke-dasharray.

  • The SvgSupport.applySvg method now also accepts an Element as input.

  • Added support for the ClippingPath cell of the ForeignShape section, which allows clipping bitmap images at arbitrary paths.

  • Added missing parameters of the VsdxCollection.sort method in the typings.

  • Removed unused function types from the typings.

  • Fixed signature and implementation of the StyleSheets.create method. Its name parameter 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, and Value.point.

  • Fixed a bug in the formula interpreter that resulted in incorrect "Themed" values in user-defined cells.

  • Fixed writing of the X/YDynamics and X/YBehavior cells of the Controls section.