Vyi v1.5.0
Vyi 1.5.0 What's Changed
- vyi v1.5.0 by @doubleactii in #4
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 iconsgetHeight()
: Retrieves the height of the component. This is for frames, as well as iconsgetStateCount()
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()
, andaddState()
APIs now allow passing existingIcon
orFrame
instances, offering greater flexibility in handling instances.
Improvements
- Icon and Frame Behavior:
Icon
andFrame
classes no longer require passing the owner during construction. This allows usingIcon
andFrame
instances independently before attaching them to avyi
or anicon
.
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.
- Arrays used for internal storage have been refactored to
-
Code Cleanup:
- Internal code has undergone cleanup for improved readability and maintainability.
New Contributors
- @doubleactii made their first contribution in #4
Full Changelog: v1.4.0...v1.5.0