windease API reference - v0.6.0
    Preparing search index...

    Interface LayoutItem

    interface LayoutItem {
        hints?: { maxSize?: Size; minSize?: Size; preferredSize?: Size };
        id: string;
        meta?: Record<string, unknown>;
        placement?: { size?: { h?: number; w?: number } };
    }
    Index

    Properties

    hints?: { maxSize?: Size; minSize?: Size; preferredSize?: Size }

    Type Declaration

    • OptionalmaxSize?: Size

      Ceiling honored by the strip / stack / split strategies along their main axis (and by split's ratio/explicit clamping).

    • OptionalminSize?: Size
    • OptionalpreferredSize?: Size
    id: string
    meta?: Record<string, unknown>

    Free-form per-item meta carried over from the zone's itemMeta map. Strategies can read flags like pinned here; consumers set values via store.setItemMeta / store.patchItemMeta.

    placement?: { size?: { h?: number; w?: number } }

    Per-membership placement intent projected from node.slot.placement. size is the public "fixed-px pane" API: set it via store.patchPlacement to pin a pane's main-axis extent. The strip / stack / split strategies honor it; split's gutter drag clears it (reverting to ratio control). Either Size dimension is optional.