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

    Type Alias LayersMap<TNode, TPose>

    LayersMap: {
        cellHighlight?: CustomLayerEntry | null;
        grid?: GridSlotConfig | null;
        scene?: SceneSlotConfig<TNode, TPose> | null;
        selectionOverlay?:
            | SelectionOverlaySlotConfig<TPose>
            | CustomLayerEntry
            | null;
    } & { [customKey: string]: LayerSlotValue<TNode, TPose>
    | undefined }

    Type Parameters

    • TNode extends { id: string }
    • TPose

    Type Declaration

    • OptionalcellHighlight?: CustomLayerEntry | null

      Cell-highlight overlay slot. Canvas falls back to grid.highlight when this slot is absent. Pass a CustomLayerEntry ({ layer }) to supply a pre-built layer directly, or null to suppress even when grid.highlight is set.

    • Optionalgrid?: GridSlotConfig | null
    • Optionalscene?: SceneSlotConfig<TNode, TPose> | null
    • OptionalselectionOverlay?: SelectionOverlaySlotConfig<TPose> | CustomLayerEntry | null

      Selection-overlay slot. Canvas constructs the layer from a SelectionOverlaySlotConfig; pass a CustomLayerEntry ({ layer }) to supply a pre-built layer (e.g. from <SceneCanvas>).