Components Interactions Examples Tutorials API FAQ
Options
Menu

Hierarchy

Index

Constructors

constructor

  • new Touch(svg: SVGElement): Touch
  • This constructor should not be invoked directly.

    constructor

    Parameters

    • svg: SVGElement

      The root to attach to.

    Returns Touch

Properties

Protected _eventToProcessingFunction

_eventToProcessingFunction: object

Type declaration

  • [eventName: string]: function
      • (e: Event): any
      • Parameters

        • e: Event

        Returns any

Private _translator

_translator: any

Static Private _DISPATCHER_KEY

_DISPATCHER_KEY: any

Static Private _TOUCHCANCEL_EVENT_NAME

_TOUCHCANCEL_EVENT_NAME: any

Static Private _TOUCHEND_EVENT_NAME

_TOUCHEND_EVENT_NAME: any

Static Private _TOUCHMOVE_EVENT_NAME

_TOUCHMOVE_EVENT_NAME: any

Static Private _TOUCHSTART_EVENT_NAME

_TOUCHSTART_EVENT_NAME: any

Methods

Protected _addCallbackForEvent

  • _addCallbackForEvent(eventName: string, callback: Function): void

Protected _callCallbacksForEvent

  • _callCallbacksForEvent(eventName: string, ...args: any[]): void

Private _measureAndDispatch

  • _measureAndDispatch(event: any, eventName: any, scope?: any): any
  • Computes the Touch position from the given event, and if successful calls all the callbacks in the provided callbackSet.

    Parameters

    • event: any
    • eventName: any
    • Optional scope: any

    Returns any

Protected _removeCallbackForEvent

  • _removeCallbackForEvent(eventName: string, callback: Function): void

eventInsideSVG

  • eventInsideSVG(event: TouchEvent): boolean

offTouchCancel

offTouchEnd

offTouchMove

offTouchStart

onTouchCancel

onTouchEnd

onTouchMove

onTouchStart

Static getDispatcher

  • getDispatcher(elem: SVGElement): Touch
  • Gets a Touch Dispatcher for the containing elem. If one already exists on that , it will be returned; otherwise, a new one will be created.

    Parameters

    • elem: SVGElement

    Returns Touch

Generated using TypeDoc