Ir al contenido

ClickSelectingTool

Defined in: tool/ClickSelectingTool.ts:6

Tool for selecting parts by clicking.

new ClickSelectingTool(): ClickSelectingTool

ClickSelectingTool

Tool.constructor

get diagram(): Diagram | null

Defined in: tool/Tool.ts:13

Get the diagram this tool belongs to.

Diagram | null

set diagram(value): void

Defined in: tool/Tool.ts:18

Set the diagram this tool belongs to.

Diagram | null

void

ZoomingTool.diagram


get isActive(): boolean

Defined in: tool/Tool.ts:23

Check if this tool is currently active.

boolean

Tool.isActive


get isEnabled(): boolean

Defined in: tool/Tool.ts:28

Check if this tool is enabled.

boolean

set isEnabled(value): void

Defined in: tool/Tool.ts:33

Enable or disable this tool.

boolean

void

ZoomingTool.isEnabled

canStart(_toolName, e): boolean

Defined in: tool/ClickSelectingTool.ts:8

GoJS-compatible: default selector — claims any primary click not handled by a higher-priority tool.

string

MouseEvent

boolean

Tool.canStart


doActivate(): void

Defined in: tool/Tool.ts:38

Called when the tool becomes the active tool.

void

Tool.doActivate


doClick(_e): void

Defined in: tool/Tool.ts:78

Called when a click event occurs.

MouseEvent

void

Tool.doClick


doDeactivate(): void

Defined in: tool/Tool.ts:43

Called when the tool is deactivated.

void

Tool.doDeactivate


doDoubleClick(_e): void

Defined in: tool/Tool.ts:83

Called when a double click event occurs.

MouseEvent

void

Tool.doDoubleClick


doKeyDown(_e): void

Defined in: tool/Tool.ts:68

Called when a key down event occurs.

KeyboardEvent

void

Tool.doKeyDown


doKeyUp(_e): void

Defined in: tool/Tool.ts:73

Called when a key up event occurs.

KeyboardEvent

void

Tool.doKeyUp


doMouseDown(e): void

Defined in: tool/ClickSelectingTool.ts:12

Called when a mouse down event occurs.

MouseEvent

void

Tool.doMouseDown


doMouseMove(_e): void

Defined in: tool/Tool.ts:53

Called when a mouse move event occurs.

MouseEvent

void

Tool.doMouseMove


doMouseUp(_e): void

Defined in: tool/Tool.ts:58

Called when a mouse up event occurs.

MouseEvent

void

Tool.doMouseUp


doMouseWheel(_e): void

Defined in: tool/Tool.ts:63

Called when a mouse wheel event occurs.

WheelEvent

void

Tool.doMouseWheel


doStart(_e): void

Defined in: tool/Tool.ts:90

GoJS-compatible: Called when a tool operation starts (after canStart returns true).

MouseEvent

void

Tool.doStart


doStop(): void

Defined in: tool/Tool.ts:97

GoJS-compatible: Called when a tool operation stops.

void

Tool.doStop


findPartAt(x, y): Part | null

Defined in: tool/Tool.ts:110

Find a part at the given diagram coordinates.

number

number

Part | null

Tool.findPartAt


getDiagramPoint(e): object

Defined in: tool/Tool.ts:116

Get the mouse position in diagram coordinates.

MouseEvent

object

x: number

y: number

Tool.getDiagramPoint