Components Interactions Examples Tutorials API FAQ
Options
Menu

Hierarchy

Index

Properties

Protected _componentAttachedTo

_componentAttachedTo: Component

Private _constrainedToComponent

_constrainedToComponent: any

Private _dragCallbacks

_dragCallbacks: any

Private _dragEndCallbacks

_dragEndCallbacks: any

Private _dragOrigin

_dragOrigin: any

Private _dragStartCallbacks

_dragStartCallbacks: any

Private _dragging

_dragging: any

Private _mouseDispatcher

_mouseDispatcher: any

Private _mouseDownCallback

_mouseDownCallback: any

Private _mouseMoveCallback

_mouseMoveCallback: any

Private _mouseUpCallback

_mouseUpCallback: any

Private _touchDispatcher

_touchDispatcher: any

Private _touchEndCallback

_touchEndCallback: any

Private _touchMoveCallback

_touchMoveCallback: any

Private _touchStartCallback

_touchStartCallback: any

Methods

Protected _anchor

Private _doDrag

  • _doDrag(point: any, event: any): any

Private _endDrag

  • _endDrag(point: any, event: any): 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.

Private _startDrag

  • _startDrag(point: any, event: any): any

Private _translateAndConstrain

  • _translateAndConstrain(p: any): any

Protected _translateToComponentSpace

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

constrainedToComponent

  • constrainedToComponent(): boolean
  • constrainedToComponent(constrainedToComponent: boolean)
  • Gets whether the Drag Interaction constrains Points passed to its callbacks to lie inside its Component.

    If true, when the user drags outside of the Component, the closest Point inside the Component will be passed to the callback instead of the actual cursor position.

    Returns boolean

  • Sets whether the Drag Interaction constrains Points passed to its callbacks to lie inside its Component.

    If true, when the user drags outside of the Component, the closest Point inside the Component will be passed to the callback instead of the actual cursor position.

    Parameters

    • constrainedToComponent: boolean

detachFrom

enabled

  • enabled(): boolean
  • enabled(enabled: boolean)

offDrag

offDragEnd

offDragStart

onDrag

onDragEnd

onDragStart

Generated using TypeDoc