@antv/g6 5.0.0-beta.0 → 5.0.0-beta.1
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/dist/g6.min.js +2 -2
- package/esm/api-doc/item.d.ts +2 -0
- package/esm/api-doc/item.js +2 -0
- package/esm/api-doc/item.js.map +1 -1
- package/esm/runtime/controller/data.js +2 -2
- package/esm/runtime/controller/data.js.map +1 -1
- package/esm/runtime/controller/plugin.js +3 -3
- package/esm/runtime/controller/plugin.js.map +1 -1
- package/esm/stdlib/behavior/drag-canvas.js +12 -12
- package/esm/stdlib/behavior/drag-canvas.js.map +1 -1
- package/esm/stdlib/data/validateData.js +7 -2
- package/esm/stdlib/data/validateData.js.map +1 -1
- package/esm/stdlib/item/edge/base.d.ts +86 -5
- package/esm/stdlib/item/edge/base.js +72 -6
- package/esm/stdlib/item/edge/base.js.map +1 -1
- package/esm/stdlib/item/node/base.d.ts +89 -15
- package/esm/stdlib/item/node/base.js +73 -15
- package/esm/stdlib/item/node/base.js.map +1 -1
- package/esm/stdlib/item/node/base3d.d.ts +23 -0
- package/esm/stdlib/item/node/base3d.js +23 -8
- package/esm/stdlib/item/node/base3d.js.map +1 -1
- package/esm/stdlib/plugin/legend/index.js +4 -2
- package/esm/stdlib/plugin/legend/index.js.map +1 -1
- package/esm/types/spec.d.ts +1 -1
- package/lib/api-doc/item.d.ts +2 -0
- package/lib/api-doc/item.js +5 -1
- package/lib/api-doc/item.js.map +1 -1
- package/lib/runtime/controller/data.js +2 -2
- package/lib/runtime/controller/data.js.map +1 -1
- package/lib/runtime/controller/plugin.js +3 -3
- package/lib/runtime/controller/plugin.js.map +1 -1
- package/lib/stdlib/behavior/drag-canvas.js +12 -12
- package/lib/stdlib/behavior/drag-canvas.js.map +1 -1
- package/lib/stdlib/data/validateData.js +7 -2
- package/lib/stdlib/data/validateData.js.map +1 -1
- package/lib/stdlib/item/edge/base.d.ts +86 -5
- package/lib/stdlib/item/edge/base.js +72 -6
- package/lib/stdlib/item/edge/base.js.map +1 -1
- package/lib/stdlib/item/node/base.d.ts +89 -15
- package/lib/stdlib/item/node/base.js +73 -15
- package/lib/stdlib/item/node/base.js.map +1 -1
- package/lib/stdlib/item/node/base3d.d.ts +23 -0
- package/lib/stdlib/item/node/base3d.js +23 -8
- package/lib/stdlib/item/node/base3d.js.map +1 -1
- package/lib/stdlib/plugin/legend/index.js +4 -2
- package/lib/stdlib/plugin/legend/index.js.map +1 -1
- package/lib/types/spec.d.ts +1 -1
- package/package.json +1 -1
- package/src/api-doc/item.ts +2 -0
- package/src/runtime/controller/data.ts +2 -2
- package/src/runtime/controller/plugin.ts +15 -3
- package/src/stdlib/behavior/drag-canvas.ts +12 -12
- package/src/stdlib/data/validateData.ts +7 -2
- package/src/stdlib/item/edge/base.ts +92 -6
- package/src/stdlib/item/node/base.ts +93 -17
- package/src/stdlib/item/node/base3d.ts +23 -9
- package/src/stdlib/plugin/legend/index.ts +4 -3
- package/src/types/spec.ts +1 -1
|
@@ -34,8 +34,8 @@ export class BaseEdge {
|
|
|
34
34
|
* The listener for graph zooming.
|
|
35
35
|
* 1. show / hide some shapes while zoom level changed;
|
|
36
36
|
* 2. change the shapes' sizes to make them have same visual size while zooming, e.g. labelShape, labelBackgroundShape.
|
|
37
|
-
* @param shapeMap
|
|
38
|
-
* @param zoom
|
|
37
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
38
|
+
* @param zoom The zoom level of the graph.
|
|
39
39
|
*/
|
|
40
40
|
this.onZoom = (shapeMap, zoom) => {
|
|
41
41
|
var _a, _b, _c;
|
|
@@ -84,9 +84,18 @@ export class BaseEdge {
|
|
|
84
84
|
this.zoomCache.balanceRatio = 1 / zoom;
|
|
85
85
|
this.zoomCache.animateConfig = Object.assign(Object.assign({}, DEFAULT_ANIMATE_CFG.zoom), lodStrategy === null || lodStrategy === void 0 ? void 0 : lodStrategy.animateCfg);
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Get merged styles from `getMergedStyles` and assigns the merged styles to the 'mergedStyles' property.
|
|
89
|
+
* @param model - The EdgeDisplayModel to merge the styles from.
|
|
90
|
+
*/
|
|
87
91
|
mergeStyles(model) {
|
|
88
92
|
this.mergedStyles = this.getMergedStyles(model);
|
|
89
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Merge style
|
|
96
|
+
* @param model - The EdgeDisplayModel to retrieve the merged styles from.
|
|
97
|
+
* @returns The merged styles as a EdgeShapeStyles object.
|
|
98
|
+
*/
|
|
90
99
|
getMergedStyles(model) {
|
|
91
100
|
var _a;
|
|
92
101
|
const { data } = model;
|
|
@@ -111,6 +120,7 @@ export class BaseEdge {
|
|
|
111
120
|
}
|
|
112
121
|
/**
|
|
113
122
|
* Call it after calling draw function to update cache about bounds and zoom levels.
|
|
123
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
114
124
|
*/
|
|
115
125
|
updateCache(shapeMap) {
|
|
116
126
|
['labelShape', 'labelBackgroundShape'].forEach((id) => {
|
|
@@ -138,13 +148,28 @@ export class BaseEdge {
|
|
|
138
148
|
if (zoom !== 1)
|
|
139
149
|
this.onZoom(shapeMap, zoom);
|
|
140
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Perform additional drawing operations or add custom shapes after drawing edge.
|
|
153
|
+
* @param model The displayed model of this edge, only for drawing and not received by users.
|
|
154
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
155
|
+
* @param shapesChanged An array of shape IDs that have changed and need to be updated.
|
|
156
|
+
* @returns An object that contains some new shapes to be added to the edge.
|
|
157
|
+
*/
|
|
141
158
|
afterDraw(model, shapeMap, shapesChanged) {
|
|
142
159
|
return {};
|
|
143
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Draw the label shape of the edge
|
|
163
|
+
* @param model The displayed model of this edge, only for drawing and not received by users.
|
|
164
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
165
|
+
* @param diffData An object that contains previous and current data.
|
|
166
|
+
* @param diffState An object that contains previous and current edge's state.
|
|
167
|
+
* @returns The display object representing the label shape of the edge.
|
|
168
|
+
*/
|
|
144
169
|
drawLabelShape(model, shapeMap, diffData, diffState) {
|
|
145
170
|
const { keyShape } = shapeMap;
|
|
146
171
|
const { labelShape: shapeStyle } = this.mergedStyles;
|
|
147
|
-
if (!shapeStyle)
|
|
172
|
+
if (!shapeStyle || !shapeStyle.text || !model.data.labelShape)
|
|
148
173
|
return;
|
|
149
174
|
const { position, offsetX: propsOffsetX, offsetY: propsOffsetY, autoRotate = true, maxWidth } = shapeStyle, otherStyle = __rest(shapeStyle, ["position", "offsetX", "offsetY", "autoRotate", "maxWidth"]);
|
|
150
175
|
const positionPreset = {
|
|
@@ -207,6 +232,14 @@ export class BaseEdge {
|
|
|
207
232
|
const style = Object.assign(Object.assign(Object.assign(Object.assign({}, this.defaultStyles.labelShape), { textAlign: positionPreset.textAlign, wordWrapWidth, isBillboard: true }), positionStyle), otherStyle);
|
|
208
233
|
return this.upsertShape('text', 'labelShape', style, shapeMap, model);
|
|
209
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Draw the label background shape of the edge
|
|
237
|
+
* @param model The displayed model of this edge, only for drawing and not received by users.
|
|
238
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
239
|
+
* @param diffData An object that contains previous and current data.
|
|
240
|
+
* @param diffState An object that contains previous and current edge's state.
|
|
241
|
+
* @returns The display object representing the label background shape of the edge.
|
|
242
|
+
*/
|
|
210
243
|
drawLabelBackgroundShape(model, shapeMap, diffData, diffState) {
|
|
211
244
|
const { labelShape } = shapeMap;
|
|
212
245
|
if (!labelShape || !labelShape.style.text || !model.data.labelShape)
|
|
@@ -240,6 +273,14 @@ export class BaseEdge {
|
|
|
240
273
|
}
|
|
241
274
|
return this.upsertShape('rect', 'labelBackgroundShape', bgStyle, shapeMap, model);
|
|
242
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Draw the icon shape of the edge
|
|
278
|
+
* @param model The displayed model of this edge, only for drawing and not received by users.
|
|
279
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
280
|
+
* @param diffData An object that contains previous and current data.
|
|
281
|
+
* @param diffState An object that contains previous and current edge's state.
|
|
282
|
+
* @returns The display object representing the icon shape of the edge.
|
|
283
|
+
*/
|
|
243
284
|
drawIconShape(model, shapeMap, diffData, diffState) {
|
|
244
285
|
const { labelShape, labelBackgroundShape, keyShape } = shapeMap;
|
|
245
286
|
const { iconShape: shapeStyle, labelShape: labelShapeProps } = this.mergedStyles;
|
|
@@ -293,6 +334,14 @@ export class BaseEdge {
|
|
|
293
334
|
}
|
|
294
335
|
return this.upsertShape(iconShapeType, 'iconShape', shapeStyle, shapeMap, model);
|
|
295
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* Draw the halo shape of the edge
|
|
339
|
+
* @param model The displayed model of this edge, only for drawing and not received by users.
|
|
340
|
+
* @param shapeMap The shape map that contains all of the elements to show on the edge.
|
|
341
|
+
* @param diffData An object that contains previous and current data.
|
|
342
|
+
* @param diffState An object that contains previous and current edge's state.
|
|
343
|
+
* @returns The display object representing the halo shape of the edge.
|
|
344
|
+
*/
|
|
296
345
|
drawHaloShape(model, shapeMap, diffData, diffState) {
|
|
297
346
|
const { keyShape } = shapeMap;
|
|
298
347
|
const { haloShape: haloShapeStyle } = this.mergedStyles;
|
|
@@ -330,25 +379,33 @@ export class BaseEdge {
|
|
|
330
379
|
}
|
|
331
380
|
/**
|
|
332
381
|
* Update the source point { x, y } for the edge. Called in item's draw func.
|
|
333
|
-
* @param point
|
|
382
|
+
* @param point source point
|
|
334
383
|
*/
|
|
335
384
|
setSourcePoint(point) {
|
|
336
385
|
this.sourcePoint = point;
|
|
337
386
|
}
|
|
338
387
|
/**
|
|
339
388
|
* Update the target point { x, y } for the edge. Called in item's draw func.
|
|
340
|
-
* @param point
|
|
389
|
+
* @param point target point
|
|
341
390
|
*/
|
|
342
391
|
setTargetPoint(point) {
|
|
343
392
|
this.targetPoint = point;
|
|
344
393
|
}
|
|
345
394
|
/**
|
|
346
395
|
* Update all visible nodes on the canvas to be aware of obstacles. Called in item's draw func.
|
|
347
|
-
* @param nodeMap
|
|
396
|
+
* @param nodeMap The Map object representing the node map, where keys are node IDs and values are nodes.
|
|
348
397
|
*/
|
|
349
398
|
setNodeMap(nodeMap) {
|
|
350
399
|
this.nodeMap = nodeMap;
|
|
351
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* Adds or updates an arrow marker on the specified position of an edge.
|
|
403
|
+
* @param position - The position where the arrow marker should be added or updated. Can be either 'start' or 'end'.
|
|
404
|
+
* @param arrowConfig - The configuration for the arrow marker. Can be a boolean indicating whether to use the default arrow configuration, or an ArrowStyle object with custom arrow properties.
|
|
405
|
+
* @param bodyStyle - The style of the edge body.
|
|
406
|
+
* @param model - The EdgeDisplayModel that contains the data and style information for the edge.
|
|
407
|
+
* @param resultStyle - The style object where the arrow marker properties will be added or updated.
|
|
408
|
+
*/
|
|
352
409
|
upsertArrow(position, arrowConfig, bodyStyle, model, resultStyle) {
|
|
353
410
|
const markerField = `marker${position === 'start' ? 'Start' : 'End'}`;
|
|
354
411
|
if (!arrowConfig) {
|
|
@@ -368,6 +425,15 @@ export class BaseEdge {
|
|
|
368
425
|
resultStyle[markerField] = this.upsertShape('path', `${markerField}Shape`, Object.assign(Object.assign(Object.assign({}, bodyStyle), { fill: type === 'simple' ? '' : bodyStyle.stroke, path, anchor: '0.5 0.5', transformOrigin: 'center' }), others), {}, model);
|
|
369
426
|
resultStyle[`${markerField}Offset`] = width / 2 + offset;
|
|
370
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* Create (if does not exit in shapeMap) or update the shape according to the configurations.
|
|
430
|
+
* @param type shape's type
|
|
431
|
+
* @param id unique string to indicates the shape
|
|
432
|
+
* @param style style to be updated
|
|
433
|
+
* @param shapeMap the shape map of a edge
|
|
434
|
+
* @param model data model of the edge
|
|
435
|
+
* @returns The display object representing the shape.
|
|
436
|
+
*/
|
|
371
437
|
upsertShape(type, id, style, shapeMap, model) {
|
|
372
438
|
return upsertShape(type, id, style, shapeMap, model);
|
|
373
439
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"src/","sources":["stdlib/item/edge/base.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAgB3B,OAAO,EACL,2BAA2B,EAC3B,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGzE,MAAM,OAAgB,QAAQ;IAmD5B,YAAY,KAAK;QAjDjB,kBAAa,GAAoB,EAAE,CAAC;QAmBpC,mCAAmC;QAC3B,cAAS,GAmBb;YACF,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,CAAC;YACf,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,EAAE;YACjB,aAAa,EAAE,mBAAmB,CAAC,IAAI;YACvC,WAAW,EAAE,IAAI;SAClB,CAAC;QA6XF;;;;;;WAMG;QACI,WAAM,GAAG,CAAC,QAAsB,EAAE,IAAY,EAAE,EAAE;;YACvD,qCAAqC;YACrC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAEtC,oBAAoB;YACpB,IAAI,CAAC,IAAI,CA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C,CAAC,SAAS,CAAC,MAAM,EAC/C,IAAI,EACJ,MAAM,EAAE,SAAS,EACjB,eAAe,EAAE,QAAQ,KACtB,MAAM,GAEX,EAAE,EACF,KAAK,CACN,CAAC;QACF,WAAW,CAAC,GAAG,WAAW,QAAQ,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IAC3D,CAAC;IAED;;;;;;;;OAQG;IACI,WAAW,CAChB,IAAgB,EAChB,EAAU,EACV,KAAiB,EACjB,QAA8C,EAC9C,KAAuB;QAEvB,OAAO,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,KAAoB,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -34,17 +34,29 @@ export declare abstract class BaseNode {
|
|
|
34
34
|
};
|
|
35
35
|
constructor(props: any);
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Get merged styles from `getMergedStyles` and assigns the merged styles to the 'mergedStyles' property.
|
|
38
|
+
* @param model - The NodeDisplayModel or ComboDisplayModel to merge the styles from.
|
|
38
39
|
*/
|
|
39
40
|
mergeStyles(model: NodeDisplayModel | ComboDisplayModel): void;
|
|
41
|
+
/**
|
|
42
|
+
* Merge style
|
|
43
|
+
* @param model - The NodeDisplayModel or ComboDisplayModel to retrieve the merged styles from.
|
|
44
|
+
* @returns The merged styles as a NodeShapeStyles object.
|
|
45
|
+
*/
|
|
40
46
|
getMergedStyles(model: NodeDisplayModel | ComboDisplayModel): NodeShapeStyles;
|
|
41
47
|
/**
|
|
42
48
|
* Call it after calling draw function to update cache about bounds and zoom levels.
|
|
49
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
43
50
|
*/
|
|
44
51
|
updateCache(shapeMap: any): void;
|
|
45
52
|
/**
|
|
46
|
-
* Draw all elements related to the
|
|
53
|
+
* Draw all elements related to the node.
|
|
47
54
|
* You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconShape`...as you like.
|
|
55
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
56
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
57
|
+
* @param diffData An object that contains previous and current data.
|
|
58
|
+
* @param diffState An object that contains previous and current node's state.
|
|
59
|
+
* @returns An object containing the keyShape and optional labelShape, iconShape, and some otherShapes properties
|
|
48
60
|
*/
|
|
49
61
|
abstract draw(model: NodeDisplayModel | ComboDisplayModel, shapeMap: {
|
|
50
62
|
[shapeId: string]: DisplayObject;
|
|
@@ -60,17 +72,35 @@ export declare abstract class BaseNode {
|
|
|
60
72
|
iconShape?: DisplayObject;
|
|
61
73
|
[otherShapeId: string]: DisplayObject;
|
|
62
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* Perform additional drawing operations or add custom shapes after drawing node.
|
|
77
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
78
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
79
|
+
* @param shapesChanged An array of shape IDs that have changed and need to be updated.
|
|
80
|
+
* @returns An object that contains some new shapes to be added to the node.
|
|
81
|
+
*/
|
|
63
82
|
afterDraw(model: NodeDisplayModel | ComboDisplayModel, shapeMap: {
|
|
64
83
|
[shapeId: string]: DisplayObject;
|
|
65
84
|
}, shapesChanged?: string[]): {
|
|
66
85
|
[otherShapeId: string]: DisplayObject;
|
|
67
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Set the state for the node.
|
|
89
|
+
* @param state state name
|
|
90
|
+
* @param value state value
|
|
91
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
92
|
+
*/
|
|
68
93
|
setState: (name: string, value: boolean, shapeMap: {
|
|
69
94
|
[shapeId: string]: DisplayObject;
|
|
70
95
|
}) => void;
|
|
71
96
|
/**
|
|
72
97
|
* The key function of drawing shape.
|
|
73
|
-
*
|
|
98
|
+
* Draw the key shape of the node based on the provided model and shape map.
|
|
99
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
100
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
101
|
+
* @param diffData An object that contains previous and current data.
|
|
102
|
+
* @param diffState An object that contains previous and current node's state.
|
|
103
|
+
* @returns The display object representing the key shape of the node.
|
|
74
104
|
*/
|
|
75
105
|
abstract drawKeyShape(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
76
106
|
previous: NodeModelData | ComboModelData;
|
|
@@ -80,7 +110,12 @@ export declare abstract class BaseNode {
|
|
|
80
110
|
current: State[];
|
|
81
111
|
}): DisplayObject;
|
|
82
112
|
/**
|
|
83
|
-
* Draw the label of the node
|
|
113
|
+
* Draw the label shape of the node
|
|
114
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
115
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
116
|
+
* @param diffData An object that contains previous and current data.
|
|
117
|
+
* @param diffState An object that contains previous and current node's state.
|
|
118
|
+
* @returns The display object representing the label shape of the node.
|
|
84
119
|
*/
|
|
85
120
|
drawLabelShape(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
86
121
|
previous: NodeModelData | ComboModelData;
|
|
@@ -90,7 +125,12 @@ export declare abstract class BaseNode {
|
|
|
90
125
|
current: State[];
|
|
91
126
|
}): DisplayObject;
|
|
92
127
|
/**
|
|
93
|
-
* Draw the label background of the node
|
|
128
|
+
* Draw the label background shape of the node
|
|
129
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
130
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
131
|
+
* @param diffData An object that contains previous and current data.
|
|
132
|
+
* @param diffState An object that contains previous and current node's state.
|
|
133
|
+
* @returns The display object representing the label background shape of the node.
|
|
94
134
|
*/
|
|
95
135
|
drawLabelBackgroundShape(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
96
136
|
previous: NodeModelData | ComboModelData;
|
|
@@ -100,7 +140,12 @@ export declare abstract class BaseNode {
|
|
|
100
140
|
newState: State[];
|
|
101
141
|
}): DisplayObject;
|
|
102
142
|
/**
|
|
103
|
-
* Draw the icon of the node
|
|
143
|
+
* Draw the icon shape of the node
|
|
144
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
145
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
146
|
+
* @param diffData An object that contains previous and current data.
|
|
147
|
+
* @param diffState An object that contains previous and current node's state.
|
|
148
|
+
* @returns The display object representing the icon shape of the node.
|
|
104
149
|
*/
|
|
105
150
|
drawIconShape(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
106
151
|
previous: NodeModelData | ComboModelData;
|
|
@@ -110,7 +155,12 @@ export declare abstract class BaseNode {
|
|
|
110
155
|
current: State[];
|
|
111
156
|
}): DisplayObject;
|
|
112
157
|
/**
|
|
113
|
-
* Draw the halo of the node
|
|
158
|
+
* Draw the halo shape of the node
|
|
159
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
160
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
161
|
+
* @param diffData An object that contains previous and current data.
|
|
162
|
+
* @param diffState An object that contains previous and current node's state.
|
|
163
|
+
* @returns The display object representing the halo shape of the node.
|
|
114
164
|
*/
|
|
115
165
|
drawHaloShape(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
116
166
|
previous: NodeModelData | ComboModelData;
|
|
@@ -120,7 +170,12 @@ export declare abstract class BaseNode {
|
|
|
120
170
|
current: State[];
|
|
121
171
|
}): DisplayObject;
|
|
122
172
|
/**
|
|
123
|
-
* Draw the anchors of the node
|
|
173
|
+
* Draw the anchors shape of the node
|
|
174
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
175
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
176
|
+
* @param diffData An object that contains previous and current data.
|
|
177
|
+
* @param diffState An object that contains previous and current node's state.
|
|
178
|
+
* @returns The display object representing the anchors shape of the node.
|
|
124
179
|
*/
|
|
125
180
|
drawAnchorShapes(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
126
181
|
previous: NodeModelData | ComboModelData;
|
|
@@ -133,14 +188,19 @@ export declare abstract class BaseNode {
|
|
|
133
188
|
};
|
|
134
189
|
private getAnchorPosition;
|
|
135
190
|
/**
|
|
136
|
-
*
|
|
137
|
-
* e.g CircleNode `
|
|
138
|
-
* @param
|
|
139
|
-
* @
|
|
191
|
+
* Configures the anchor positions based on the provided keyShapeStyle and returns the configuration.
|
|
192
|
+
* e.g for a CircleNode, it returns: `{"right":keyShapeStyle.x+keyShapeStyle.r, keyShapeStyle.y}`
|
|
193
|
+
* @param keyShapeStyle - The keyShapeStyle object that contains the style information of the key shape.
|
|
194
|
+
* @returns The anchor position configuration as an IAnchorPositionMap object.
|
|
140
195
|
*/
|
|
141
196
|
calculateAnchorPosition(keyShapeStyle: any): IAnchorPositionMap;
|
|
142
197
|
/**
|
|
143
|
-
* Draw the badges of the node
|
|
198
|
+
* Draw the badges shape of the node
|
|
199
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
200
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
201
|
+
* @param diffData An object that contains previous and current data.
|
|
202
|
+
* @param diffState An object that contains previous and current node's state.
|
|
203
|
+
* @returns The display object representing the badges shape of the node.
|
|
144
204
|
*/
|
|
145
205
|
drawBadgeShapes(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
146
206
|
previous: NodeModelData | ComboModelData;
|
|
@@ -153,6 +213,11 @@ export declare abstract class BaseNode {
|
|
|
153
213
|
};
|
|
154
214
|
/**
|
|
155
215
|
* Draw other shapes(such as preRect,stateIcon) of the node
|
|
216
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
217
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
218
|
+
* @param diffData An object that contains previous and current data.
|
|
219
|
+
* @param diffState An object that contains previous and current node's state.
|
|
220
|
+
* @returns The display object representing the other shapes of the node.
|
|
156
221
|
*/
|
|
157
222
|
drawOtherShapes(model: NodeDisplayModel | ComboDisplayModel, shapeMap: NodeShapeMap | ComboShapeMap, diffData?: {
|
|
158
223
|
previous: NodeModelData | ComboModelData;
|
|
@@ -167,8 +232,8 @@ export declare abstract class BaseNode {
|
|
|
167
232
|
* The listener for graph zooming.
|
|
168
233
|
* 1. show / hide some shapes while zoom level changed;
|
|
169
234
|
* 2. change the shapes' sizes to make them have same visual size while zooming, e.g. labelShape, labelBackgroundShape.
|
|
170
|
-
* @param shapeMap
|
|
171
|
-
* @param zoom
|
|
235
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
236
|
+
* @param zoom The zoom level of the graph.
|
|
172
237
|
*/
|
|
173
238
|
onZoom: (shapeMap: NodeShapeMap | ComboShapeMap, zoom: number) => void;
|
|
174
239
|
/**
|
|
@@ -178,5 +243,14 @@ export declare abstract class BaseNode {
|
|
|
178
243
|
* @returns
|
|
179
244
|
*/
|
|
180
245
|
private balanceShapeSize;
|
|
246
|
+
/**
|
|
247
|
+
* Create (if does not exit in shapeMap) or update the shape according to the configurations.
|
|
248
|
+
* @param type shape's type
|
|
249
|
+
* @param id unique string to indicates the shape
|
|
250
|
+
* @param style style to be updated
|
|
251
|
+
* @param shapeMap the shape map of a node / combo
|
|
252
|
+
* @param model data model of the node / combo
|
|
253
|
+
* @returns The display object representing the shape.
|
|
254
|
+
*/
|
|
181
255
|
upsertShape(type: SHAPE_TYPE | SHAPE_TYPE_3D, id: string, style: ShapeStyle, shapeMap: NodeShapeMap | ComboShapeMap, model: NodeDisplayModel | ComboDisplayModel): DisplayObject;
|
|
182
256
|
}
|
|
@@ -38,8 +38,8 @@ export class BaseNode {
|
|
|
38
38
|
* The listener for graph zooming.
|
|
39
39
|
* 1. show / hide some shapes while zoom level changed;
|
|
40
40
|
* 2. change the shapes' sizes to make them have same visual size while zooming, e.g. labelShape, labelBackgroundShape.
|
|
41
|
-
* @param shapeMap
|
|
42
|
-
* @param zoom
|
|
41
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
42
|
+
* @param zoom The zoom level of the graph.
|
|
43
43
|
*/
|
|
44
44
|
this.onZoom = (shapeMap, zoom) => {
|
|
45
45
|
var _a, _b, _c;
|
|
@@ -95,11 +95,17 @@ export class BaseNode {
|
|
|
95
95
|
this.zoomCache.animateConfig = Object.assign(Object.assign({}, DEFAULT_ANIMATE_CFG.zoom), lodStrategy === null || lodStrategy === void 0 ? void 0 : lodStrategy.animateCfg);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Get merged styles from `getMergedStyles` and assigns the merged styles to the 'mergedStyles' property.
|
|
99
|
+
* @param model - The NodeDisplayModel or ComboDisplayModel to merge the styles from.
|
|
99
100
|
*/
|
|
100
101
|
mergeStyles(model) {
|
|
101
102
|
this.mergedStyles = this.getMergedStyles(model);
|
|
102
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Merge style
|
|
106
|
+
* @param model - The NodeDisplayModel or ComboDisplayModel to retrieve the merged styles from.
|
|
107
|
+
* @returns The merged styles as a NodeShapeStyles object.
|
|
108
|
+
*/
|
|
103
109
|
getMergedStyles(model) {
|
|
104
110
|
var _a;
|
|
105
111
|
const { data } = model;
|
|
@@ -144,6 +150,7 @@ export class BaseNode {
|
|
|
144
150
|
}
|
|
145
151
|
/**
|
|
146
152
|
* Call it after calling draw function to update cache about bounds and zoom levels.
|
|
153
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
147
154
|
*/
|
|
148
155
|
updateCache(shapeMap) {
|
|
149
156
|
['keyShape', 'labelShape']
|
|
@@ -175,15 +182,27 @@ export class BaseNode {
|
|
|
175
182
|
this.zoomCache.wordWrapWidth = getWordWrapWidthByBox(this.boundsCache.keyShapeLocal, maxWidth, 1);
|
|
176
183
|
}
|
|
177
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Perform additional drawing operations or add custom shapes after drawing node.
|
|
187
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
188
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
189
|
+
* @param shapesChanged An array of shape IDs that have changed and need to be updated.
|
|
190
|
+
* @returns An object that contains some new shapes to be added to the node.
|
|
191
|
+
*/
|
|
178
192
|
afterDraw(model, shapeMap, shapesChanged) {
|
|
179
193
|
return {};
|
|
180
194
|
}
|
|
181
195
|
/**
|
|
182
|
-
* Draw the label of the node
|
|
196
|
+
* Draw the label shape of the node
|
|
197
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
198
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
199
|
+
* @param diffData An object that contains previous and current data.
|
|
200
|
+
* @param diffState An object that contains previous and current node's state.
|
|
201
|
+
* @returns The display object representing the label shape of the node.
|
|
183
202
|
*/
|
|
184
203
|
drawLabelShape(model, shapeMap, diffData, diffState) {
|
|
185
204
|
const { labelShape: shapeStyle } = this.mergedStyles;
|
|
186
|
-
if (!shapeStyle)
|
|
205
|
+
if (!shapeStyle || !shapeStyle.text || !model.data.labelShape)
|
|
187
206
|
return;
|
|
188
207
|
const { keyShape } = shapeMap;
|
|
189
208
|
this.boundsCache.keyShapeLocal =
|
|
@@ -245,11 +264,16 @@ export class BaseNode {
|
|
|
245
264
|
return this.upsertShape('text', 'labelShape', style, shapeMap, model);
|
|
246
265
|
}
|
|
247
266
|
/**
|
|
248
|
-
* Draw the label background of the node
|
|
267
|
+
* Draw the label background shape of the node
|
|
268
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
269
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
270
|
+
* @param diffData An object that contains previous and current data.
|
|
271
|
+
* @param diffState An object that contains previous and current node's state.
|
|
272
|
+
* @returns The display object representing the label background shape of the node.
|
|
249
273
|
*/
|
|
250
274
|
drawLabelBackgroundShape(model, shapeMap, diffData, diffState) {
|
|
251
275
|
const { labelShape } = shapeMap;
|
|
252
|
-
if (!labelShape || !model.data.labelShape)
|
|
276
|
+
if (!labelShape || !labelShape.style.text || !model.data.labelShape)
|
|
253
277
|
return;
|
|
254
278
|
if (!this.boundsCache.labelShapeGeometry ||
|
|
255
279
|
labelShape.getAttribute(LOCAL_BOUNDS_DIRTY_FLAG_KEY)) {
|
|
@@ -267,7 +291,12 @@ export class BaseNode {
|
|
|
267
291
|
return bgShape;
|
|
268
292
|
}
|
|
269
293
|
/**
|
|
270
|
-
* Draw the icon of the node
|
|
294
|
+
* Draw the icon shape of the node
|
|
295
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
296
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
297
|
+
* @param diffData An object that contains previous and current data.
|
|
298
|
+
* @param diffState An object that contains previous and current node's state.
|
|
299
|
+
* @returns The display object representing the icon shape of the node.
|
|
271
300
|
*/
|
|
272
301
|
drawIconShape(model, shapeMap, diffData, diffState) {
|
|
273
302
|
const { iconShape: shapeStyle } = this.mergedStyles;
|
|
@@ -291,7 +320,12 @@ export class BaseNode {
|
|
|
291
320
|
return this.upsertShape(iconShapeType, 'iconShape', shapeStyle, shapeMap, model);
|
|
292
321
|
}
|
|
293
322
|
/**
|
|
294
|
-
* Draw the halo of the node
|
|
323
|
+
* Draw the halo shape of the node
|
|
324
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
325
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
326
|
+
* @param diffData An object that contains previous and current data.
|
|
327
|
+
* @param diffState An object that contains previous and current node's state.
|
|
328
|
+
* @returns The display object representing the halo shape of the node.
|
|
295
329
|
*/
|
|
296
330
|
drawHaloShape(model, shapeMap, diffData, diffState) {
|
|
297
331
|
const { keyShape } = shapeMap;
|
|
@@ -304,7 +338,12 @@ export class BaseNode {
|
|
|
304
338
|
y, stroke: fill }), haloShapeStyle), { batchKey: 'halo' }), shapeMap, model);
|
|
305
339
|
}
|
|
306
340
|
/**
|
|
307
|
-
* Draw the anchors of the node
|
|
341
|
+
* Draw the anchors shape of the node
|
|
342
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
343
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
344
|
+
* @param diffData An object that contains previous and current data.
|
|
345
|
+
* @param diffState An object that contains previous and current node's state.
|
|
346
|
+
* @returns The display object representing the anchors shape of the node.
|
|
308
347
|
*/
|
|
309
348
|
drawAnchorShapes(model, shapeMap, diffData, diffState) {
|
|
310
349
|
const { anchorShapes: commonStyle, keyShape: keyShapeStyle } = this.mergedStyles;
|
|
@@ -350,10 +389,10 @@ export class BaseNode {
|
|
|
350
389
|
return anchorPositionMap['default'] || defaultPosition;
|
|
351
390
|
}
|
|
352
391
|
/**
|
|
353
|
-
*
|
|
354
|
-
* e.g CircleNode `
|
|
355
|
-
* @param
|
|
356
|
-
* @
|
|
392
|
+
* Configures the anchor positions based on the provided keyShapeStyle and returns the configuration.
|
|
393
|
+
* e.g for a CircleNode, it returns: `{"right":keyShapeStyle.x+keyShapeStyle.r, keyShapeStyle.y}`
|
|
394
|
+
* @param keyShapeStyle - The keyShapeStyle object that contains the style information of the key shape.
|
|
395
|
+
* @returns The anchor position configuration as an IAnchorPositionMap object.
|
|
357
396
|
*/
|
|
358
397
|
calculateAnchorPosition(keyShapeStyle) {
|
|
359
398
|
const x = convertToNumber(keyShapeStyle.x);
|
|
@@ -367,7 +406,12 @@ export class BaseNode {
|
|
|
367
406
|
return anchorPositionMap;
|
|
368
407
|
}
|
|
369
408
|
/**
|
|
370
|
-
* Draw the badges of the node
|
|
409
|
+
* Draw the badges shape of the node
|
|
410
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
411
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
412
|
+
* @param diffData An object that contains previous and current data.
|
|
413
|
+
* @param diffState An object that contains previous and current node's state.
|
|
414
|
+
* @returns The display object representing the badges shape of the node.
|
|
371
415
|
*/
|
|
372
416
|
drawBadgeShapes(model, shapeMap, diffData, diffState) {
|
|
373
417
|
const { badgeShapes: commonStyle, keyShape: keyShapeStyle } = this.mergedStyles;
|
|
@@ -455,6 +499,11 @@ export class BaseNode {
|
|
|
455
499
|
}
|
|
456
500
|
/**
|
|
457
501
|
* Draw other shapes(such as preRect,stateIcon) of the node
|
|
502
|
+
* @param model The displayed model of this node, only for drawing and not received by users.
|
|
503
|
+
* @param shapeMap The shape map that contains all of the elements to show on the node.
|
|
504
|
+
* @param diffData An object that contains previous and current data.
|
|
505
|
+
* @param diffState An object that contains previous and current node's state.
|
|
506
|
+
* @returns The display object representing the other shapes of the node.
|
|
458
507
|
*/
|
|
459
508
|
drawOtherShapes(model, shapeMap, diffData, diffState) {
|
|
460
509
|
return {};
|
|
@@ -538,6 +587,15 @@ export class BaseNode {
|
|
|
538
587
|
const xAxistRatio = (labelWidth * balanceRatio + paddingLeft + paddingRight) / width;
|
|
539
588
|
labelBackgroundShape.style.transform = `scale(${xAxistRatio}, ${balanceRatio})`;
|
|
540
589
|
}
|
|
590
|
+
/**
|
|
591
|
+
* Create (if does not exit in shapeMap) or update the shape according to the configurations.
|
|
592
|
+
* @param type shape's type
|
|
593
|
+
* @param id unique string to indicates the shape
|
|
594
|
+
* @param style style to be updated
|
|
595
|
+
* @param shapeMap the shape map of a node / combo
|
|
596
|
+
* @param model data model of the node / combo
|
|
597
|
+
* @returns The display object representing the shape.
|
|
598
|
+
*/
|
|
541
599
|
upsertShape(type, id, style, shapeMap, model) {
|
|
542
600
|
return upsertShape(type, id, style, shapeMap, model);
|
|
543
601
|
}
|