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

    Interface SnapTarget<TPose>

    SnapTarget — where a dragged node would re-parent to if released.

    slotPose is the pose (in world coordinates) the node should snap to within the target. metadata is an opaque pass-through for app-specific snap details (slot index, visual hint, etc.).

    interface SnapTarget<TPose = unknown> {
        metadata?: unknown;
        parentId: string;
        slotPose: TPose;
    }

    Type Parameters

    • TPose = unknown
    Index

    Properties

    metadata?: unknown
    parentId: string
    slotPose: TPose