Viewer - Interaction
    Preparing search index...

    Function addInteractionData

    • Add interaction data to the node.

      If the node already has interaction data, the function will remove the interaction data and add the new interaction data. Then the function will update the version of the node.

      Parameters

      • node: ITreeNode
      • interactionDataSettings: {
            drag?: boolean;
            dragAnchors?: {
                id: string;
                position: vec3;
                rotation?: { angle: number; axis: vec3 };
            }[];
            dragOrigin?: vec3;
            hover?: boolean;
            select?: boolean;
        }
      • componentId: string

      Returns void