Releases: jeremyckahn/shifty
Releases · jeremyckahn/shifty
3.0.3
3.0.2
3.0.2
3.0.1
3.0.0
In this release
Updated documentation site: https://jeremyckahn.github.io/shifty/doc/
- Convert Shifty to be authored in TypeScript
- Publish ES6 artifacts
- Improve runtime performance
- Remove Core build
- Switch from JSDoc to TypeDoc
- Fix various minor bugs
Breaking changes
Tweenable.formulas
has been renamed toTweenable.easing
tweenConfig.step
has been removed in favor oftweenConfig.render
(behavior and API is unchanged).tweenConfig.attachment
has been removed in favor oftweenConfig.data
(behavior and API is unchanged).Tweenable#tweenable
has been removed.Tweenable#set()
is nowTweenable#setState
.Tweenable#get()
is nowTweenable#state
(a getter, not a method).Tweenable#hasEnded()
is nowTweenable#hasEnded
(a getter, not a method).Tweenable#isPlaying()
is nowTweenable#isPlaying
(a getter, not a method).Tweenable#setScheduleFunction
has been removed. The static methodTweenable.setScheduleFunction
method should be used instead.- Render handler parameters have been reordered:
- In v2, the function signature was
(state: TweenState, data: Data, timeElapsed: number) => void
- In v3, the function signature is
(state: TweenState, timeElapsed: number, data: Data) => void
- In v2, the function signature was
Scene#play()
has been renamed toScene#tween
.Scene#isPlaying()
is nowScene#isPlaying
(a getter, not a method).Scene#playingTweenables()
has been removed.unsetBezierFunction
has been removed.- Shifty "Core" build has been removed.
See
2.20.4
Contains #175, a fix for #175: Scene#resume
will avoid calling Tweenable#resume
for tweens that have ended.
2.20.3
2.20.3
2.20.1
2.20.1
Cubic Bezier array easing support
This release includes a new feature from @hoomanaskari (#171). Now you can specify an array of number
s to represent a cubic Bezier curve! Check out the updated API documentation for this feature:
Implement `Promise<unknown>`
This release contains #160, courtesy of @jspears. Thanks also to @arthuro555 for TypeScript guidance!
Add `shouldScheduleUpdate` method
This release fixes #156 by implementing shouldScheduleUpdate
. It is recommended for use in projects that use both Shifty and Jest.
Thanks to @BoldBigflank for reporting this bug!