Class RotateInteraction

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

Hierarchy (view full)

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

    • Optionalactive: number | boolean

    Returns void

Properties

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

rotated: VcsEvent<RotationEvent> = ...

The event raised, if the rings are dragged. Event is raised with the angle delta to the last event in radians.