Initialization
From a Pixi.js manifest (recommended)
const layout = new MagicLayout({ debug: true });
await layout.createInstancesFromManifest(manifest, 'spines');
createInstancesFromManifest parses the manifest for .atlas / .skel triplets, instantiates each spine, then calls render() which wires the full hierarchy.
From raw data
await layout.createInstancesFromDataArray([
{
skeleton: SkeletonData,
atlasText: '...',
textures: { 'page.png': texture },
},
]);