Skip to content

Class: Interaction โ€‹

Hierarchy โ€‹

Table of contents โ€‹

Constructors โ€‹

Properties โ€‹

Accessors โ€‹

Methods โ€‹

Constructors โ€‹

constructor โ€‹

โ€ข new Interaction(target, canvas, selector, userConfig?): Interaction

Parameters โ€‹

NameType
targetILeaf
canvasIInteractionCanvas
selectorISelector
userConfig?IInteractionConfig

Returns โ€‹

Interaction

Inherited from โ€‹

InteractionBase.constructor

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:72

Properties โ€‹

view โ€‹

โ€ข Protected view: HTMLElement

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:21


viewEvents โ€‹

โ€ข Protected viewEvents: IObject

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:23


windowEvents โ€‹

โ€ข Protected windowEvents: IObject

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:24


usePointer โ€‹

โ€ข Protected usePointer: boolean

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:26


useMultiTouch โ€‹

โ€ข Protected useMultiTouch: boolean

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:27


useTouch โ€‹

โ€ข Protected useTouch: boolean

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:28


touchTimer โ€‹

โ€ข Protected touchTimer: any

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:30


touches โ€‹

โ€ข Protected Optional touches: Touch[]

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:31


lastGestureScale โ€‹

โ€ข Protected lastGestureScale: number

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:32


lastGestureRotation โ€‹

โ€ข Protected lastGestureRotation: number

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:33


target โ€‹

โ€ข target: ILeaf

Inherited from โ€‹

InteractionBase.target

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:18


canvas โ€‹

โ€ข canvas: IInteractionCanvas

Inherited from โ€‹

InteractionBase.canvas

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:19


selector โ€‹

โ€ข selector: ISelector

Inherited from โ€‹

InteractionBase.selector

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:20


running โ€‹

โ€ข running: boolean

Inherited from โ€‹

InteractionBase.running

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:22


config โ€‹

โ€ข config: IInteractionConfig

Inherited from โ€‹

InteractionBase.config

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:36


cursor โ€‹

โ€ข cursor: ICursorType | ICursorType[]

Inherited from โ€‹

InteractionBase.cursor

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:40


bottomList โ€‹

โ€ข Optional bottomList: IPickBottom[]

Inherited from โ€‹

InteractionBase.bottomList

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:43


shrinkCanvasBounds โ€‹

โ€ข shrinkCanvasBounds: IBounds

Inherited from โ€‹

InteractionBase.shrinkCanvasBounds

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:45


downData โ€‹

โ€ข downData: IPointerEvent

Inherited from โ€‹

InteractionBase.downData

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:47


hoverData โ€‹

โ€ข hoverData: IPointerEvent

Inherited from โ€‹

InteractionBase.hoverData

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:48


focusData โ€‹

โ€ข focusData: ILeaf

Inherited from โ€‹

InteractionBase.focusData

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:49


downTime โ€‹

โ€ข downTime: number

Inherited from โ€‹

InteractionBase.downTime

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:51


overPath โ€‹

โ€ข Protected overPath: LeafList

Inherited from โ€‹

InteractionBase.overPath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:53


enterPath โ€‹

โ€ข Protected enterPath: LeafList

Inherited from โ€‹

InteractionBase.enterPath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:54


waitMenuTap โ€‹

โ€ข Protected waitMenuTap: boolean

Inherited from โ€‹

InteractionBase.waitMenuTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:56


waitRightTap โ€‹

โ€ข Protected waitRightTap: boolean

Inherited from โ€‹

InteractionBase.waitRightTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:57


waitTap โ€‹

โ€ข Protected waitTap: boolean

Inherited from โ€‹

InteractionBase.waitTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:58


longPressTimer โ€‹

โ€ข Protected longPressTimer: any

Inherited from โ€‹

InteractionBase.longPressTimer

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:59


longPressed โ€‹

โ€ข Protected longPressed: boolean

Inherited from โ€‹

InteractionBase.longPressed

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:60


tapCount โ€‹

โ€ข Protected tapCount: number = 0

Inherited from โ€‹

InteractionBase.tapCount

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:61


tapTimer โ€‹

โ€ข Protected tapTimer: any

Inherited from โ€‹

InteractionBase.tapTimer

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:62


dragger โ€‹

โ€ข Protected dragger: Dragger

Inherited from โ€‹

InteractionBase.dragger

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:64


