Class: MoveEvent โ
Hierarchy โ
โณ
MoveEvent
Implements โ
Table of contents โ
Constructors โ
Properties โ
- origin
- type
- phase
- isStopDefault
- isStop
- isStopNow
- BEFORE_DRAG
- DRAG
- OVER
- OUT
- ENTER
- LEAVE
- moveX
- moveY
- totalX
- totalY
- list
- data
- BEFORE_MOVE
- START
- MOVE
- END
- moveType
- POINTER
- BEFORE_DOWN
- BEFORE_UP
- DOWN
- UP
- 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
- setList
- setData
- getValidMove
- getMoveInDragBounds
- getPageMove
- getInnerMove
- getLocalMove
- getPageTotal
- getInnerTotal
- getLocalTotal
- getPageBounds
- assignMove
- getBoxPoint
- getInnerPoint
- getLocalPoint
- getPagePoint
- getInner
- getLocal
- getPage
- changeName
Constructors โ
constructor โ
โข new MoveEvent(params
): MoveEvent
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
BEFORE_DRAG โ
โช Static
BEFORE_DRAG: string
= 'drag.before_drag'
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:12
DRAG โ
โช Static
DRAG: string
= 'drag'
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:15
OVER โ
โช Static
OVER: string
= 'drag.over'
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:18
OUT โ
โช Static
OUT: string
= 'drag.out'
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:19
ENTER โ
โช Static
ENTER: string
= 'drag.enter'
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:21
LEAVE โ
โช Static
LEAVE: string
= 'drag.leave'
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:22
moveX โ
โข Readonly
moveX: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:24
moveY โ
โข Readonly
moveY: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:25
totalX โ
โข Readonly
totalX: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:26
totalY โ
โข Readonly
totalY: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:27
list โ
โช Static
list: ILeafList
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:29
data โ
โช Static
data: IObject
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:30
BEFORE_MOVE โ
โช Static
BEFORE_MOVE: string
= 'move.before_move'
Overrides โ
Defined in โ
ui/packages/event/src/MoveEvent.ts:9
START โ
โช Static
START: string
= 'move.start'
Overrides โ
Defined in โ
ui/packages/event/src/MoveEvent.ts:11
MOVE โ
โช Static
MOVE: string
= 'move'
Overrides โ
Defined in โ
ui/packages/event/src/MoveEvent.ts:12
END โ
โช Static
END: string
= 'move.end'
Overrides โ
Defined in โ
ui/packages/event/src/MoveEvent.ts:13
moveType โ
โข Readonly
moveType: "move"
| "drag"
Implementation of โ
Defined in โ
ui/packages/event/src/MoveEvent.ts:15
POINTER โ
โช Static
POINTER: string
= 'pointer'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:10
BEFORE_DOWN โ
โช Static
BEFORE_DOWN: string
= 'pointer.before_down'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:12
BEFORE_UP โ
โช Static
BEFORE_UP: string
= 'pointer.before_up'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:14
DOWN โ
โช Static
DOWN: string
= 'pointer.down'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:16
UP โ
โช Static
UP: string
= 'pointer.up'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:18
TAP โ
โช Static
TAP: string
= 'tap'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:26
DOUBLE_TAP โ
โช Static
DOUBLE_TAP: string
= 'double_tap'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:27
CLICK โ
โช Static
CLICK: string
= 'click'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:29
DOUBLE_CLICK โ
โช Static
DOUBLE_CLICK: string
= 'double_click'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:30
LONG_PRESS โ
โช Static
LONG_PRESS: string
= 'long_press'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:32
LONG_TAP โ
โช Static
LONG_TAP: string
= 'long_tap'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:33
MENU โ
โช Static
MENU: string
= 'pointer.menu'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:35
MENU_TAP โ
โช Static
MENU_TAP: string
= 'pointer.menu_tap'
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:36
width โ
โข Readonly
width: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:38
height โ
โข Readonly
height: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:39
pointerType โ
โข Readonly
pointerType: PointerType
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:40
multiTouch โ
โข Optional
Readonly
multiTouch: boolean
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:41
pressure โ
โข Readonly
pressure: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:42
tangentialPressure โ
โข Optional
Readonly
tangentialPressure: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:43
tiltX โ
โข Optional
Readonly
tiltX: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:44
tiltY โ
โข Optional
Readonly
tiltY: number
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/PointerEvent.ts:45
twist โ
โข Optional
Readonly
twist: number
Implementation of โ
Inherited from โ
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 โ
DragEvent.spaceKey
Defined in โ
ui/packages/event/src/UIEvent.ts:20
left โ
โข get
left(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
DragEvent.left
Defined in โ
ui/packages/event/src/UIEvent.ts:22
right โ
โข get
right(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
DragEvent.right
Defined in โ
ui/packages/event/src/UIEvent.ts:23
middle โ
โข get
middle(): boolean
Returns โ
boolean
Implementation of โ
Inherited from โ
DragEvent.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
setList โ
โธ setList(data
): void
Parameters โ
Name | Type |
---|---|
data | ILeaf | ILeaf [] | ILeafList |
Returns โ
void
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:32
setData โ
โธ setData(data
): void
Parameters โ
Name | Type |
---|---|
data | IObject |
Returns โ
void
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:36
getValidMove โ
โธ getValidMove(leaf
, start
, total
): IPointData
Parameters โ
Name | Type |
---|---|
leaf | ILeaf |
start | IPointData |
total | IPointData |
Returns โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:40
getMoveInDragBounds โ
โธ getMoveInDragBounds(childBox
, dragBounds
, move
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
childBox | IBoundsData |
dragBounds | IBoundsData |
move | IPointData |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:51
getPageMove โ
โธ getPageMove(total?
): IPointData
Parameters โ
Name | Type |
---|---|
total? | boolean |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:73
getInnerMove โ
โธ getInnerMove(relative?
, total?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
total? | boolean |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:78
getLocalMove โ
โธ getLocalMove(relative?
, total?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
total? | boolean |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:84
getPageTotal โ
โธ getPageTotal(): IPointData
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:90
getInnerTotal โ
โธ getInnerTotal(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:94
getLocalTotal โ
โธ getLocalTotal(relative?
): IPointData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf |
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:98
getPageBounds โ
โธ getPageBounds(): IBoundsData
Returns โ
Implementation of โ
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:102
assignMove โ
โธ assignMove(total
): void
Parameters โ
Name | Type |
---|---|
total | boolean |
Returns โ
void
Inherited from โ
Defined in โ
ui/packages/event/src/DragEvent.ts:111
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