Fray Electron
    Preparing search index...

    Interface LayoutSplit

    Binary divider joining two layout nodes; ratio is the first child's share of available space.

    interface LayoutSplit {
        direction: "horizontal" | "vertical";
        first: LayoutNode;
        id: string;
        kind: "split";
        ratio: number;
        second: LayoutNode;
    }
    Index
    direction: "horizontal" | "vertical"

    Axis along which the two children are arranged.

    first: LayoutNode

    First child in split order; its share is controlled by ratio.

    id: string

    Stable identifier unique among layout nodes.

    kind: "split"
    ratio: number

    Fraction of available axis size allocated to the first child, from 0 to 1.

    second: LayoutNode

    Second child in split order, occupying the remaining axis space.