跳转到内容

pivotick v3.0.0


拓展 / GraphInteractions / GraphInteractions

类: GraphInteractions<TElement> ​

定义于:GraphInteractions.ts:20

类型参数 ​

TElement ​

TElement = unknown

构造函数 ​

构造函数 ​

new GraphInteractions<TElement>(graph): GraphInteractions<TElement>

定义于:GraphInteractions.ts:33

参数 ​

graph ​

Pivotick

返回值 ​

GraphInteractions<TElement>

方法 ​

addNodesToSelection() ​

addNodesToSelection(addSelection): void

定义于:GraphInteractions.ts:633

参数 ​

addSelection ​

NodeSelection<TElement>[]

返回值 ​

void


badgeClick() ​

badgeClick(element, event, node, badge): void

定义于:GraphInteractions.ts:120

点击了轮圈徽章。先具体后通用:徽章自己的 onClick 首先运行,然后是图形范围的 onBadgeClick。两者都无法抑制对方——调用 cancel() 的总线侦听器是阻止两者的一种方法。

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

badge ​

NodeBadge

返回值 ​

void


canvasBeforeZoom() ​

canvasBeforeZoom(event): boolean

定义于:GraphInteractions.ts:454

参数 ​

event ​

unknown

返回值 ​

boolean


canvasClick() ​

canvasClick(event): void

定义于:GraphInteractions.ts:420

参数 ​

event ​

PointerEvent

返回值 ​

void


canvasContextmenu() ​

canvasContextmenu(event): void

定义于:GraphInteractions.ts:482

参数 ​

event ​

PointerEvent

返回值 ​

void


canvasMousemove() ​

canvasMousemove(event): void

定义于:GraphInteractions.ts:500

参数 ​

event ​

MouseEvent

返回值 ​

void


canvasPointerDown() ​

canvasPointerDown(event): void

定义于:GraphInteractions.ts:440

参数 ​

event ​

PointerEvent

返回值 ​

void


canvasPointerUp() ​

canvasPointerUp(event): void

定义于:GraphInteractions.ts:447

参数 ​

event ​

PointerEvent

返回值 ​

void


canvasZoom() ​

canvasZoom(event): void

定义于:GraphInteractions.ts:473

参数 ​

event ​

unknown

返回值 ​

void


clearEdgeSelectionList() ​

clearEdgeSelectionList(): void

定义于:GraphInteractions.ts:743

返回值 ​

void


clearNodeSelectionList() ​

clearNodeSelectionList(): void

定义于:GraphInteractions.ts:724

返回值 ​

void


dragended() ​

dragended(event, node): void

定义于:GraphInteractions.ts:225

参数 ​

event ​

PointerEvent

node ​

Node

返回值 ​

void


dragging() ​

dragging(event, node): void

定义于:GraphInteractions.ts:218

参数 ​

event ​

PointerEvent

node ​

Node

返回值 ​

void


edgeClick() ​

edgeClick(element, event, drawn): void

定义于:GraphInteractions.ts:232

参数 ​

element ​

TElement

event ​

PointerEvent

drawn ​

Edge

返回值 ​

void


edgeContextmenu() ​

edgeContextmenu(element, event, drawn): void

定义于:GraphInteractions.ts:271

参数 ​

element ​

TElement

event ​

PointerEvent

drawn ​

Edge

返回值 ​

void


edgeDbclick() ​

edgeDbclick(element, event, drawn): void

定义于:GraphInteractions.ts:252

参数 ​

element ​

TElement

event ​

PointerEvent

drawn ​

Edge

返回值 ​

void


edgeHoverIn() ​

edgeHoverIn(element, event, drawn): void

定义于:GraphInteractions.ts:290

参数 ​

element ​

TElement

event ​

PointerEvent

drawn ​

Edge

返回值 ​

void


edgeHoverOut() ​

edgeHoverOut(element, event, drawn): void

定义于:GraphInteractions.ts:298

参数 ​

element ​

TElement

event ​

PointerEvent

drawn ​

Edge

返回值 ​

void


expandNodeSelection() ​

expandNodeSelection(): void

定义于:GraphInteractions.ts:790

展开或折叠选定的集群,以及打开或关闭选定的组。

返回值 ​

void


getGraph() ​

getGraph(): Pivotick

定义于:GraphInteractions.ts:71

返回值 ​

Pivotick


getLastPointerEvent() ​

getLastPointerEvent(): MouseEvent | null

定义于:GraphInteractions.ts:802

返回值 ​

MouseEvent | null


getSelectedEdge() ​

getSelectedEdge(): EdgeSelection<TElement> | null

定义于:GraphInteractions.ts:769

返回值 ​

EdgeSelection<TElement> | null


getSelectedEdgeIDs() ​

getSelectedEdgeIDs(): string[] | null

定义于:GraphInteractions.ts:781

返回值 ​

string[] | null


getSelectedEdges() ​

getSelectedEdges(): EdgeSelection<TElement>[]

定义于:GraphInteractions.ts:785

返回值 ​

EdgeSelection<TElement>[]


