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

    Type Alias SceneViewDrawOne<TData, TLayer, TPose>

    SceneViewDrawOne: (
        node: SceneNode<TData, TLayer, TPose>,
        pose: TPose,
        view: View,
    ) => DrawCommand[]

    Per-node draw function. Mirrors the scene-slot drawOne signature on <SceneCanvas> (SceneSlotConfig.drawOne) so consumers can reuse the same callback (or a simplified variant) between a main canvas and a detached scene-view canvas.

    The function is called once per node in scene.renderOrder(). Returned commands are in world coords; the caller's view is applied at the group level (see renderSceneToCanvas's implementation).

    Type Parameters

    • TData
    • TLayer extends string
    • TPose

    Type Declaration