Releases: pixijs/storybook
Releases · pixijs/storybook
v1.0.0
v0.1.0
What's Changed
With this release there is now an appReady
promise that you can await to always make sure the Application
is always ready since PixiJS v8 requires an await
export const Story: StoryFn<typeof args> = (currentArgs, context) => {
const view = new Container()
context.parameters.pixi.appReady.then(()=>{
.. add stuff to container
})
return { view }
})
There is now also a helper class that does the await for you and gives you an init
hook to start adding everything too
import { PixiStory, StoryFn } from '@pixi/storybook-renderer';
const args = {
text: 'Click me!',
};
export const Story: StoryFn<typeof args> = (currentArgs, context) =>
new PixiStory({
context,
init: (view) =>
{
view.addChild(new Text(currentArgs.text));
},
resize: (view, width, height)=> view.position.set(width / 2, height / 2),
update: (view , ticker: Ticker | number) => {},
destroy: (view)=> {}
});
export default {
...
};
Full Changelog: v0.0.6...v0.1.0
v0.0.6
- Bumped storybook to v7 official release
Full Changelog: v0.0.5...v0.0.6