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
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
getPage
▸ getPage(): IPointData
Returns
Implementation of
Inherited from
Defined in
ui/packages/event/src/UIEvent.ts:36
getInner
▸ getInner(relative?
): IPointData
Parameters
Name | Type |
---|---|
relative? | ILeaf |
Returns
Implementation of
Inherited from
Defined in
ui/packages/event/src/UIEvent.ts:40
getLocal
▸ getLocal(relative?
): IPointData
Parameters
Name | Type |
---|---|
relative? | ILeaf |
Returns
Implementation of
Inherited from
Defined in
ui/packages/event/src/UIEvent.ts:45
changeName
▸ changeName(oldName
, newName
): void
Parameters
Name | Type |
---|---|
oldName | string |
newName | string |
Returns
void