getSelectedNode() ​

getSelectedNode(): NodeSelection<TElement> | null

定义于:GraphInteractions.ts:765

返回值 ​

NodeSelection<TElement> | null


getSelectedNodeIDs() ​

getSelectedNodeIDs(): string[] | null

定义于:GraphInteractions.ts:773

返回值 ​

string[] | null


getSelectedNodes() ​

getSelectedNodes(): NodeSelection<TElement>[]

定义于:GraphInteractions.ts:777

返回值 ​

NodeSelection<TElement>[]


hasActiveMultiselection() ​

hasActiveMultiselection(): boolean

定义于:GraphInteractions.ts:756

返回值 ​

boolean


nodeClick() ​

nodeClick(element, event, node): void

定义于:GraphInteractions.ts:84

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


nodeContextmenu() ​

nodeContextmenu(element, event, node): void

定义于:GraphInteractions.ts:161

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


nodeDbclick() ​

nodeDbclick(element, event, node): void

定义于:GraphInteractions.ts:141

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


nodeHoverIn() ​

nodeHoverIn(element, event, node): void

定义于:GraphInteractions.ts:204

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


nodeHoverOut() ​

nodeHoverOut(element, event, node): void

定义于:GraphInteractions.ts:211

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


nodePointerDown() ​

nodePointerDown(element, event, node): void

定义于:GraphInteractions.ts:179

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


nodePointerUp() ​

nodePointerUp(element, event, node): void

定义于:GraphInteractions.ts:197

参数 ​

element ​

TElement

event ​

PointerEvent

node ​

Node

返回值 ​

void


noteClick() ​

noteClick(element, event, note): void

定义于:GraphInteractions.ts:306

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteContextmenu() ​

noteContextmenu(element, event, note): void

定义于:GraphInteractions.ts:342

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteDbclick() ​

noteDbclick(element, event, note): void

定义于:GraphInteractions.ts:324

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteDragging() ​

noteDragging(event, note): void

定义于:GraphInteractions.ts:413

参数 ​

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteHandleClick() ​

noteHandleClick(handle, event, note): void

定义于:GraphInteractions.ts:388

参数 ​

handle ​

HTMLElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteHandlePointerDown() ​

noteHandlePointerDown(handle, event, note): void

定义于:GraphInteractions.ts:406

参数 ​

handle ​

HTMLElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteHoverIn() ​

noteHoverIn(element, event, note): void

定义于:GraphInteractions.ts:360

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


noteHoverOut() ​

noteHoverOut(element, event, note): void

定义于:GraphInteractions.ts:367

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


notePointerDown() ​

notePointerDown(element, event, note): void

定义于:GraphInteractions.ts:374

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


notePointerUp() ​

notePointerUp(element, event, note): void

定义于:GraphInteractions.ts:381

参数 ​

element ​

TElement

event ​

PointerEvent

note ​

Note

返回值 ​

void


off() ​

off<K>(event, handler): void

定义于:GraphInteractions.ts:64

类型参数 ​

K ​

K扩展键GraphInteractionEvents<TElement>

参数 ​

event ​

K

handler ​

GraphInteractionEvents<TElement>[K]

返回值 ​

void


on() ​

on<K>(event, handler): void

定义于:GraphInteractions.ts:57

类型参数 ​

K ​

K扩展键GraphInteractionEvents<TElement>

参数 ​

event ​

K

handler ​

GraphInteractionEvents<TElement>[K]

返回值 ​

void


refreshRendering() ​

refreshRendering(): void

定义于:GraphInteractions.ts:760

返回值 ​

void


removeNodesFromSelection() ​

removeNodesFromSelection(removeSelection): void

定义于:GraphInteractions.ts:654

参数 ​

removeSelection ​

NodeSelection<TElement>[]

返回值 ​

void


selectEdge() ​

selectEdge(element, edge): void

定义于:GraphInteractions.ts:669

参数 ​

element ​

TElement

edge ​

Edge

返回值 ​

void


selectEdges() ​

selectEdges(selection): void

定义于:GraphInteractions.ts:683

参数 ​

selection ​

[Edge, TElement][]

返回值 ​

void


selectNode() ​

selectNode(element, node): void

定义于:GraphInteractions.ts:522

参数 ​

element ​

TElement

node ​

Node

返回值 ​

void


selectNodes() ​

selectNodes(selection): void

定义于:GraphInteractions.ts:619

参数 ​

selection ​

NodeSelection<TElement>[]

返回值 ​

void


simulationSlowTick() ​

simulationSlowTick(): void

定义于:GraphInteractions.ts:515

返回值 ​

void


simulationTick() ​

simulationTick(): void

定义于:GraphInteractions.ts:508

返回值 ​

void


unselectAll() ​

unselectAll(): void

定义于:GraphInteractions.ts:716

返回值 ​

void


unselectEdge() ​

unselectEdge(): void

定义于:GraphInteractions.ts:702

返回值 ​

void


unselectNode() ​

unselectNode(): void

定义于:GraphInteractions.ts:537

返回值 ​

void