Skip to content

v5.0.0

Choose a tag to compare

@nswamy14 nswamy14 released this 30 Mar 05:31
· 40 commits to master since this release

Changes

  • Build Package changes

    • Module Support: Transitioned to exclusively support ECMAScript Modules (ESM) and CommonJS (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.
  • 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.
      - Introduced exportCanvasToPdf to 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
  • API Renaming:

    • The following APIs have been renamed:
      - 'CanvasNodeExe' is now 'canvasNodeExe'
      - 'CanvasGradient' is now 'canvasGradient'
      - 'Path' is now 'path'
  • Deprecated Function:

    • Dropped path.getPoints(), will be reintroduced in the future with better implementation.
    • Dropped canvasLayerInstace.exportPdf(), new utility function added to support this.
  • Updated Examples across Layers.

Full Changelog: v4.4.3...v5.0.0