weasel API - v0.8.0
    Preparing search index...

    Interface UseSceneTrivialOptions<TItem>

    Trivial-form options: a flat list of items, no layers, no parenting. The full useScene form is reachable any time by adding systemLayers.

    historyLimit and generateId are accepted because they're orthogonal to the "what's in the scene" question. ops is intentionally omitted — if you need custom ops, your app state already lives outside the "flat list of rects" frame and you should reach for the full UseSceneOptions.

    interface UseSceneTrivialOptions<TItem extends { id: string }> {
        generateId?: () => NodeId;
        historyLimit?: number;
        items: readonly TItem[];
    }

    Type Parameters

    • TItem extends { id: string }
    Index

    Properties

    generateId?: () => NodeId
    historyLimit?: number
    items: readonly TItem[]