Class: InteractionBase â
Hierarchy â
InteractionBase
âŗ
Interaction
Implements â
Table of contents â
Constructors â
Properties â
- target
- canvas
- selector
- running
- config
- cursor
- bottomList
- shrinkCanvasBounds
- downData
- hoverData
- focusData
- downTime
- overPath
- enterPath
- waitMenuTap
- waitRightTap
- waitTap
- longPressTimer
- longPressed
- tapCount
- tapTimer
- dragger
- transformer
- __eventIds
- defaultPath
- downKeyMap
Accessors â
- dragging
- transforming
- moveMode
- canHover
- isDragEmpty
- isMobileDragEmpty
- isHoldMiddleKey
- isHoldRightKey
- isHoldSpaceKey
- m
- p
- hitRadius
Methods â
- start
- stop
- receive
- pointerDown
- pointerMove
- pointerMoveReal
- pointerUp
- pointerCancel
- menu
- menuTap
- createTransformer
- move
- zoom
- rotate
- transformEnd
- wheel
- multiTouch
- keyDown
- keyUp
- pointerHover
- pointerOverOrOut
- pointerEnterOrLeave
- touchLeave
- tap
- findPath
- isRootPath
- isTreePath
- checkPath
- canMove
- isDrag
- isPress
- isHover
- isFocus
- cancelHover
- updateDownData
- updateHoverData
- updateCursor
- setCursor
- getLocal
- emitTap
- emitDoubleTap
- pointerWaitCancel
- tapWait
- tapWaitCancel
- longPressWait
- longTap
- longPressWaitCancel
- __onResize
- __listenEvents
- __removeListenEvents
- emit
- destroy
Constructors â
constructor â
âĸ new InteractionBase(target
, canvas
, selector
, userConfig?
): InteractionBase
Parameters â
Name | Type |
---|---|
target | ILeaf |
canvas | IInteractionCanvas |
selector | ISelector |
userConfig? | IInteractionConfig |
Returns â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:70
Properties â
target â
âĸ target: ILeaf
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:16
canvas â
âĸ canvas: IInteractionCanvas
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:17
selector â
âĸ selector: ISelector
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:18
running â
âĸ running: boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:20
config â
âĸ config: IInteractionConfig
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:34
cursor â
âĸ cursor: ICursorType
| ICursorType
[]
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:38
bottomList â
âĸ Optional
bottomList: IPickBottom
[]
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:41
shrinkCanvasBounds â
âĸ shrinkCanvasBounds: IBounds
Implementation of â
IInteraction.shrinkCanvasBounds
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:43
downData â
âĸ downData: IPointerEvent
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:45
hoverData â
âĸ hoverData: IPointerEvent
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:46
focusData â
âĸ focusData: ILeaf
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:47
downTime â
âĸ downTime: number
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:49
overPath â
âĸ Protected
overPath: LeafList
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:51
enterPath â
âĸ Protected
enterPath: LeafList
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:52
waitMenuTap â
âĸ Protected
waitMenuTap: boolean
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:54
waitRightTap â
âĸ Protected
waitRightTap: boolean
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:55
waitTap â
âĸ Protected
waitTap: boolean
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:56
longPressTimer â
âĸ Protected
longPressTimer: any
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:57
longPressed â
âĸ Protected
longPressed: boolean
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:58
tapCount â
âĸ Protected
tapCount: number
= 0
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:59
tapTimer â
âĸ Protected
tapTimer: any
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:60
dragger â
âĸ dragger: Dragger
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:62
transformer â
âĸ transformer: ITransformer
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:63
__eventIds â
âĸ Protected
__eventIds: IEventListenerId
[]
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:65
defaultPath â
âĸ Protected
defaultPath: ILeafList
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:66
downKeyMap â
âĸ Protected
downKeyMap: IBooleanMap
= {}
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:68
Accessors â
dragging â
âĸ get
dragging(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:22
transforming â
âĸ get
transforming(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:23
moveMode â
âĸ get
moveMode(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:25
canHover â
âĸ get
canHover(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:26
isDragEmpty â
âĸ get
isDragEmpty(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:28
isMobileDragEmpty â
âĸ get
isMobileDragEmpty(): boolean
Returns â
boolean
Implementation of â
IInteraction.isMobileDragEmpty
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:29
isHoldMiddleKey â
âĸ get
isHoldMiddleKey(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:30
isHoldRightKey â
âĸ get
isHoldRightKey(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:31
isHoldSpaceKey â
âĸ get
isHoldSpaceKey(): boolean
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:32
m â
âĸ get
m(): IMoveConfig
Returns â
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:35
p â
âĸ get
p(): IPointerConfig
Returns â
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:36
hitRadius â
âĸ get
hitRadius(): number
Returns â
number
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:39
Methods â
start â
⸠start(): void
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:84
stop â
⸠stop(): void
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:88
receive â
⸠receive(_event
): void
Parameters â
Name | Type |
---|---|
_event | any |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:93
pointerDown â
⸠pointerDown(data?
, useDefaultPath?
): void
Parameters â
Name | Type |
---|---|
data? | IPointerEvent |
useDefaultPath? | boolean |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:96
pointerMove â
⸠pointerMove(data?
): void
Parameters â
Name | Type |
---|---|
data? | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:120
pointerMoveReal â
⸠pointerMoveReal(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:134
pointerUp â
⸠pointerUp(data?
): void
Parameters â
Name | Type |
---|---|
data? | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:165
pointerCancel â
⸠pointerCancel(): void
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:196
menu â
⸠menu(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:204
menuTap â
⸠menuTap(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:211
createTransformer â
⸠createTransformer(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:220
move â
⸠move(_data
): void
Parameters â
Name | Type |
---|---|
_data | IMoveEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:222
zoom â
⸠zoom(_data
): void
Parameters â
Name | Type |
---|---|
_data | IZoomEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:224
rotate â
⸠rotate(_data
): void
Parameters â
Name | Type |
---|---|
_data | IRotateEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:226
transformEnd â
⸠transformEnd(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:228
wheel â
⸠wheel(_data
): void
Parameters â
Name | Type |
---|---|
_data | IWheelEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:230
multiTouch â
⸠multiTouch(_data
, _list
): void
Parameters â
Name | Type |
---|---|
_data | IUIEvent |
_list | IKeepTouchData [] |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:232
keyDown â
⸠keyDown(data
): void
Parameters â
Name | Type |
---|---|
data | IKeyEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:238
keyUp â
⸠keyUp(data
): void
Parameters â
Name | Type |
---|---|
data | IKeyEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:255
pointerHover â
⸠pointerHover(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:268
pointerOverOrOut â
⸠pointerOverOrOut(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:275
pointerEnterOrLeave â
⸠pointerEnterOrLeave(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:290
touchLeave â
⸠touchLeave(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:305
tap â
⸠tap(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:314
findPath â
⸠findPath(data
, options?
): ILeafList
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
options? | IPickOptions |
Returns â
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:354
isRootPath â
⸠isRootPath(data
): boolean
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:363
isTreePath â
⸠isTreePath(data
): boolean
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:367
checkPath â
⸠checkPath(data
, useDefaultPath?
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
useDefaultPath? | boolean |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:373
canMove â
⸠canMove(data
): boolean
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:377
isDrag â
⸠isDrag(leaf
): boolean
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:382
isPress â
⸠isPress(leaf
): boolean
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:386
isHover â
⸠isHover(leaf
): boolean
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:390
isFocus â
⸠isFocus(leaf
): boolean
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
boolean
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:394
cancelHover â
⸠cancelHover(): void
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:399
updateDownData â
⸠updateDownData(data?
, options?
, merge?
): void
Parameters â
Name | Type |
---|---|
data? | IPointerEvent |
options? | IPickOptions |
merge? | boolean |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:408
updateHoverData â
⸠updateHoverData(data?
): void
Parameters â
Name | Type |
---|---|
data? | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:417
updateCursor â
⸠updateCursor(data?
): void
Parameters â
Name | Type |
---|---|
data? | IPointerEvent |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:424
setCursor â
⸠setCursor(cursor
): void
Parameters â
Name | Type |
---|---|
cursor | ICursorType | ICursorType [] |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:450
getLocal â
⸠getLocal(clientPoint
, updateClient?
): IPointData
Parameters â
Name | Type |
---|---|
clientPoint | IClientPointData |
updateClient? | boolean |
Returns â
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:454
emitTap â
⸠emitTap(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:460
emitDoubleTap â
⸠emitDoubleTap(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:465
pointerWaitCancel â
⸠pointerWaitCancel(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:470
tapWait â
⸠tapWait(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:475
tapWaitCancel â
⸠tapWaitCancel(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:480
longPressWait â
⸠longPressWait(data
): void
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:486
longTap â
⸠longTap(data
): boolean
Parameters â
Name | Type |
---|---|
data | IPointerEvent |
Returns â
boolean
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:494
longPressWaitCancel â
⸠longPressWaitCancel(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:504
__onResize â
⸠__onResize(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:509
__listenEvents â
⸠__listenEvents(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:515
__removeListenEvents â
⸠__removeListenEvents(): void
Returns â
void
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:521
emit â
⸠emit(type
, data
, path?
, excludePath?
): void
Parameters â
Name | Type |
---|---|
type | string |
data | IUIEvent |
path? | ILeafList |
excludePath? | ILeafList |
Returns â
void
Implementation of â
Defined in â
ui/packages/interaction/interaction/src/Interaction.ts:527
destroy â
⸠destroy(): void
Returns â
void