Components Interactions Examples Tutorials API FAQ
Options
Menu

Class Interaction

Hierarchy

Index

Properties

Private _anchorCallback

_anchorCallback: any

Protected _componentAttachedTo

_componentAttachedTo: Component

Private _enabled

_enabled: any

Private _isAnchored

_isAnchored: any

Methods

Protected _anchor

Private _connect

  • _connect(): any

Private _disconnect

  • _disconnect(): any

Protected _isInsideComponent

  • _isInsideComponent(p: Point): boolean
  • Checks whether a Component-coordinate-space Point is inside the Component.

    Parameters

    • p: Point

      A Point in Compoennt-space coordinates.

    Returns boolean

    Whether or not the point is inside the Component.

Protected _translateToComponentSpace

  • Translates an -coordinate-space point to Component-space coordinates.

    Parameters

    • p: Point

      A Point in -space coordinates.

    Returns Point

    The same location in Component-space coordinates.

Protected _unanchor

  • _unanchor(): void

attachTo

  • Attaches this Interaction to a Component. If the Interaction was already attached to a Component, it first detaches itself from the old Component.

    Parameters

detachFrom

  • Detaches this Interaction from the Component. This Interaction can be reused.

    Parameters

enabled

  • enabled(): boolean
  • enabled(enabled: boolean)
  • Gets whether this Interaction is enabled.

    Returns boolean

  • Enables or disables this Interaction.

    Parameters

    • enabled: boolean

      Whether the Interaction should be enabled.

Generated using TypeDoc