Releases: pixijs-userland/animate
Releases · pixijs-userland/animate
2.0.0-rc2
- Improved asset upgrade script
- Fixes .shapes.json files referenced in the assets.
- Now an NPM recognized script, so you can run
npx pixi-animate-upgrade <options>
. - Added an output format that automatically imports & runs
setup()
, and exports library items by name.
- Added script for creating Typescript definitions (.d.ts files) for Pixi Animate asset files.
npx pixi-animate-type-assets <paths to your files>
- Removed the v1-asset-shim and instead rolled it into a new bundle,
pixi-animate-legacy.js
(in the/dist/
folder with the other IIFE bundle).
v2.0.0-rc1
First release candidate for version 2
Breaking changes:
- Dropped support for PixiJS v4, now supports v5
- The
PIXI.animate
namespace is no longer added to the window (and thePIXI
namespace is no longer required). If you would like to use the namespace, use the IIFE build located inpixi-animate/dist/pixi-animate.js
.- The ambient type declarations to describe that namespace are now in
pixi-animate/dist/pixi-animate-ambient.d.ts
- The ambient type declarations to describe that namespace are now in
- Instead of mixing into the PixiJS display object classes, subclasses are now provided in the library for the added and shorthand methods (
PIXI.animate.Container
, etc). Graphics.c()
is no longer a shorthand forclosePath()
(it overrode thesetColorTransform()
shorthand). Instead, the shorthand iscp()
.- Because PixiJS Graphics class has lost its
addHole()
method, there is no longer anh()
shorthand either. Instead, thebeginHole()
andendHole()
methods are supported withbh()
andeh()
shorthands. - The
SymbolLoader
plugin forLoader
no longer exists, so individual images are no longer added to PIXI's global texture cache by resource name, and shape assets are no longer added to a global shape cache. - The global
ShapesCache
object has been dropped from the pixi-animate API. load()
no longer has so many variants allowed. Instead, the first argument is always the scene that you want to load, followed by either a callback or an options object. If using the legacy shim, pass in the constructor for the main scene MovieClip, as you did in v1.createInstance
now defaults to false, instead of true, when callingload()
.
- The expected asset format is now a contained module (
require()
orimport()
) based one where you must call a setup function and provide a reference to the pixi-animate library.- To use v1 assets, you can include the
pixi-animate/v1-asset-shim.js
file in your project, which will update thePIXI
andPIXI.animate
namespaces with the appropriate changes so that old assets will work (you will have to ensure that thePIXI
andPIXI.animate
namespaces are set up correctly). You may have to use the pixijs-legacy build, the shim in combination with the standard build hasn't been tested. - If you want to update to the new asset format, a node script is provided to replace v1 assets with their v2 equivalent:
pixi-animate/scripts/assetConversion.js
. See the readme for usage.- In this release, the script does not update graphics shape data for the closePath/hole changes mentioned above - you'll have to do that manually.
- To use v1 assets, you can include the
Other changes
- Source code is now written in Typescript, so type declarations are built automatically.
v1.3.5
1.3.4
Fixed
- Typings and Docs fixes (#84), (#90), (#87)
- Update documentation website link (#83)
- Fix frame actions on first frame getting skipped on loop (#72)
- Correct recalculation of current time on MovieClip FPS change (#89)
- Animator: prevent overshooting end frame (#86)
Changed
- MovieClips now respond to changes to SharedTicker.speed (#82)
Added
- Support no stage option with the load function (#81)
Contributors
- Eric Ente (@ericente)
- Jesse Gavin (@jessegavin)
- Pavel (@pbalmasov)
- King Wang (@k8w)
1.3.3
Fixed
- Calling
next()
ifresource.data
doesn't exist in SymbolLoader #53 - Use
resource.texture
instead ofTexture.fromFrame
#75
Added
- Adds additional
loader
andmetadata
params forPIXI.animate.load
#74
Contributors
- Joe Boyle (@helloitsjoe)
- @stevenalanstark
- @mbittarelli-jibo
1.3.2
Changed
- Removes obsolete resource-loader configuration #46 (thanks @ianmcgregor)
1.3.1
Changed
- Better support for Browserify/Webpack usage of PixiAnimate by making the “main” entry point “lib/index.js” (unbundled modules) instead of “dist/pixi-animate.min.js” (Browserify bundle)
1.3.0
1.1.2
1.1.1
Fixed
- Added missing ambient.d.ts to release.