Skip to content

Vyi v1.5.0

Compare
Choose a tag to compare
@doubleactii doubleactii released this 25 Sep 23:55
· 7 commits to main since this release
781ee7d

Vyi 1.5.0 What's Changed

Release Notes

New Features

  • New APIs added:

    • removeIconByName(name: string): Removes an icon by its name.
    • removeIconById(id: string): Removes an icon by its Id.
    • removeFrameByIndex(index: number): Removes a frame by its index.
    • removeStateById(id: string): Removes a state by its Id.
    • removeStateByName(name: string): Removes a state by its name.
    • getWidth(): Retrieves the width of the component. This is for frames, as well as icons
    • getHeight(): Retrieves the height of the component. This is for frames, as well as icons
    • getStateCount() Retrieves the number of states in the icon.
    • getFrameCount() Retrieves the number of frames in the icons.
    • getIconCount() Retrieves the number of icons in the vyi. This is for the vyi instance only

    See docs for more detailed info: https://evitcastudio.github.io/vyi/

  • API Enhancements:

    • addIcon(), addFrame(), and addState() APIs now allow passing existing Icon or Frame instances, offering greater flexibility in handling instances.

Improvements

  • Icon and Frame Behavior:
    • Icon and Frame classes no longer require passing the owner during construction. This allows using Icon and Frame instances independently before attaching them to a vyi or an icon.

Bug Fixes

  • JSDoc Annotations:
    • Fixed incorrectly typed JSDoc annotations to improve the development experience and ensure accurate documentation.

Refactoring & Performance

  • Internal Data Structure Changes:

    • Arrays used for internal storage have been refactored to Maps, resulting in quicker lookup times and more efficient operations.
  • Code Cleanup:

    • Internal code has undergone cleanup for improved readability and maintainability.

New Contributors

Full Changelog: v1.4.0...v1.5.0