Class: PointerEvent โ
Hierarchy โ
Implements โ
Table of contents โ
Constructors โ
Properties โ
- origin
- type
- phase
- isStopDefault
- isStop
- isStopNow
- POINTER
- BEFORE_DOWN
- BEFORE_MOVE
- BEFORE_UP
- DOWN
- MOVE
- UP
- OVER
- OUT
- ENTER
- LEAVE
- TAP
- DOUBLE_TAP
- CLICK
- DOUBLE_CLICK
- LONG_PRESS
- LONG_TAP
- MENU
- MENU_TAP
- width
- height
- pointerType
- multiTouch
- pressure
- tangentialPressure
- tiltX
- tiltY
- twist
- x
- y
- path
- throughPath
- altKey
- ctrlKey
- shiftKey
- metaKey
- buttons
- target
- current
- bubbles
Accessors โ
Methods โ
- stopDefault
- stopNow
- stop
- getBoxPoint
- getInnerPoint
- getLocalPoint
- getPagePoint
- getInner
- getLocal
- getPage
- changeName
Constructors โ
constructor โ
โข new PointerEvent(params
): PointerEvent
Parameters โ
Name | Type |
---|---|
params | IUIEvent |
Returns โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:31
Properties โ
origin โ
โข Readonly
origin: IObject
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:7
type โ
โข Readonly
type: string
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:9
phase โ
โข Readonly
phase: number
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:14
isStopDefault โ
โข isStopDefault: boolean
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:16
isStop โ
โข isStop: boolean
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:17
isStopNow โ
โข isStopNow: boolean
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:18
POINTER โ
โช Static
POINTER: string
= 'pointer'
Defined in โ
ui/packages/event/src/PointerEvent.ts:10
BEFORE_DOWN โ
โช Static
BEFORE_DOWN: string
= 'pointer.before_down'
Defined in โ
ui/packages/event/src/PointerEvent.ts:12
BEFORE_MOVE โ
โช Static
BEFORE_MOVE: string
= 'pointer.before_move'
Defined in โ
ui/packages/event/src/PointerEvent.ts:13
BEFORE_UP โ
โช Static
BEFORE_UP: string
= 'pointer.before_up'
Defined in โ
ui/packages/event/src/PointerEvent.ts:14
DOWN โ
โช Static
DOWN: string
= 'pointer.down'
Defined in โ
ui/packages/event/src/PointerEvent.ts:16
MOVE โ
โช Static
MOVE: string
= 'pointer.move'
Defined in โ
ui/packages/event/src/PointerEvent.ts:17
UP โ
โช Static
UP: string
= 'pointer.up'
Defined in โ
ui/packages/event/src/PointerEvent.ts:18
OVER โ
โช Static
OVER: string
= 'pointer.over'
Defined in โ
ui/packages/event/src/PointerEvent.ts:20
OUT โ
โช Static
OUT: string
= 'pointer.out'
Defined in โ
ui/packages/event/src/PointerEvent.ts:21
ENTER โ
โช Static
ENTER: string
= 'pointer.enter'
Defined in โ
ui/packages/event/src/PointerEvent.ts:23
LEAVE โ
โช Static
LEAVE: string
= 'pointer.leave'
Defined in โ
ui/packages/event/src/PointerEvent.ts:24
TAP โ
โช Static
TAP: string
= 'tap'
Defined in โ
ui/packages/event/src/PointerEvent.ts:26
DOUBLE_TAP โ
โช Static
DOUBLE_TAP: string
= 'double_tap'
Defined in โ
ui/packages/event/src/PointerEvent.ts:27
CLICK โ
โช Static
CLICK: string
= 'click'
Defined in โ
ui/packages/event/src/PointerEvent.ts:29
DOUBLE_CLICK โ
โช Static
DOUBLE_CLICK: string
= 'double_click'
Defined in โ
ui/packages/event/src/PointerEvent.ts:30
LONG_PRESS โ
โช Static
LONG_PRESS: string
= 'long_press'
Defined in โ
ui/packages/event/src/PointerEvent.ts:32
LONG_TAP โ
โช Static
LONG_TAP: string
= 'long_tap'
Defined in โ
ui/packages/event/src/PointerEvent.ts:33
MENU โ
โช Static
MENU: string
= 'pointer.menu'
Defined in โ
ui/packages/event/src/PointerEvent.ts:35
MENU_TAP โ
โช Static
MENU_TAP: string
= 'pointer.menu_tap'
Defined in โ
ui/packages/event/src/PointerEvent.ts:36
width โ
โข Readonly
width: number
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:38
height โ
โข Readonly
height: number
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:39
pointerType โ
โข Readonly
pointerType: PointerType
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:40
multiTouch โ
โข Optional
Readonly
multiTouch: boolean
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:41
pressure โ
โข Readonly
pressure: number
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:42
tangentialPressure โ
โข Optional
Readonly
tangentialPressure: number
Implementation of โ
IPointerEvent.tangentialPressure
Defined in โ
ui/packages/event/src/PointerEvent.ts:43
tiltX โ
โข Optional
Readonly
tiltX: number
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:44
tiltY โ
โข Optional
Readonly
tiltY: number
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:45
twist โ
โข Optional
Readonly
twist: number
Implementation of โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:46
x โ
โข Readonly
x: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:10
y โ
โข Readonly
y: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:11
path โ
โข Readonly
path: ILeafList
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:13
throughPath โ
โข Optional
Readonly
throughPath: ILeafList
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:14
altKey โ
โข Readonly
altKey: boolean
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:16
ctrlKey โ
โข Readonly
ctrlKey: boolean
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:17
shiftKey โ
โข Readonly
shiftKey: boolean
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:18
metaKey โ
โข Readonly
metaKey: boolean
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:19
buttons โ
โข Readonly
buttons: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:25
target โ
โข Readonly
target: ILeaf
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:27
current โ
โข Readonly
current: ILeaf
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:28
bubbles โ
โข Readonly
bubbles: boolean
= true
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:29
Accessors โ
spaceKey โ
โข get
spaceKey(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
UIEvent.spaceKey
Defined in โ
ui/packages/event/src/UIEvent.ts:20
left โ
โข get
left(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
UIEvent.left
Defined in โ
ui/packages/event/src/UIEvent.ts:22
right โ
โข get
right(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
UIEvent.right
Defined in โ
ui/packages/event/src/UIEvent.ts:23
middle โ
โข get
middle(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
UIEvent.middle
Defined in โ
ui/packages/event/src/UIEvent.ts:24
Methods โ
stopDefault โ
โธ stopDefault(): void
Returns โ
void
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:25
stopNow โ
โธ stopNow(): void
Returns โ
void
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:30
stop โ
โธ stop(): void
Returns โ
void
Implementation of โ
Inherited from โ
Defined in โ
leafer/packages/event/src/Event.ts:36
getBoxPoint โ
โธ getBoxPoint(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:36
getInnerPoint โ
โธ getInnerPoint(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:41
getLocalPoint โ
โธ getLocalPoint(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:46
getPagePoint โ
โธ getPagePoint(): IPointData
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:51
getInner โ
โธ getInner(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:56
getLocal โ
โธ getLocal(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:57
getPage โ
โธ getPage(): IPointData
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/UIEvent.ts:58
changeName โ
โธ changeName(oldName
, newName
): void
Parameters โ
Name | Type |
---|---|
oldName | string |
newName | string |
Returns โ
void