Viewer
    Preparing search index...

    Interface IDraggableObject

    Properties of a draggable object.

    interface IDraggableObject {
        nameFilter: string;
        restrictions: string[];
        dragAnchors?: { id: string; position: number[]; rotation?: Rotation }[];
        dragOrigin?: number[];
    }
    Index

    Properties

    nameFilter: string

    The name filter for the objects that can be dragged with the defined settings.

    restrictions: string[]

    The ids of the restrictions in the restrictions array to apply for these objects.

    dragAnchors?: { id: string; position: number[]; rotation?: Rotation }[]

    The drag anchors for the object

    The drag anchors can be defined as various points in space that will be transformed according to the node matrix that this data item belongs to. These anchors are used when an object is being dragged instead of the dragOrigin or the default, the intersection with the node.

    Type Declaration

    • id: string

      The id of the anchor

    • position: number[]

      The position of the anchor

    • Optionalrotation?: Rotation

      The rotation of the anchor

    dragOrigin?: number[]

    The drag origin of the object.

    The drag origin can be defined instead of using the default, the intersection with the node, as a dragging origin. If at least one dragAnchors is used, this property will be ignored.