Manages touch gestures for scaling and rotating elements.

Hierarchy

  • Context<ConstructionProps>
    • GestureContext

Constructors

  • Creates an instance of GestureContext.

    Parameters

    • contextManager: ContextManager

      The current ContextManager

    • constructorProps: ConstructionProps

      The constructor properties.

    Returns GestureContext

Methods

Properties

constructorProps: ConstructionProps

The constructor properties.

contextManager: ContextManager

The current ContextManager

disposed: boolean = false
enabled: Observable<boolean, never> = ...

Observable indicating whether gesture interactions are enabled. Defaults to true.

maxScale: number = 2

Maximum scale factor. Defaults to 2.

minScale: number = 0.5

Minimum scale factor. Defaults to 0.5.

onRotate: Event<[number]> = ...

Event triggered when rotation occurs.

onScale: Event<[number]> = ...

Event triggered when scaling occurs.

rotation: Observable<number, never> = ...

Observable representing the current rotation value.

rotationSensitivity: number = 1

Sensitivity of rotation. Defaults to 1.

scale: Observable<number, never> = ...

Observable representing the current scale value.