@metadev/daga 5.1.1 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metadev/daga",
3
- "version": "5.1.1",
3
+ "version": "5.1.3",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {
@@ -10,12 +10,18 @@ import { DiagramPort } from '../model/diagram-port';
10
10
  import { DiagramSection } from '../model/diagram-section';
11
11
  import { DiagramCanvas } from './diagram-canvas';
12
12
  /**
13
- * Checks if the given mouse event was produced with a secondary button press.
13
+ * Checks if the given pointer event was produced with a secondary button press.
14
14
  * @private
15
- * @param event A mouse event.
16
- * @returns `true` if the given mouse event was produced with a secondary button press, `false` otherwise.
15
+ * @param event A pointer event.
16
+ * @returns `true` if the given pointer event was produced with a secondary button press, `false` otherwise.
17
17
  */
18
18
  export declare const isSecondaryButton: (event: MouseEvent) => boolean;
19
+ /**
20
+ * Obtain the pointer event which is valid for passing to the `d3.pointer()` function.
21
+ * @param event A pointer event.
22
+ * @returns A pointer event which can be passed to the `d3.pointer()` function.
23
+ */
24
+ export declare const getEventHoldingCoordinates: (event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>) => unknown;
19
25
  /**
20
26
  * Get the SVG path of a diagram connection.
21
27
  * @private
@@ -11,6 +11,7 @@ import { ActionStack, DiagramAction, DiagramActionMethod, DiagramActions } from
11
11
  import { DiagramEvent } from '../diagram-event';
12
12
  import { DiagramConnectionType } from '../model/diagram-connection';
13
13
  import { DiagramModel } from '../model/diagram-model';
14
+ import { DiagramNode } from '../model/diagram-node';
14
15
  import { DiagramContextMenu } from './diagram-context-menu';
15
16
  import { DiagramUserHighlight } from './diagram-user-highlight';
16
17
  import { DiagramUserSelection } from './diagram-user-selection';
@@ -26,9 +27,8 @@ export declare const CONNECTION_PATH_BOX_THICKNESS = 12;
26
27
  */
27
28
  export declare const ACTION_STACK_SIZE = 25;
28
29
  export declare class DiagramCanvas implements Canvas {
29
- private static canvasCount;
30
+ #private;
30
31
  readonly parentComponent: DiagramEditor;
31
- private diagramRoot;
32
32
  readonly model: DiagramModel;
33
33
  readonly userSelection: DiagramUserSelection;
34
34
  readonly userHighlight: DiagramUserHighlight;
@@ -41,7 +41,6 @@ export declare class DiagramCanvas implements Canvas {
41
41
  zoomFactor: number;
42
42
  panRate: number;
43
43
  inferConnectionType: boolean;
44
- private _connectionType?;
45
44
  get connectionType(): DiagramConnectionType | undefined;
46
45
  set connectionType(value: DiagramConnectionType | undefined);
47
46
  autoTightenConnections: boolean;
@@ -56,24 +55,6 @@ export declare class DiagramCanvas implements Canvas {
56
55
  userActions: {
57
56
  [key in DiagramActions]?: boolean;
58
57
  };
59
- private readonly gridPatternId;
60
- private readonly ancillaryGridPatternIds;
61
- private zoomBehavior;
62
- private zoomTransform;
63
- private priorityThreshold?;
64
- private priorityThresholds;
65
- private unfinishedConnection?;
66
- /**
67
- * Invisible path followed by an unfinished connection. Used for making unfinished connections stop before the cursor rather than stopping right at the cursor.
68
- */
69
- private unfinishedConnectionTracer?;
70
- private unfinishedConnectionPort?;
71
- private inputFieldContainer?;
72
- private multipleSelectionContainer?;
73
- private draggingFrom;
74
- private dragging;
75
- private secondaryButton;
76
- private currentAction?;
77
58
  readonly validatorChange$: Subject<void>;
78
59
  readonly diagramChange$: Subject<{
79
60
  action: DiagramAction;
@@ -104,11 +85,10 @@ export declare class DiagramCanvas implements Canvas {
104
85
  center(nodeIds?: string[], maxZoomLevel?: number, duration?: number): void;
105
86
  getClosestGridPoint(point: Point): Point;
106
87
  getCoordinatesOnScreen(): [Point, Point];
107
- private getEventHoldingCoordinates;
108
- getPointerLocationRelativeToCanvas(event: MouseEvent): Point;
109
- getPointerLocationRelativeToRoot(event: MouseEvent): Point;
110
- getPointerLocationRelativeToBody(event: MouseEvent): Point;
111
- getPointerLocationRelativeToScreen(event: MouseEvent): Point;
88
+ getPointerLocationRelativeToCanvas(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
89
+ getPointerLocationRelativeToRoot(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
90
+ getPointerLocationRelativeToBody(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
91
+ getPointerLocationRelativeToScreen(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
112
92
  updateModelInView(): void;
113
93
  updateNodesInView(...ids: string[]): void;
114
94
  updateSectionsInView(...ids: string[]): void;
@@ -117,8 +97,8 @@ export declare class DiagramCanvas implements Canvas {
117
97
  updateFieldsInView(...ids: string[]): void;
118
98
  updateObjectsInView(...ids: string[]): void;
119
99
  updateDecoratorsInView(...ids: string[]): void;
120
- private updateConnectionLabelsInView;
121
- private updateConnectionMarkersInView;
100
+ bringToFront(node: DiagramNode): void;
101
+ sendToBack(node: DiagramNode): void;
122
102
  fieldRootFitsInView(id: string): boolean;
123
103
  fitFieldRootInView(id: string, shrink?: boolean): void;
124
104
  fitNodeInView(id: string, shrink?: boolean): void;
@@ -126,30 +106,7 @@ export declare class DiagramCanvas implements Canvas {
126
106
  selectSVGElement(): d3.Selection<SVGElement, unknown, null, unknown>;
127
107
  selectCanvasView(): d3.Selection<SVGGElement, unknown, null, unknown>;
128
108
  selectCanvasElements(): d3.Selection<SVGGElement, unknown, null, unknown>;
129
- private startConnection;
130
- private finishConnection;
131
- private dropConnection;
132
109
  cancelAllUserActions(): void;
133
110
  canUserPerformAction(action: DiagramActions): boolean;
134
111
  openTextInput(id: string): void;
135
- private createInputField;
136
- private removeInputField;
137
- private minimumSizeOfField;
138
- private setFieldTextAndWrap;
139
- private setFieldText;
140
- /**
141
- * Method to call to start the moving of a node triggered by a user drag event.
142
- */
143
- private startMovingNode;
144
- /**
145
- * Method to call to continue the moving of a node triggered by a user drag event.
146
- */
147
- private continueMovingNode;
148
- /**
149
- * Method to call to finish the moving of a node triggered by a user drag event.
150
- */
151
- private finishMovingNode;
152
- private startMultipleSelection;
153
- private continueMultipleSelection;
154
- private finishMultipleSelection;
155
112
  }
@@ -9,9 +9,7 @@ export declare const CONTEXT_MENU_DEFAULTS: {
9
9
  * @see DiagramCanvas
10
10
  */
11
11
  export declare class DiagramContextMenu {
12
- private readonly canvas;
13
- private config;
14
- private contextMenuContainer?;
12
+ #private;
15
13
  /**
16
14
  * Constructs a context menu object.
17
15
  * @public
@@ -6,12 +6,7 @@ import { DiagramElement, DiagramElementSet } from '../model/diagram-element';
6
6
  * @see DiagramCanvas
7
7
  */
8
8
  export declare class DiagramUserHighlight extends DiagramElementSet<DiagramElement> {
9
- private readonly canvas;
10
- private focus?;
11
- /**
12
- * Whether sections can be highlighted individually or the whole node must be highlighted when highlighting a section.
13
- */
14
- private highlightSections;
9
+ #private;
15
10
  /**
16
11
  * Constructs a user highlight object.
17
12
  * @public
@@ -16,10 +16,7 @@ export declare const DIAGRAM_PROPERTIES_DEFAULT_TEXT = "Diagram properties";
16
16
  * @see DiagramCanvas
17
17
  */
18
18
  export declare class DiagramUserSelection extends DiagramElementSet<DiagramElement> {
19
- private readonly canvas;
20
- private readonly diagramPropertiesText;
21
- private propertyEditorSelection?;
22
- private propertyEditorValues?;
19
+ #private;
23
20
  /**
24
21
  * Constructs a user selection object.
25
22
  * @public
@@ -73,5 +70,4 @@ export declare class DiagramUserSelection extends DiagramElementSet<DiagramEleme
73
70
  openInPropertyEditor(selection?: {
74
71
  valueSet: ValueSet;
75
72
  } & (DiagramElement | DiagramModel), makeUpdateValuesAction?: boolean): void;
76
- private makeUpdateValuesAction;
77
73
  }
@@ -307,6 +307,7 @@ export type SetSelfRemovedSerialized = {
307
307
  * @see RemoveAction
308
308
  */
309
309
  export declare class SetSelfRemovedCollabAction implements CollabAction {
310
+ #private;
310
311
  readonly canvas: Canvas;
311
312
  readonly nodeIds: string[];
312
313
  readonly sectionIds: string[];
@@ -316,7 +317,6 @@ export declare class SetSelfRemovedCollabAction implements CollabAction {
316
317
  readonly selfRemoved: boolean;
317
318
  readonly timestamp: CollabTimestamp;
318
319
  constructor(canvas: Canvas, nodeIds: string[], sectionIds: string[], portIds: string[], connectionIds: string[], fieldIds: string[], selfRemoved: boolean, timestamp: CollabTimestamp);
319
- private doOne;
320
320
  do(): void;
321
321
  serialize(): CollabActionSerialized;
322
322
  static deserialize(canvas: Canvas, serialized: SetSelfRemovedSerialized): SetSelfRemovedCollabAction;
@@ -6,35 +6,14 @@ import { Canvas } from '../../interfaces/canvas';
6
6
  * @public
7
7
  */
8
8
  export declare class CollabClient {
9
+ #private;
9
10
  /**
10
11
  * The WebSocket URL of the daga-server.
11
12
  */
12
13
  readonly dagaServer: string;
13
14
  readonly userId: string;
14
15
  readonly clientId: string;
15
- private readonly ws;
16
- private sendQueue;
17
- /**
18
- * Joined sessions by locator.
19
- */
20
- private sessions;
21
- /**
22
- * Created but unacked sessions by refId.
23
- */
24
- private pendingSessions;
25
16
  constructor(dagaServer: string, userId: string);
26
- private onOpen;
27
- private onMessage;
28
- private onClose;
29
- private onError;
30
- /**
31
- * Internal send method. Use instead of calling ws.send directly.
32
- */
33
- private send;
34
- /**
35
- * Internal receive method. Use instead of handling ws receive events directly.
36
- */
37
- private receive;
38
17
  /**
39
18
  * Creates and joins a room. The given canvas becomes collaborative, starting
40
19
  * with its current model.
@@ -53,5 +32,4 @@ export declare class CollabClient {
53
32
  * @public
54
33
  */
55
34
  joinRoom(canvas: Canvas, locator: string): Promise<void>;
56
- private startSyncing;
57
35
  }
@@ -170,6 +170,11 @@ export interface NodeTypeConfig {
170
170
  * @default 1
171
171
  */
172
172
  minHeight?: number;
173
+ /**
174
+ * The default z coordinate of nodes of this type when rendering them in order relative to other diagram elements.
175
+ * @default 0
176
+ */
177
+ defaultZ?: number;
173
178
  /**
174
179
  * Whether the user can resize nodes of this type horizontally.
175
180
  * @default false
@@ -8,11 +8,7 @@ import { DiagramNodeGeometry, DiagramNodeType } from './model/diagram-node';
8
8
  * @private
9
9
  */
10
10
  export declare class ActionStack {
11
- /**
12
- * Canvas that this action stack belongs to.
13
- * @private
14
- */
15
- private readonly canvas;
11
+ #private;
16
12
  /**
17
13
  * Maximum number of actions that can be recorded simultaneously.
18
14
  * When new actions are added past this limit, older actions are removed.
@@ -28,7 +24,7 @@ export declare class ActionStack {
28
24
  * Index of the last action not counting undone actions. One-indexed. Zero if all actions are undone.
29
25
  * @private
30
26
  */
31
- private index;
27
+ index: number;
32
28
  constructor(canvas: Canvas, maximum: number);
33
29
  /**
34
30
  * Adds an action to the history.
@@ -76,7 +76,7 @@ export declare class DiagramConnectionType implements DiagramEntity {
76
76
  * @see DiagramPort
77
77
  */
78
78
  export declare class DiagramConnection extends DiagramElement {
79
- private _type;
79
+ #private;
80
80
  get type(): DiagramConnectionType;
81
81
  set type(type: DiagramConnectionType);
82
82
  get typeString(): string;
@@ -252,12 +252,12 @@ export declare class DiagramConnection extends DiagramElement {
252
252
  getPriority(): number;
253
253
  }
254
254
  export declare class DiagramConnectionSet extends DiagramElementSet<DiagramConnection> {
255
- private model;
255
+ #private;
256
256
  /**
257
257
  * Set of the possible types of connection that the connections of this set can have.
258
258
  * @public
259
259
  */
260
- types: DiagramEntitySet<DiagramConnectionType>;
260
+ readonly types: DiagramEntitySet<DiagramConnectionType>;
261
261
  /**
262
262
  * Instance a set of connections for the given model. This method is used internally.
263
263
  * @private
@@ -58,7 +58,7 @@ export declare class DiagramDecorator extends DiagramElement {
58
58
  getPriority(): number;
59
59
  }
60
60
  export declare class DiagramDecoratorSet extends DiagramElementSet<DiagramDecorator> {
61
- private model;
61
+ #private;
62
62
  /**
63
63
  * Instance a set of decorators for the given model. This method is used internally.
64
64
  * @private
@@ -14,12 +14,12 @@ export declare const DEFAULT_PRIORITY = 0;
14
14
  * @see DiagramCanvas
15
15
  */
16
16
  export declare abstract class DiagramElement implements DiagramEntity {
17
+ #private;
17
18
  /**
18
19
  * Diagram model this diagram element is part of.
19
20
  * @private
20
21
  */
21
22
  readonly model: DiagramModel;
22
- private _id;
23
23
  /**
24
24
  * Identifier that uniquely identifies this element within its diagram model. Cannot be an empty string.
25
25
  * @public
@@ -39,6 +39,7 @@ export interface LabeledElement {
39
39
  * @see DiagramSection
40
40
  */
41
41
  export declare class DiagramField extends DiagramElement {
42
+ #private;
42
43
  /**
43
44
  * Element that this field belongs to.
44
45
  * @public
@@ -79,7 +80,6 @@ export declare class DiagramField extends DiagramElement {
79
80
  * @public
80
81
  */
81
82
  multiline: boolean;
82
- private _text;
83
83
  /**
84
84
  * Default text that this field's text resets to when empty.
85
85
  * @public
@@ -133,7 +133,7 @@ export declare class DiagramField extends DiagramElement {
133
133
  getPriority(): number;
134
134
  }
135
135
  export declare class DiagramFieldSet extends DiagramElementSet<DiagramField> {
136
- private model;
136
+ #private;
137
137
  /**
138
138
  * Instance a set of fields for the given model. This method is used internally.
139
139
  * @private
@@ -31,6 +31,7 @@ export declare const DIAGRAM_NODE_TYPE_DEFAULTS: {
31
31
  defaultHeight: number;
32
32
  minWidth: number;
33
33
  minHeight: number;
34
+ defaultZ: number;
34
35
  resizableX: boolean;
35
36
  resizableY: boolean;
36
37
  snapToGridOffset: [number, number, number, number];
@@ -48,6 +49,7 @@ export declare const DIAGRAM_NODE_TYPE_DEFAULTS: {
48
49
  };
49
50
  export type DiagramNodeGeometry = {
50
51
  readonly coords: Point;
52
+ readonly z: number;
51
53
  readonly width: number;
52
54
  readonly height: number;
53
55
  readonly sections: {
@@ -76,6 +78,7 @@ export declare class DiagramNodeType implements DiagramEntity {
76
78
  defaultHeight: number;
77
79
  minWidth: number;
78
80
  minHeight: number;
81
+ defaultZ: number;
79
82
  resizerX: DiagramResizer;
80
83
  resizerY: DiagramResizer;
81
84
  resizerXY: DiagramResizer;
@@ -107,7 +110,7 @@ export declare class DiagramNodeType implements DiagramEntity {
107
110
  * @see DiagramSection
108
111
  */
109
112
  export declare class DiagramNode extends DiagramElement implements LabeledElement {
110
- private _type;
113
+ #private;
111
114
  get type(): DiagramNodeType;
112
115
  set type(type: DiagramNodeType);
113
116
  get typeString(): string;
@@ -172,6 +175,11 @@ export declare class DiagramNode extends DiagramElement implements LabeledElemen
172
175
  * @public
173
176
  */
174
177
  height: number;
178
+ /**
179
+ * The relative z coordinate of this node. Used to render this node below nodes with a higher z coordinate.
180
+ * @public
181
+ */
182
+ z: number;
175
183
  /**
176
184
  * Name of this node. Alias for this node's label's text.
177
185
  * @public
@@ -208,6 +216,10 @@ export declare class DiagramNode extends DiagramElement implements LabeledElemen
208
216
  get removed(): boolean;
209
217
  updateInView(): void;
210
218
  raise(): void;
219
+ /**
220
+ * Put this element above other elements in the view if they have a lower z coordinate.
221
+ */
222
+ raiseWithZ(): void;
211
223
  getPriority(): number;
212
224
  /**
213
225
  * Returns the horizontal resizer of this node.
@@ -343,12 +355,12 @@ export declare class DiagramNode extends DiagramElement implements LabeledElemen
343
355
  copySectionRow(rowIndex: number): void;
344
356
  }
345
357
  export declare class DiagramNodeSet extends DiagramElementSet<DiagramNode> {
346
- private model;
358
+ #private;
347
359
  /**
348
360
  * Set of the possible types of node that the nodes of this set can have.
349
361
  * @public
350
362
  */
351
- types: DiagramEntitySet<DiagramNodeType>;
363
+ readonly types: DiagramEntitySet<DiagramNodeType>;
352
364
  /**
353
365
  * Instance a set of nodes for the given model. This method is used internally.
354
366
  * @private
@@ -37,7 +37,7 @@ export declare class DiagramObject extends DiagramElement {
37
37
  getPriority(): number;
38
38
  }
39
39
  export declare class DiagramObjectSet extends DiagramElementSet<DiagramObject> {
40
- private model;
40
+ #private;
41
41
  /**
42
42
  * Instance a set of objects for the given model. This method is used internally.
43
43
  * @private
@@ -70,7 +70,7 @@ export declare class DiagramPortType implements DiagramEntity {
70
70
  * @see DiagramSection
71
71
  */
72
72
  export declare class DiagramPort extends DiagramElement implements LabeledElement {
73
- private _type;
73
+ #private;
74
74
  get type(): DiagramPortType | undefined;
75
75
  set type(type: DiagramPortType | undefined);
76
76
  get typeString(): string | undefined;
@@ -202,12 +202,12 @@ export declare class DiagramPort extends DiagramElement implements LabeledElemen
202
202
  distanceTo(coords: Point): number;
203
203
  }
204
204
  export declare class DiagramPortSet extends DiagramElementSet<DiagramPort> {
205
- private model;
205
+ #private;
206
206
  /**
207
207
  * Set of the possible types of port that the ports of this set can have.
208
208
  * @public
209
209
  */
210
- types: DiagramEntitySet<DiagramPortType>;
210
+ readonly types: DiagramEntitySet<DiagramPortType>;
211
211
  /**
212
212
  * Instance a set of ports for the given model. This method is used internally.
213
213
  * @private
@@ -243,7 +243,7 @@ export declare class DiagramSection extends DiagramElement implements LabeledEle
243
243
  setGeometry(geometry: DiagramSectionGeometry): void;
244
244
  }
245
245
  export declare class DiagramSectionSet extends DiagramElementSet<DiagramSection> {
246
- private model;
246
+ #private;
247
247
  /**
248
248
  * Instance a set of sections for the given model. This method is used internally.
249
249
  * @private
@@ -6,21 +6,13 @@ import { Property, PropertySet } from './property';
6
6
  * @see PropertySet
7
7
  */
8
8
  export declare class ValueSet {
9
+ #private;
9
10
  rootElement: {
10
11
  [key: string]: unknown;
11
12
  };
12
13
  propertySet: PropertySet;
13
14
  displayedProperties: Property[];
14
15
  hiddenProperties: Property[];
15
- private values;
16
- private valueSets;
17
- /**
18
- * Collaborative timestamps for all keys in this.values that have ever been set,
19
- * even if since they've since been set to the default value.
20
- *
21
- * Object values (in this.valueSets) store their own timestamps separately.
22
- */
23
- private ownTimestamps;
24
16
  constructor(propertySet: PropertySet, rootElement: unknown);
25
17
  /**
26
18
  * Gets the value of the root element attribute under the given keys.
@@ -134,13 +126,6 @@ export declare class ValueSet {
134
126
  * @private
135
127
  */
136
128
  resetValues(): void;
137
- /**
138
- * Constructs a ValueSet with its corresponding PropertySet representing the values of the object.
139
- * @private
140
- * @param key Key that the ValueSet is under.
141
- * @returns The constructed ValueSet.
142
- */
143
- private constructSubValueSet;
144
129
  /**
145
130
  * Gets the ValueSet under the given key when there are nested ValueSets.
146
131
  * @private
@@ -9,6 +9,7 @@ import { ActionStack, DiagramAction, DiagramActionMethod, DiagramActions } from
9
9
  import { DiagramEvent } from '../diagram/diagram-event';
10
10
  import { DiagramConnectionType } from '../diagram/model/diagram-connection';
11
11
  import { DiagramModel } from '../diagram/model/diagram-model';
12
+ import { DiagramNode } from '../diagram/model/diagram-node';
12
13
  import { DiagramValidator } from '../errors/diagram-validator';
13
14
  import { Point } from '../util/canvas-util';
14
15
  import { DiagramEditor } from './diagram-editor';
@@ -233,25 +234,25 @@ export interface Canvas {
233
234
  * @private
234
235
  * @param event A MouseEvent.
235
236
  */
236
- getPointerLocationRelativeToCanvas(event: MouseEvent): Point;
237
+ getPointerLocationRelativeToCanvas(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
237
238
  /**
238
239
  * Get the location of the pointer in the given event relative to the svg element.
239
240
  * @private
240
241
  * @param event A MouseEvent.
241
242
  */
242
- getPointerLocationRelativeToRoot(event: MouseEvent): Point;
243
+ getPointerLocationRelativeToRoot(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
243
244
  /**
244
245
  * Get the location of the pointer in the given event relative to the body.
245
246
  * @private
246
247
  * @param event A MouseEvent.
247
248
  */
248
- getPointerLocationRelativeToBody(event: MouseEvent): Point;
249
+ getPointerLocationRelativeToBody(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
249
250
  /**
250
251
  * Get the location of the pointer in the given event relative to the screen.
251
252
  * @private
252
253
  * @param event A MouseEvent.
253
254
  */
254
- getPointerLocationRelativeToScreen(event: MouseEvent): Point;
255
+ getPointerLocationRelativeToScreen(event: MouseEvent | d3.D3DragEvent<Element, unknown, unknown>): Point;
255
256
  /**
256
257
  * Adds a validator to the list of validators of the diagram.
257
258
  * @public
@@ -318,6 +319,16 @@ export interface Canvas {
318
319
  * @public
319
320
  */
320
321
  updateDecoratorsInView(...ids: string[]): void;
322
+ /**
323
+ * Update the z coordinate of a node to be higher than any node that overlaps with it.
324
+ * @public
325
+ */
326
+ bringToFront(node: DiagramNode): void;
327
+ /**
328
+ * Update the z coordinate of a node to be lower than any node that overlaps with it.
329
+ * @public
330
+ */
331
+ sendToBack(node: DiagramNode): void;
321
332
  /**
322
333
  * Checks whether the root of a diagram field encompasses the totality of the field.
323
334
  * @param id The id of a diagram field
@@ -4,9 +4,7 @@ import { Point } from './canvas-util';
4
4
  * @private
5
5
  */
6
6
  export declare class Grid<T> {
7
- private grid;
8
- private offsetX;
9
- private offsetY;
7
+ #private;
10
8
  /**
11
9
  * Get the minimum x coordinate among the elements in the grid.
12
10
  */