kaplay-layout
    Preparing search index...

    Interface FlexboxComp

    base flex container component interface

    interface FlexboxComp {
        add?: () => void;
        destroy?: () => void;
        draw?: () => void;
        drawInspect?: () => void;
        fixedUpdate?: () => void;
        height: number;
        id?: string;
        inspect?: () => string | null;
        layout: FlexboxStyle;
        require?: string[];
        update?: () => void;
        width: number;
        addLayoutNode(index?: number): void;
        calculateLayout(): void;
        dropLayoutNode(): void;
        insertChild(child: Node, index?: number): void;
        updateLayout(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    add?: () => void

    Event that runs when host game obj is added to scene.

    destroy?: () => void

    Event that runs when obj is removed from scene.

    draw?: () => void

    Event that runs every frame after update.

    drawInspect?: () => void

    Draw debug info in inspect mode

    v3000.0

    fixedUpdate?: () => void

    Event that runs at a fixed frame rate.

    height: number
    id?: string

    Component ID (if left out won't be treated as a comp).

    inspect?: () => string | null

    Debug info for inspect mode.

    layout: FlexboxStyle

    flexbox CSS properties.

    require?: string[]

    What other comps this comp depends on.

    update?: () => void

    Event that runs every frame.

    width: number

    Methods

    • insert the object into its parent layout tree (if it has one). called automatically when the object is added.

      Parameters

      • Optionalindex: number

        index to insert the object into. defaults to appending.

      Returns void

    • insert a child Yoga node. called automatically when a child game object is added.

      Parameters

      • child: Node
      • Optionalindex: number

        index to insert the object into. defaults to appending.

      Returns void