Class: TouchCaptor<N, E, G>
Touch captor class.
Extends
default
<TouchCaptorEvents
,N
,E
,G
>
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Constructors
new TouchCaptor()
new TouchCaptor<
N
,E
,G
>(container
,renderer
):TouchCaptor
<N
,E
,G
>
Parameters
• container: HTMLElement
• renderer: Sigma
<N
, E
, G
>
Returns
TouchCaptor
<N
, E
, G
>
Overrides
Captor<TouchCaptorEvents, N, E, G>.constructor
Defined in
sigma/src/core/captors/touch.ts:64
Properties
container
container:
HTMLElement
Inherited from
Captor.container
Defined in
sigma/src/core/captors/captor.ts:142
enabled
enabled:
boolean
=true
Defined in
sigma/src/core/captors/touch.ts:48
hasMoved
hasMoved:
boolean
=false
Defined in
sigma/src/core/captors/touch.ts:50
isMoving
isMoving:
boolean
=false
Defined in
sigma/src/core/captors/touch.ts:49
lastTap
lastTap:
null
|object
=null
Defined in
sigma/src/core/captors/touch.ts:60
lastTouches
lastTouches:
Touch
[] =[]
Defined in
sigma/src/core/captors/touch.ts:59
lastTouchesPositions?
optional
lastTouchesPositions:Coordinates
[]
Defined in
sigma/src/core/captors/touch.ts:58
movingTimeout?
optional
movingTimeout:number
Defined in
sigma/src/core/captors/touch.ts:53
rawEmitter
rawEmitter:
EventEmitter
<DefaultEventMap
>
Inherited from
Captor.rawEmitter
Defined in
renderer
renderer:
Sigma
<N
,E
,G
>
Inherited from
Captor.renderer
Defined in
sigma/src/core/captors/captor.ts:143
settings
settings:
TouchSettings
=DEFAULT_TOUCH_SETTINGS
Defined in
sigma/src/core/captors/touch.ts:62
startCameraState?
optional
startCameraState:CameraState
Defined in
sigma/src/core/captors/touch.ts:51
startTouchesAngle?
optional
startTouchesAngle:number
Defined in
sigma/src/core/captors/touch.ts:55
startTouchesDistance?
optional
startTouchesDistance:number
Defined in
sigma/src/core/captors/touch.ts:56
startTouchesPositions
startTouchesPositions:
Coordinates
[] =[]
Defined in
sigma/src/core/captors/touch.ts:57
touchMode
touchMode:
number
=0
Defined in
sigma/src/core/captors/touch.ts:52
Methods
addListener()
addListener<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.addListener
Defined in
emit()
emit<
Event
>(type
, ...args
):boolean
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• ...args: Parameters
<TouchCaptorEvents
[Event
]>
Returns
boolean
Inherited from
Captor.emit
Defined in
eventNames()
eventNames<
Event
>():Event
[]
Type Parameters
• Event extends TouchCaptorEventType
Returns
Event
[]
Inherited from
Captor.eventNames
Defined in
getDimensions()
getDimensions():
Dimensions
Returns
Dimensions
Defined in
sigma/src/core/captors/touch.ts:88
getMaxListeners()
getMaxListeners():
number
Returns
number
Inherited from
Captor.getMaxListeners
Defined in
handleLeave()
handleLeave(
e
):void
Parameters
• e: TouchEvent
Returns
void
Defined in
sigma/src/core/captors/touch.ts:118
handleMove()
handleMove(
e
):void
Parameters
• e: TouchEvent
Returns
void
Defined in
sigma/src/core/captors/touch.ts:201
handleStart()
handleStart(
e
):void
Parameters
• e: TouchEvent
Returns
void
Defined in
sigma/src/core/captors/touch.ts:95
kill()
kill():
void
Returns
void
Overrides
Captor.kill
Defined in
sigma/src/core/captors/touch.ts:79
listenerCount()
listenerCount<
Event
>(type
):number
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
Returns
number
Inherited from
Captor.listenerCount
Defined in
listeners()
listeners<
Event
>(type
):TouchCaptorEvents
[Event
][]
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
Returns
TouchCaptorEvents
[Event
][]
Inherited from
Captor.listeners
Defined in
off()
off<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.off
Defined in
on()
on<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.on
Defined in
once()
once<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.once
Defined in
prependListener()
prependListener<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.prependListener
Defined in
prependOnceListener()
prependOnceListener<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.prependOnceListener
Defined in
rawListeners()
rawListeners<
Event
>(type
):TouchCaptorEvents
[Event
][]
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
Returns
TouchCaptorEvents
[Event
][]
Inherited from
Captor.rawListeners
Defined in
removeAllListeners()
removeAllListeners<
Event
>(type
?):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type?: Event
Returns
this
Inherited from
Captor.removeAllListeners
Defined in
removeListener()
removeListener<
Event
>(type
,listener
):this
Type Parameters
• Event extends TouchCaptorEventType
Parameters
• type: Event
• listener: TouchCaptorEvents
[Event
]
Returns
this
Inherited from
Captor.removeListener
Defined in
setMaxListeners()
setMaxListeners(
n
):this
Parameters
• n: number
Returns
this
Inherited from
Captor.setMaxListeners
Defined in
setSettings()
setSettings(
settings
):void
Parameters
• settings: TouchSettings
Returns
void