Skip to content

0.5.0

Choose a tag to compare

@hitomihiumi hitomihiumi released this 13 May 12:16
· 85 commits to main since this release

Changelog

Version 0.5.0

Features

  • Path2DLayer: Added a new layer type for SVG path drawing.
  • Canvas Resizing:
    • Added the ability to resize the canvas and all layers proportionally.
    • Introduced utility functions for scaling dimensions and positions.
    • Added a resize.ts test script.
  • Export System:
    • Introduced the Exporter class to replace the saveFile utility.
    • Added support for YAML and JSON export formats.
    • Improved SVG export functionality.
  • Animation Enhancements:
    • Improved frame buffer management with configurable buffer size.
    • Enhanced image merging with alpha composition.

Refactoring

  • Project Structure:
    • Reorganized type definitions into consolidated modules.
    • Improved import/export patterns across the codebase.
  • API Improvements:
    • Updated constructors to use options objects instead of boolean parameters.
    • Changed Group to use .layers instead of .components.
    • Renamed enums for consistency (e.g., Export.Buffer → Export.BUFFER).
  • Type Definitions:
    • Added comprehensive JSDoc comments.
    • Defined the AnyFilter type with specific string literals.
    • Enhanced ScaleType and ColorType with more specific patterns.

Dependencies

  • Removed:
    • jimp (0.22.12)
  • Added:
    • js-yaml (^4.1.0)
    • @types/js-yaml (^4.0.9)

Testing

  • Added iotest.ts for testing file I/O with JSON.