This module allows your PIXI 5 application to create layouts generate by KROT editor
const { init } = require('krot-pixi'); init(PIXI);
Now you can require yours layouts and create instances
const MyLayout = require('./my-layout'); new MyLayout();
All the objects are accessible by name.
You can also specify class for some objects, they will be put in arrays. Make sure all the names and class names are unique in single layout.
const ui = new MyLayout(); ui.someName.x = 0; ui.someClassName.forEach(object => object.x = 0);