Options
All
  • Public
  • Public/Protected
  • All
Menu

Viewer - Transformation Tools

Index

Type Aliases

EventResponseMapping: { transformation_tools.matrixChanged: ITransformationToolsEvent }

Definition of the event response mapping for transform tools events. This mapping is used to map the event type to the corresponding event interface.

Type declaration

RectangleTransformSettings: { plane: PlaneRestrictionProperties; corners?: { bottomLeft?: boolean; bottomRight?: boolean; topLeft?: boolean; topRight?: boolean }; edgeControls?: { bottom?: boolean; left?: boolean; right?: boolean; top?: boolean }; rotation?: { handleDistance?: number; max?: number; min?: number; step?: number; stepThreshold?: number; visualization?: Partial<IVisualizationSettings> }; scaling?: { step?: number; uMax?: number; uMin?: number; uniform?: boolean; vMax?: number; vMin?: number; visualization?: Partial<IVisualizationSettings> } } & Settings

Functions

  • updateTransformation(node: ITreeNode, transformation?: mat4): void
  • Update the transform control matrix of a node.

    If a transformation is provided, the transform control matrix is updated. If no transformation is provided, the transform control matrix is removed.

    Parameters

    • node: ITreeNode

      The node to update the transform control matrix of.

    • Optional transformation: mat4

      The transformation to apply to the transform control matrix.

    Returns void