Ir al contenido

DraggingOptions

Defined in: tool/DraggingOptions.ts:30

GoJS-compatible: options for dragging/moving parts, used by Diagram.moveParts/computeMove and DraggingTool.computeMove. graphojs’s DraggingTool currently reads its own individual isGridSnapEnabled-style properties directly rather than through a DraggingOptions instance — this class exists for API parity and for code that constructs one directly, but isn’t yet consulted internally.

new DraggingOptions(init?): DraggingOptions

Defined in: tool/DraggingOptions.ts:42

Partial<DraggingOptions>

DraggingOptions

dragsLink: boolean = false

Defined in: tool/DraggingOptions.ts:36


dragsMembers: boolean = true

Defined in: tool/DraggingOptions.ts:40


dragsTree: boolean = false

Defined in: tool/DraggingOptions.ts:37


gridSnapCellSize: Size

Defined in: tool/DraggingOptions.ts:33


gridSnapCellSpot: Spot = Spot.TopLeft

Defined in: tool/DraggingOptions.ts:34


gridSnapOrigin: Point

Defined in: tool/DraggingOptions.ts:35


groupsAlwaysMove: boolean = true

Defined in: tool/DraggingOptions.ts:39


groupsSnapMembers: boolean = false

Defined in: tool/DraggingOptions.ts:38


isGridSnapEnabled: boolean = false

Defined in: tool/DraggingOptions.ts:31


isGridSnapRealtime: boolean = true

Defined in: tool/DraggingOptions.ts:32