Vertex Viewer SDK
    Preparing search index...

    Interface VertexViewerTransformWidget

    interface VertexViewerTransformWidget {
        angleUnit: AngleUnitType;
        controller?: TransformController;
        decimalPlaces: number;
        distanceUnit: DistanceUnitType;
        EXPERIMENTAL_undo: () => Promise<void>;
        EXPERIMENTAL_undoKeybindings: boolean;
        interactionThrottle: number;
        position?: Vector3.Vector3;
        rotation?: Euler.Euler;
        rotationHandleScalar: number;
        rotationSnapDegrees?: number;
        rotationSnapKey: ModifierKey;
        showInputs: boolean;
        translationHandleScalar: number;
        viewer?: HTMLVertexViewerElement;
        xRotationDisabled: boolean;
        xTranslationDisabled: boolean;
        xyTranslationDisabled: boolean;
        xzTranslationDisabled: boolean;
        yRotationDisabled: boolean;
        yTranslationDisabled: boolean;
        yzTranslationDisabled: boolean;
        zRotationDisabled: boolean;
        zTranslationDisabled: boolean;
    }
    Index
    angleUnit: AngleUnitType

    The unit to show for rotation inputs. Defaults to degrees.

    AngleUnitType

    'degrees'
    
    controller?: TransformController

    The controller that is responsible for performing transforms.

    decimalPlaces: number

    The number of decimal places to show in the input. Defaults to 1.

    1
    
    distanceUnit: DistanceUnitType

    The unit to show for translation inputs. Defaults to millimeters.

    DistanceUnitType

    'millimeters'
    
    EXPERIMENTAL_undo: () => Promise<void>

    EXPERIMENTAL.

    Performs an undo of the most recent set of transform manipulations, categorized by the last pause in interactivity (pointerup on a handle, Enter press on an input, keyup on an input).

    Note that this does not work repeatedly. I.e. only one undo can be performed, and once another set of transform manipulations is performed, the history is lost.

    EXPERIMENTAL_undoKeybindings: boolean

    EXPERIMENTAL.

    Enables Command+Z and Control+Z keybindings to perform an undo of the previous delta transformation.

    EXPERIMENTAL_undo

    false
    
    interactionThrottle: number

    Specifies the frequency, in milliseconds, to update the transform while interacting with the widget.

    This delay is used to group events happening in quick succession and results in smoother widget movement.

    75
    
    position?: Vector3.Vector3

    The starting position of this transform widget. This position will be updated as transforms occur. Setting this value to undefined will remove the widget.

    rotation?: Euler.Euler

    The starting angle for the transform widget. This rotation will be updated as the rotations occur.

    rotationHandleScalar: number

    Scalar to increase the size of the rotation handles of this widget. Values above zero and below three will result in the best visual representation of the handles, and values above three may produce unexpected results.

    Defaults to 1.

    1
    
    rotationSnapDegrees?: number

    When defined, the widget will snap to the degree of the nearest multiple of the given number when the user is rotating with the widget and holding the key defined by rotationSnapKey. Defaults to undefined.

    rotationSnapKey: ModifierKey

    When rotationSnapDegrees is defined, the widget will snap to the degree of the nearest multiple of the given number when the user is rotating with the widget and holding the key defined here. Defaults to the shift key.

    'shift'
    
    showInputs: boolean

    Whether to show inputs beside the widget handles when they are interacted with. Defaults to true.

    true
    
    translationHandleScalar: number

    Scalar to increase the size of the translation handles of this widget. Values above zero and below three will result in the best visual representation of the handles, and values above three may produce unexpected results.

    Defaults to 1.

    1
    
    viewer?: HTMLVertexViewerElement

    The viewer to connect to transforms. If nested within a , this property will be populated automatically.

    xRotationDisabled: boolean

    Determines whether the x-rotation is disabled on the widget

    false
    
    xTranslationDisabled: boolean

    Determines whether the x-translation is disabled on the widget

    false
    
    xyTranslationDisabled: boolean

    Determines whether the xy-translation is disabled on the widget

    false
    
    xzTranslationDisabled: boolean

    Determines whether the xz-translation is disabled on the widget

    false
    
    yRotationDisabled: boolean

    Determines whether the y-rotation is disabled on the widget

    false
    
    yTranslationDisabled: boolean

    Determines whether the y-translation is disabled on the widget

    false
    
    yzTranslationDisabled: boolean

    Determines whether the yz-translation is disabled on the widget

    false
    
    zRotationDisabled: boolean

    Determines whether the z-rotation is disabled on the widget

    false
    
    zTranslationDisabled: boolean

    Determines whether the z-translation is disabled on the widget

    false