@moxijs/ui - v0.3.5
    Preparing search index...

    Class LayoutWrapper

    Wraps a raw PIXI.js Container to participate in flex layout.

    // Wrap a sprite
    const sprite = PIXI.Sprite.from('texture.png');
    const wrapper = new LayoutWrapper({
    displayObject: sprite,
    style: { flexGrow: 1, margin: 10 }
    });

    // Add to a FlexContainer
    flexContainer.layoutNode.children.push(wrapper.layoutNode);

    // Or add to LayoutTree
    layoutTree.addChild(parent.layoutNode, wrapper.layoutNode);

    Implements

    Index

    Constructors

    Properties

    id: string

    Unique identifier for this participant

    Accessors

    Methods