Viewer - Interaction
    Preparing search index...

    Class InteractionEngine

    Implements

    Index

    Constructors

    Accessors

    • get closed(): boolean

      The current state of the interaction engine.

      Returns boolean

    • get intersectionOpacity(): number

      The opacity threshold that used to for intersection. (Default: 0) If the object is equal or below the threshold, it is not intersected anymore.

      Example: If the value is set to 0.25, all objects that have an opacity of 0.25 or lower and not intersectable.

      Returns number

    • set intersectionOpacity(value: number): void

      The opacity threshold that used to for intersection. (Default: 0) If the object is equal or below the threshold, it is not intersected anymore.

      Example: If the value is set to 0.25, all objects that have an opacity of 0.25 or lower and not intersectable.

      Parameters

      • value: number

      Returns void

    • get lineIntersectionPercentage(): number

      Returns number

    • set lineIntersectionPercentage(value: number): void

      Parameters

      • value: number

      Returns void

    • get pointIntersectionPercentage(): number

      Returns number

    • set pointIntersectionPercentage(value: number): void

      Parameters

      • value: number

      Returns void

    Methods

    • Add a new interaction manager to the selection of interaction managers. This manager will be fed with all onDown, onMove and onEnd events by the InteractionEngine. The token that is return can be used to remove this interaction manager.

      Parameters

      Returns string

    • Closes the interaction engine and removes all managers that where registered.

      Returns void

    • Parameters

      • event: KeyboardEvent
      • pointerInCanvas: boolean

      Returns void

    • Parameters

      • event: KeyboardEvent
      • pointerInCanvas: boolean

      Returns void

    • Remove an interaction manager with the token returned when adding it.

      Parameters

      • token: string

      Returns boolean