transformer โ€‹

โ€ข Protected transformer: Transformer

Inherited from โ€‹

InteractionBase.transformer

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:65


__eventIds โ€‹

โ€ข Protected __eventIds: IEventListenerId[]

Inherited from โ€‹

InteractionBase.__eventIds

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:67


defaultPath โ€‹

โ€ข Protected defaultPath: ILeafList

Inherited from โ€‹

InteractionBase.defaultPath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:68


downKeyMap โ€‹

โ€ข Protected downKeyMap: IBooleanMap = {}

Inherited from โ€‹

InteractionBase.downKeyMap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:70

Accessors โ€‹

dragging โ€‹

โ€ข get dragging(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.dragging

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:24


transforming โ€‹

โ€ข get transforming(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.transforming

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:25


moveMode โ€‹

โ€ข get moveMode(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.moveMode

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:27


canHover โ€‹

โ€ข get canHover(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.canHover

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:28


isDragEmpty โ€‹

โ€ข get isDragEmpty(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isDragEmpty

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:30


isMobileDragEmpty โ€‹

โ€ข get isMobileDragEmpty(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isMobileDragEmpty

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:31


isHoldMiddleKey โ€‹

โ€ข get isHoldMiddleKey(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isHoldMiddleKey

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:32


isHoldRightKey โ€‹

โ€ข get isHoldRightKey(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isHoldRightKey

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:33


isHoldSpaceKey โ€‹

โ€ข get isHoldSpaceKey(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isHoldSpaceKey

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:34


m โ€‹

โ€ข get m(): IMoveConfig

Returns โ€‹

IMoveConfig

Inherited from โ€‹

InteractionBase.m

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:37


p โ€‹

โ€ข get p(): IPointerConfig

Returns โ€‹

IPointerConfig

Inherited from โ€‹

InteractionBase.p

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:38


hitRadius โ€‹

โ€ข get hitRadius(): number

Returns โ€‹

number

Inherited from โ€‹

InteractionBase.hitRadius

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:41

Methods โ€‹

__listenEvents โ€‹

โ–ธ __listenEvents(): void

Returns โ€‹

void

Overrides โ€‹

InteractionBase.__listenEvents

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:35


__removeListenEvents โ€‹

โ–ธ __removeListenEvents(): void

Returns โ€‹

void

Overrides โ€‹

InteractionBase.__removeListenEvents

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:86


getTouches โ€‹

โ–ธ getTouches(touches): Touch[]

Parameters โ€‹

NameType
touchesTouchList

Returns โ€‹

Touch[]

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:102


preventDefaultPointer โ€‹

โ–ธ preventDefaultPointer(e): void

Parameters โ€‹

NameType
eUIEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:111


preventDefaultWheel โ€‹

โ–ธ preventDefaultWheel(e): void

Parameters โ€‹

NameType
eUIEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:116


preventWindowPointer โ€‹

โ–ธ preventWindowPointer(e): boolean

Parameters โ€‹

NameType
eUIEvent

Returns โ€‹

boolean

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:121


onKeyDown โ€‹

โ–ธ onKeyDown(e): void

Parameters โ€‹

NameType
eKeyboardEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:126


onKeyUp โ€‹

โ–ธ onKeyUp(e): void

Parameters โ€‹

NameType
eKeyboardEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:130


onContextMenu โ€‹

โ–ธ onContextMenu(e): void

Parameters โ€‹

NameType
ePointerEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:136


onScroll โ€‹

โ–ธ onScroll(): void

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:141


onPointerDown โ€‹

โ–ธ onPointerDown(e): void

Parameters โ€‹

NameType
ePointerEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:146


onPointerMove โ€‹

โ–ธ onPointerMove(e): void

Parameters โ€‹

NameType
ePointerEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:154


onPointerUp โ€‹

โ–ธ onPointerUp(e): void

Parameters โ€‹

NameType
ePointerEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:160


onPointerCancel โ€‹

โ–ธ onPointerCancel(): void

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:166


onMouseDown โ€‹

โ–ธ onMouseDown(e): void

Parameters โ€‹

NameType
eMouseEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:173


onMouseMove โ€‹

โ–ธ onMouseMove(e): void

Parameters โ€‹

NameType
eMouseEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:180


onMouseUp โ€‹

โ–ธ onMouseUp(e): void

Parameters โ€‹

NameType
eMouseEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:185


onMouseCancel โ€‹

โ–ธ onMouseCancel(): void

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:191


onTouchStart โ€‹

โ–ธ onTouchStart(e): void

Parameters โ€‹

NameType
eTouchEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:198


onTouchMove โ€‹

โ–ธ onTouchMove(e): void

Parameters โ€‹

NameType
eTouchEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:215


onTouchEnd โ€‹

โ–ธ onTouchEnd(e): void

Parameters โ€‹

NameType
eTouchEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:223


onTouchCancel โ€‹

โ–ธ onTouchCancel(): void

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:235


multiTouchStart โ€‹

โ–ธ multiTouchStart(e): void

Parameters โ€‹

NameType
eTouchEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:242


multiTouchMove โ€‹

โ–ธ multiTouchMove(e): void

Parameters โ€‹

NameType
eTouchEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:248


multiTouchEnd โ€‹

โ–ธ multiTouchEnd(): void

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:260


getKeepTouchList โ€‹

โ–ธ getKeepTouchList(old, touches): IKeepTouchData[]

Parameters โ€‹

NameType
oldTouch[]
touchesTouch[]

Returns โ€‹

IKeepTouchData[]

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:266


getLocalTouchs โ€‹

โ–ธ getLocalTouchs(points): IPointData[]

Parameters โ€‹

NameType
pointsTouch[]

Returns โ€‹

IPointData[]

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:276


onWheel โ€‹

โ–ธ onWheel(e): void

Parameters โ€‹

NameType
eWheelEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:282


onGesturestart โ€‹

โ–ธ onGesturestart(e): void

Parameters โ€‹

NameType
eIGestureEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:297


onGesturechange โ€‹

โ–ธ onGesturechange(e): void

Parameters โ€‹

NameType
eIGestureEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:305


onGestureend โ€‹

โ–ธ onGestureend(e): void

Parameters โ€‹

NameType
eIGestureEvent

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:324


setCursor โ€‹

โ–ธ setCursor(cursor): void

Parameters โ€‹

NameType
cursorICursorType | ICursorType[]

Returns โ€‹

void

Overrides โ€‹

InteractionBase.setCursor

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:333


eachCursor โ€‹

โ–ธ eachCursor(cursor, list, level?): void

Parameters โ€‹

NameTypeDefault value
cursorICursorType | ICursorType[]undefined
listICursorType[]undefined
levelnumber0

Returns โ€‹

void

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:341


destroy โ€‹

โ–ธ destroy(): void

Returns โ€‹

void

Overrides โ€‹

InteractionBase.destroy

Defined in โ€‹

ui/packages/interaction/interaction-web/src/Interaction.ts:355


start โ€‹

โ–ธ start(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.start

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:86


stop โ€‹

โ–ธ stop(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.stop

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:90


receive โ€‹

โ–ธ receive(_event): void

Parameters โ€‹

NameType
_eventany

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.receive

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:95


pointerDown โ€‹

โ–ธ pointerDown(data?, useDefaultPath?): void

Parameters โ€‹

NameType
data?IPointerEvent
useDefaultPath?boolean

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerDown

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:98


pointerMove โ€‹

โ–ธ pointerMove(data?): void

Parameters โ€‹

NameType
data?IPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerMove

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:122


pointerMoveReal โ€‹

โ–ธ pointerMoveReal(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerMoveReal

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:136


pointerUp โ€‹

โ–ธ pointerUp(data?): void

Parameters โ€‹

NameType
data?IPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerUp

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:167


pointerCancel โ€‹

โ–ธ pointerCancel(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerCancel

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:198


multiTouch โ€‹

โ–ธ multiTouch(data, list): void

Parameters โ€‹

NameType
dataIUIEvent
listIKeepTouchData[]

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.multiTouch

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:205


โ–ธ menu(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.menu

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:214


โ–ธ menuTap(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.menuTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:221


move โ€‹

โ–ธ move(data): void

Parameters โ€‹

NameType
dataIMoveEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.move

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:230


zoom โ€‹

โ–ธ zoom(data): void

Parameters โ€‹

NameType
dataIZoomEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.zoom

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:234


rotate โ€‹

โ–ธ rotate(data): void

Parameters โ€‹

NameType
dataIRotateEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.rotate

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:238


transformEnd โ€‹

โ–ธ transformEnd(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.transformEnd

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:242


keyDown โ€‹

โ–ธ keyDown(data): void

Parameters โ€‹

NameType
dataIKeyEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.keyDown

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:249


keyUp โ€‹

โ–ธ keyUp(data): void

Parameters โ€‹

NameType
dataIKeyEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.keyUp

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:266


pointerHover โ€‹

โ–ธ pointerHover(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerHover

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:279


pointerOverOrOut โ€‹

โ–ธ pointerOverOrOut(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerOverOrOut

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:286


pointerEnterOrLeave โ€‹

โ–ธ pointerEnterOrLeave(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerEnterOrLeave

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:301


touchLeave โ€‹

โ–ธ touchLeave(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.touchLeave

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:316


tap โ€‹

โ–ธ tap(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.tap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:325


findPath โ€‹

โ–ธ findPath(data, options?): ILeafList

Parameters โ€‹

NameType
dataIPointerEvent
options?IPickOptions

Returns โ€‹

ILeafList

Inherited from โ€‹

InteractionBase.findPath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:365


isRootPath โ€‹

โ–ธ isRootPath(data): boolean

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isRootPath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:374


isTreePath โ€‹

โ–ธ isTreePath(data): boolean

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isTreePath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:378


checkPath โ€‹

โ–ธ checkPath(data, useDefaultPath?): void

Parameters โ€‹

NameType
dataIPointerEvent
useDefaultPath?boolean

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.checkPath

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:384


canMove โ€‹

โ–ธ canMove(data): boolean

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.canMove

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:388


isDrag โ€‹

โ–ธ isDrag(leaf): boolean

Parameters โ€‹

NameType
leafILeaf

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isDrag

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:393


isPress โ€‹

โ–ธ isPress(leaf): boolean

Parameters โ€‹

NameType
leafILeaf

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isPress

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:397


isHover โ€‹

โ–ธ isHover(leaf): boolean

Parameters โ€‹

NameType
leafILeaf

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isHover

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:401


isFocus โ€‹

โ–ธ isFocus(leaf): boolean

Parameters โ€‹

NameType
leafILeaf

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.isFocus

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:405


cancelHover โ€‹

โ–ธ cancelHover(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.cancelHover

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:410


updateDownData โ€‹

โ–ธ updateDownData(data?, options?, merge?): void

Parameters โ€‹

NameType
data?IPointerEvent
options?IPickOptions
merge?boolean

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.updateDownData

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:419


updateHoverData โ€‹

โ–ธ updateHoverData(data?): void

Parameters โ€‹

NameType
data?IPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.updateHoverData

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:428


updateCursor โ€‹

โ–ธ updateCursor(data?): void

Parameters โ€‹

NameType
data?IPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.updateCursor

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:435


getLocal โ€‹

โ–ธ getLocal(clientPoint, updateClient?): IPointData

Parameters โ€‹

NameType
clientPointIClientPointData
updateClient?boolean

Returns โ€‹

IPointData

Inherited from โ€‹

InteractionBase.getLocal

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:465


emitTap โ€‹

โ–ธ emitTap(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.emitTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:471


emitDoubleTap โ€‹

โ–ธ emitDoubleTap(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.emitDoubleTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:476


pointerWaitCancel โ€‹

โ–ธ pointerWaitCancel(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.pointerWaitCancel

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:481


tapWait โ€‹

โ–ธ tapWait(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.tapWait

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:486


tapWaitCancel โ€‹

โ–ธ tapWaitCancel(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.tapWaitCancel

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:491


longPressWait โ€‹

โ–ธ longPressWait(data): void

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.longPressWait

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:497


longTap โ€‹

โ–ธ longTap(data): boolean

Parameters โ€‹

NameType
dataIPointerEvent

Returns โ€‹

boolean

Inherited from โ€‹

InteractionBase.longTap

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:505


longPressWaitCancel โ€‹

โ–ธ longPressWaitCancel(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.longPressWaitCancel

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:515


__onResize โ€‹

โ–ธ __onResize(): void

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.__onResize

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:520


emit โ€‹

โ–ธ emit(type, data, path?, excludePath?): void

Parameters โ€‹

NameType
typestring
dataIUIEvent
path?ILeafList
excludePath?ILeafList

Returns โ€‹

void

Inherited from โ€‹

InteractionBase.emit

Defined in โ€‹

ui/packages/interaction/interaction/src/Interaction.ts:537

Released under the MIT License.