Fray Electron
    Preparing search index...

    Function insertPanel

    • Inserts a validated panel at the root of an empty layout or beside a target.

      Parameters

      • layout: Layout

        Current tree.

      • panel: LayoutPanel

        Panel definition to add.

      • placement: PanelPlacement | null

        Target id, edge, and new split id; null is valid only for an empty tree.

      Returns Layout

      A new validated layout.

      If ids, placement, or sizing constraints are invalid.