Skip to content

5.1.0

Latest
Compare
Choose a tag to compare
@lavrton lavrton released this 01 Apr 01:48
· 143 commits to master since this release
  • API Changes
    • evt.targetNode has changed to evt.target when using event delegation
    • the native mouse/touch event object is now referenced by the evt key in the Kinetic event object. i.e., if you want to access the mouse x position relative to the entire page, you would do this: shape.on('mousemove', function(evt) { var mouseX = evt.evt.clientX});
  • New Features
    • new FastLayer for ultra fast rendering. If you don't need node nesting, mouse and touch interactions, or event pub/sub, you should use FastLayer instead of Layer to create your layers. It renders about 2x faster than normal layers.
    • Now passing a Kinetic event object to event handlers which contains a target, type, and evt key that points to the native event object
    • you can now configure if Kinetic should use degrees or radians via the Kinetic.angleDeg flag. By default it is true. You can set it to false if you'd like to use radians.
  • Bug Fixes
    • when users have a browser zoom not equal to 100%, the stage now renders correctly
    • drag and drop on Android now works much better
    • Fix memory leak on stage destroy
    • hasShadow now works correctly after setting shadowEnabled attribute
    • clone method doesn't clone id attribute
    • you can clone stage. New container will be automaticaly create, but not added to page.
  • Enhancements
    • Animations are now much much smoother. Made several optimizations in the Animation class.
    • improved mobile drag and drop performance
    • Now you can change frame rate of sprite during animation
    • HammerJS support for KineticJS nodes.
    • Experimental NodeJS support
    • isRunning function for Sprite
    • optional filter function for getChildren method
    • add multiple children to container at once: layer.add(rect, circle, group)
    • add works as moveTo if node already has parent container
    • improved performance of starting and stopping multiple tweens at once
    • size method is now overloaded. You can use it to get or set node sizes