Skip to content

Releases: pixijs/storybook

v1.0.0

03 Jul 15:13
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.0...v1.0.0

v0.1.0

08 Mar 10:31
Compare
Choose a tag to compare

What's Changed

  • Feat: add support for v8 by @Zyie in #17

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

28 Apr 09:19
Compare
Choose a tag to compare
  • Bumped storybook to v7 official release

Full Changelog: v0.0.5...v0.0.6