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:40
getLocalPoint â
⸠getLocalPoint(relative?
): IPointData
Parameters â
Name | Type |
---|---|
relative? | ILeaf |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/event/src/UIEvent.ts:44
getPagePoint â
⸠getPagePoint(): IPointData
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/event/src/UIEvent.ts:48
getInner â
⸠getInner(relative?
): IPointData
Parameters â
Name | Type |
---|---|
relative? | ILeaf |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/event/src/UIEvent.ts:53
getLocal â
⸠getLocal(relative?
): IPointData
Parameters â
Name | Type |
---|---|
relative? | ILeaf |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/event/src/UIEvent.ts:54
getPage â
⸠getPage(): IPointData
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/event/src/UIEvent.ts:55
changeName â
⸠changeName(oldName
, newName
): void
Parameters â
Name | Type |
---|---|
oldName | string |
newName | string |
Returns â
void