Ir al contenido

DragSelectingTool

Defined in: tool/DragSelectingTool.ts:7

Tool for selecting multiple parts by dragging a rubber-band rectangle. Parts intersecting the selection rectangle become selected.

new DragSelectingTool(): DragSelectingTool

DragSelectingTool

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


get isPartialInclusion(): boolean

Defined in: tool/DragSelectingTool.ts:13

GoJS-compatible: Whether partially-enclosed parts are selected too.

boolean

set isPartialInclusion(value): void

Defined in: tool/DragSelectingTool.ts:17

boolean

void


get isSelecting(): boolean

Defined in: tool/DragSelectingTool.ts:22

Whether a rubber-band selection is in progress.

boolean

canStart(_toolName, e): boolean

Defined in: tool/DragSelectingTool.ts:27

GoJS-compatible: start rubber-band selection on empty background with primary button.

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/DragSelectingTool.ts:33

Called when a mouse down event occurs.

MouseEvent

void

Tool.doMouseDown


doMouseMove(e): void

Defined in: tool/DragSelectingTool.ts:53

Called when a mouse move event occurs.

MouseEvent

void

Tool.doMouseMove


doMouseUp(e): void

Defined in: tool/DragSelectingTool.ts:68

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