Class ScaleInteraction

A class to handle events on a TransformationHandler. Should be used with TransformationHandler created for mode TransformationMode.SCALE.. If the handlers are dragged, the scaled event will be raised.

Hierarchy

Constructors

Methods

  • Sets the interaction active. Use boolean (true|false) to toggle default behavior. Pass it a bitmask of EventType to change the active state. Call without arguments to reset the default active, modification key and pointer Key behavior

    Parameters

    • Optional active: number | boolean

    Returns void

Properties

_getScaleEvent: null | GetScaleCallback = null
_transformationHandler: null | TransformationHandler
active: number

The current active bitmask for EventType

id: string

A unique identifier for this interaction

modificationKey: ModificationKeyType

The current active ModificationKeyType

pointerKey: PointerKeyType

The currently active PointerKeyType

scaled: VcsEvent<ScaleEvent> = ...

Event raised if the handlers are dragged. The resulting array is of type [sx, sy, sz] where all numbers are considered to be deltas to the previous event (where 1 means no scaling).

Generated using TypeDoc