Interface: IInteraction
Hierarchy
↳
IInteraction
Implemented by
Table of contents
Properties
- target
- canvas
- selector
- running
- dragging
- transforming
- moveMode
- canHover
- isDragEmpty
- isMobileDragEmpty
- isHoldMiddleKey
- isHoldRightKey
- isHoldSpaceKey
- config
- m
- p
- cursor
- hitRadius
- bottomList
- shrinkCanvasBounds
- downData
- hoverData
- downTime
- focusData
Methods
- start
- stop
- destroy
- receive
- pointerDown
- pointerMove
- pointerMoveReal
- pointerUp
- pointerCancel
- multiTouch
- menu
- menuTap
- move
- zoom
- rotate
- keyDown
- keyUp
- findPath
- isRootPath
- isTreePath
- canMove
- isDrag
- isPress
- isHover
- isFocus
- cancelHover
- updateDownData
- updateHoverData
- updateCursor
- setCursor
- getLocal
- emit
Properties
target
• target: ILeaf
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:14
canvas
• canvas: IInteractionCanvas
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:15
selector
• selector: ISelector
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:16
running
• running: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:18
dragging
• Readonly
dragging: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:20
transforming
• Readonly
transforming: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:21
moveMode
• Readonly
moveMode: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:23
canHover
• Readonly
canHover: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:24
isDragEmpty
• Readonly
isDragEmpty: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:26
isMobileDragEmpty
• Readonly
isMobileDragEmpty: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:27
isHoldMiddleKey
• Readonly
isHoldMiddleKey: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:28
isHoldRightKey
• Readonly
isHoldRightKey: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:29
isHoldSpaceKey
• Readonly
isHoldSpaceKey: boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:30
config
• config: IInteractionConfig
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:32
m
• Readonly
m: IMoveConfig
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:33
p
• Readonly
p: IPointerConfig
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:34
cursor
• cursor: ICursorType
| ICursorType
[]
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:36
hitRadius
• Readonly
hitRadius: number
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:37
bottomList
• Optional
bottomList: IPickBottom
[]
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:39
shrinkCanvasBounds
• shrinkCanvasBounds: IBounds
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:41
downData
• downData: IPointerEvent
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:43
hoverData
• hoverData: IPointerEvent
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:44
downTime
• downTime: number
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:45
focusData
• focusData: ILeaf
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:46
Methods
start
▸ start(): void
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/control/IControl.ts:2
stop
▸ stop(): void
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/control/IControl.ts:3
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/control/IControl.ts:4
receive
▸ receive(event
): void
Parameters
Name | Type |
---|---|
event | any |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:48
pointerDown
▸ pointerDown(data?
, defaultPath?
): void
Parameters
Name | Type |
---|---|
data? | IPointerEvent |
defaultPath? | boolean |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:50
pointerMove
▸ pointerMove(data?
): void
Parameters
Name | Type |
---|---|
data? | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:51
pointerMoveReal
▸ pointerMoveReal(data
): void
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:52
pointerUp
▸ pointerUp(data?
): void
Parameters
Name | Type |
---|---|
data? | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:53
pointerCancel
▸ pointerCancel(): void
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:54
multiTouch
▸ multiTouch(data
, list
): void
Parameters
Name | Type |
---|---|
data | IUIEvent |
list | IKeepTouchData [] |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:56
menu
▸ menu(data
): void
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:58
menuTap
▸ menuTap(data
): void
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:59
move
▸ move(data
): void
Parameters
Name | Type |
---|---|
data | IMoveEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:61
zoom
▸ zoom(data
): void
Parameters
Name | Type |
---|---|
data | IZoomEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:62
rotate
▸ rotate(data
): void
Parameters
Name | Type |
---|---|
data | IRotateEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:63
keyDown
▸ keyDown(data
): void
Parameters
Name | Type |
---|---|
data | IKeyEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:65
keyUp
▸ keyUp(data
): void
Parameters
Name | Type |
---|---|
data | IKeyEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:66
findPath
▸ findPath(data
, options?
): ILeafList
Parameters
Name | Type |
---|---|
data | IPointerEvent |
options? | IPickOptions |
Returns
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:68
isRootPath
▸ isRootPath(data
): boolean
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:69
isTreePath
▸ isTreePath(data
): boolean
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:70
canMove
▸ canMove(data
): boolean
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:71
isDrag
▸ isDrag(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:73
isPress
▸ isPress(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:74
isHover
▸ isHover(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:75
isFocus
▸ isFocus(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:76
cancelHover
▸ cancelHover(): void
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:78
updateDownData
▸ updateDownData(data?
, options?
, merge?
): void
Parameters
Name | Type |
---|---|
data? | IPointerEvent |
options? | IPickOptions |
merge? | boolean |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:80
updateHoverData
▸ updateHoverData(data
): void
Parameters
Name | Type |
---|---|
data | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:81
updateCursor
▸ updateCursor(hoverData?
): void
Parameters
Name | Type |
---|---|
hoverData? | IPointerEvent |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:83
setCursor
▸ setCursor(cursor
): void
Parameters
Name | Type |
---|---|
cursor | ICursorType | ICursorType [] |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:84
getLocal
▸ getLocal(clientPoint
, updateClient?
): IPointData
Parameters
Name | Type |
---|---|
clientPoint | IClientPointData |
updateClient? | boolean |
Returns
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:86
emit
▸ emit(type
, data
, path?
, excludePath?
): void
Parameters
Name | Type |
---|---|
type | string |
data | IUIEvent |
path? | ILeafList |
excludePath? | ILeafList |
Returns
void
Defined in
leafer/packages/interface/src/interaction/IInteraction.ts:88