Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of PixiInspector #8

Open
CyberDex opened this issue Mar 24, 2023 · 2 comments
Open

Add support of PixiInspector #8

CyberDex opened this issue Mar 24, 2023 · 2 comments

Comments

@CyberDex
Copy link
Member

To make it work, we need to expose PIXI.Application instance to a globalThis.

This will let all stories be open to debug and investigate in the Pixi layout perspective.

@Zyie
Copy link
Member

Zyie commented Mar 24, 2023

@CyberDex you can access the app using the startup method

return { 
    view: button.view, 
    resize: () => centerElement(buttonView), 
    startup: (app) => {
        globalThis.PIXI_APP = app;
    }  
};

@CyberDex
Copy link
Member Author

@Zyie as a developer, yes, but it can be helpful to the people, that will learn those stories. They can use pixi inspector to check what is the layout structure, that is created under the hood using the story code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants