Skip to content

Interface: IInteraction

Hierarchy

Implemented by

Table of contents

Properties

Methods

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


cursor

cursor: ICursorType | ICursorType[]

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:34


hitRadius

Readonly hitRadius: number

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:35


bottomList

Optional bottomList: IPickBottom[]

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:37


shrinkCanvasBounds

shrinkCanvasBounds: IBounds

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:39


downData

downData: IPointerEvent

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:41


hoverData

hoverData: IPointerEvent

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:42


downTime

downTime: number

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:43


focusData

focusData: ILeaf

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:44

Methods

start

start(): void

Returns

void

Inherited from

IControl.start

Defined in

leafer/packages/interface/src/control/IControl.ts:2


stop

stop(): void

Returns

void

Inherited from

IControl.stop

Defined in

leafer/packages/interface/src/control/IControl.ts:3


destroy

destroy(): void

Returns

void

Inherited from

IControl.destroy

Defined in

leafer/packages/interface/src/control/IControl.ts:4


receive

receive(event): void

Parameters

NameType
eventany

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:46


pointerDown

pointerDown(data?, defaultPath?): void

Parameters

NameType
data?IPointerEvent
defaultPath?boolean

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:48


pointerMove

pointerMove(data?): void

Parameters

NameType
data?IPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:49


pointerMoveReal

pointerMoveReal(data): void

Parameters

NameType
dataIPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:50


pointerUp

pointerUp(data?): void

Parameters

NameType
data?IPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:51


pointerCancel

pointerCancel(): void

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:52


multiTouch

multiTouch(data, list): void

Parameters

NameType
dataIUIEvent
listIKeepTouchData[]

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:54


menu(data): void

Parameters

NameType
dataIPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:56


menuTap(data): void

Parameters

NameType
dataIPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:57


move

move(data): void

Parameters

NameType
dataIMoveEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:59


zoom

zoom(data): void

Parameters

NameType
dataIZoomEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:60


rotate

rotate(data): void

Parameters

NameType
dataIRotateEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:61


keyDown

keyDown(data): void

Parameters

NameType
dataIKeyEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:63


keyUp

keyUp(data): void

Parameters

NameType
dataIKeyEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:64


findPath

findPath(data, options?): ILeafList

Parameters

NameType
dataIPointerEvent
options?IPickOptions

Returns

ILeafList

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:66


isRootPath

isRootPath(data): boolean

Parameters

NameType
dataIPointerEvent

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:67


isTreePath

isTreePath(data): boolean

Parameters

NameType
dataIPointerEvent

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:68


canMove

canMove(data): boolean

Parameters

NameType
dataIPointerEvent

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:69


isDrag

isDrag(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:71


isPress

isPress(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:72


isHover

isHover(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:73


isFocus

isFocus(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:74


cancelHover

cancelHover(): void

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:76


updateDownData

updateDownData(data?, options?, merge?): void

Parameters

NameType
data?IPointerEvent
options?IPickOptions
merge?boolean

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:78


updateHoverData

updateHoverData(data): void

Parameters

NameType
dataIPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:79


updateCursor

updateCursor(hoverData?): void

Parameters

NameType
hoverData?IPointerEvent

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:81


setCursor

setCursor(cursor): void

Parameters

NameType
cursorICursorType | ICursorType[]

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:82


getLocal

getLocal(clientPoint, updateClient?): IPointData

Parameters

NameType
clientPointIClientPointData
updateClient?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:84


emit

emit(type, data, path?, excludePath?): void

Parameters

NameType
typestring
dataIUIEvent
path?ILeafList
excludePath?ILeafList

Returns

void

Defined in

leafer/packages/interface/src/interaction/IInteraction.ts:86

Released under the MIT License.