v5.0.0
Changes
-
Build Package changes
- Module Support: Transitioned to exclusively support
ECMAScript Modules (ESM)andCommonJS (CJS)formats. - UMD Module: Removed support for the Universal Module Definition (UMD) format to streamline the build process.
- Rollup Configuration: Enhanced the Rollup configuration for better build optimisation.
- Dependencies: All upstream dependencies are now pre-bundled to ensure full compatibility with ESM.
- Module Support: Transitioned to exclusively support
-
Proxy Implementation
- Reactivity: Attributes and Style properties have been made reactive to improve integration with downstream frameworks.
- Layer Reactivity: Introduced reactivity for SVGLayer, CanvasLayer, WEBGLLayer, and PDFLayer to facilitate dynamic updates.
-
Layers
- PDFLayer:
- Separated the PDFLayer from the Canvas renderer module, to keep canvas layer light.
- IntroducedexportCanvasToPdfto enable conversion from Canvas to PDF. - CanvasLayer:
- Added 'onUpdate' hook to Canvas Layer.
- Style properties improvement - standardised styles for consistency across layers..
- Updated Examples - WebglLayer:
- Addressed issues with Polygon and Path nodes by reimplementing them using canvas textures.
- Style properties improvement - unified the syntax for style properties to align with other layers.
- Updated Examples
- PDFLayer:
-
API Renaming:
- The following APIs have been renamed:
- 'CanvasNodeExe' is now 'canvasNodeExe'
- 'CanvasGradient' is now 'canvasGradient'
- 'Path' is now 'path'
- The following APIs have been renamed:
-
Deprecated Function:
- Dropped
path.getPoints(), will be reintroduced in the future with better implementation. - Dropped
canvasLayerInstace.exportPdf(), new utility function added to support this.
- Dropped
-
Updated Examples across Layers.
Full Changelog: v4.4.3...v5.0.0