@antv/g6 5.0.40-alpha.1 → 5.0.40
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 +28 -28
- package/dist/lib/behaviors/drag-element-force.d.ts +10 -0
- package/dist/lib/version.d.ts +1 -1
- package/esm/behaviors/drag-element-force.d.ts +10 -0
- package/esm/behaviors/drag-element-force.js +2 -0
- package/esm/behaviors/drag-element-force.js.map +1 -1
- package/esm/plugins/utils/canvas.js +4 -3
- package/esm/plugins/utils/canvas.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/esm/version.js.map +1 -1
- package/lib/behaviors/drag-element-force.d.ts +10 -0
- package/lib/behaviors/drag-element-force.js +2 -0
- package/lib/behaviors/drag-element-force.js.map +1 -1
- package/lib/plugins/utils/canvas.js +4 -3
- package/lib/plugins/utils/canvas.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -3
- package/src/behaviors/drag-element-force.ts +14 -1
- package/src/plugins/utils/canvas.ts +14 -11
- package/src/version.ts +1 -1
- package/README.en-US.md +0 -170
|
@@ -7,6 +7,16 @@ import { DragElement } from './drag-element';
|
|
|
7
7
|
* <en/> Call d3-force layout to drag element behavior options
|
|
8
8
|
*/
|
|
9
9
|
export interface DragElementForceOptions extends Omit<DragElementOptions, 'animation' | 'dropEffect' | 'shadow'> {
|
|
10
|
+
/**
|
|
11
|
+
* <zh/> 在拖拽结束后,节点是否保持固定位置
|
|
12
|
+
* - `true`: 在拖拽结束后,节点的位置将保持固定,不受布局算法的影响
|
|
13
|
+
* - `false`: 在拖拽结束后,节点的位置将继续受到布局算法的影响
|
|
14
|
+
*
|
|
15
|
+
* <en/> Whether the node remains in a fixed position after dragging ends
|
|
16
|
+
* - `true`: After dragging ends, the node's position will remain fixed and will not be affected by the layout algorithm
|
|
17
|
+
* - `false`: After dragging ends, the node's position will continue to be affected by the layout algorithm
|
|
18
|
+
*/
|
|
19
|
+
fixed?: boolean;
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
12
22
|
* <zh/> 调用力导布局拖拽元素的交互
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.0.40
|
|
1
|
+
export declare const version = "5.0.40";
|
|
@@ -7,6 +7,16 @@ import { DragElement } from './drag-element';
|
|
|
7
7
|
* <en/> Call d3-force layout to drag element behavior options
|
|
8
8
|
*/
|
|
9
9
|
export interface DragElementForceOptions extends Omit<DragElementOptions, 'animation' | 'dropEffect' | 'shadow'> {
|
|
10
|
+
/**
|
|
11
|
+
* <zh/> 在拖拽结束后,节点是否保持固定位置
|
|
12
|
+
* - `true`: 在拖拽结束后,节点的位置将保持固定,不受布局算法的影响
|
|
13
|
+
* - `false`: 在拖拽结束后,节点的位置将继续受到布局算法的影响
|
|
14
|
+
*
|
|
15
|
+
* <en/> Whether the node remains in a fixed position after dragging ends
|
|
16
|
+
* - `true`: After dragging ends, the node's position will remain fixed and will not be affected by the layout algorithm
|
|
17
|
+
* - `false`: After dragging ends, the node's position will continue to be affected by the layout algorithm
|
|
18
|
+
*/
|
|
19
|
+
fixed?: boolean;
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
12
22
|
* <zh/> 调用力导布局拖拽元素的交互
|
|
@@ -97,6 +97,8 @@ export class DragElementForce extends DragElement {
|
|
|
97
97
|
const layout = this.forceLayoutInstance;
|
|
98
98
|
if (layout)
|
|
99
99
|
getLayoutProperty(layout, 'simulation').alphaTarget(0);
|
|
100
|
+
if (this.options.fixed)
|
|
101
|
+
return;
|
|
100
102
|
this.context.graph.getNodeData(this.target).forEach((element) => {
|
|
101
103
|
if (layout)
|
|
102
104
|
invokeLayoutMethod(layout, 'setFixedPosition', idOf(element), [null, null, null]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-element-force.js","sourceRoot":"src/","sources":["behaviors/drag-element-force.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"drag-element-force.js","sourceRoot":"src/","sources":["behaviors/drag-element-force.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAoB7C;;;;;;;;GAQG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,IAAY,mBAAmB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAO,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,EAAE,CAAC,CAAC,CAAC;IACrH,CAAC;IAED;;;;;OAKG;IACO,QAAQ,CAAC,KAAwB;QACzC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAEvC,yCAAyC;QACzC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC9B,KAAK,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;YAC9E,OAAO,KAAK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om';
|
|
|
10
10
|
* @returns <zh/> [容器, 画布] | <en/> [container, canvas]
|
|
11
11
|
*/
|
|
12
12
|
export function createPluginCanvas(options) {
|
|
13
|
-
const { width, height, renderer
|
|
13
|
+
const { width, height, renderer } = options;
|
|
14
14
|
const $container = getContainer(options);
|
|
15
|
-
const [x, y] = computePosition(options);
|
|
16
|
-
Object.assign($container.style, Object.assign({ position: 'absolute', left: x + 'px', top: y + 'px', width: width + 'px', height: height + 'px' }, containerStyle));
|
|
17
15
|
const canvas = new GCanvas({
|
|
18
16
|
width,
|
|
19
17
|
height,
|
|
@@ -36,6 +34,9 @@ function getContainer(options) {
|
|
|
36
34
|
return typeof container === 'string' ? document.getElementById(container) : container;
|
|
37
35
|
}
|
|
38
36
|
const $container = createPluginContainer(className, false);
|
|
37
|
+
const { width, height, containerStyle } = options;
|
|
38
|
+
const [x, y] = computePosition(options);
|
|
39
|
+
Object.assign($container.style, Object.assign({ position: 'absolute', left: x + 'px', top: y + 'px', width: width + 'px', height: height + 'px' }, containerStyle));
|
|
39
40
|
(_a = graphCanvas.getContainer()) === null || _a === void 0 ? void 0 : _a.appendChild($container);
|
|
40
41
|
return $container;
|
|
41
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.js","sourceRoot":"src/","sources":["plugins/utils/canvas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAqB9C;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAgB;IACjD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"canvas.js","sourceRoot":"src/","sources":["plugins/utils/canvas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EAAE,CAAC,GAAG,IAAI,EACd,GAAG,EAAE,CAAC,GAAG,IAAI,EACb,KAAK,EAAE,KAAK,GAAG,IAAI,EACnB,MAAM,EAAE,MAAM,GAAG,IAAI,IAClB,cAAc,EACjB,CAAC;IAEH,MAAA,WAAW,CAAC,YAAY,EAAE,0CAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,OAAgB;IACvC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAC1D,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IACnD,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC"}
|
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.0.40
|
|
1
|
+
export declare const version = "5.0.40";
|
package/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '5.0.40
|
|
1
|
+
export const version = '5.0.40';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"src/","sources":["version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"src/","sources":["version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -7,6 +7,16 @@ import { DragElement } from './drag-element';
|
|
|
7
7
|
* <en/> Call d3-force layout to drag element behavior options
|
|
8
8
|
*/
|
|
9
9
|
export interface DragElementForceOptions extends Omit<DragElementOptions, 'animation' | 'dropEffect' | 'shadow'> {
|
|
10
|
+
/**
|
|
11
|
+
* <zh/> 在拖拽结束后,节点是否保持固定位置
|
|
12
|
+
* - `true`: 在拖拽结束后,节点的位置将保持固定,不受布局算法的影响
|
|
13
|
+
* - `false`: 在拖拽结束后,节点的位置将继续受到布局算法的影响
|
|
14
|
+
*
|
|
15
|
+
* <en/> Whether the node remains in a fixed position after dragging ends
|
|
16
|
+
* - `true`: After dragging ends, the node's position will remain fixed and will not be affected by the layout algorithm
|
|
17
|
+
* - `false`: After dragging ends, the node's position will continue to be affected by the layout algorithm
|
|
18
|
+
*/
|
|
19
|
+
fixed?: boolean;
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
12
22
|
* <zh/> 调用力导布局拖拽元素的交互
|
|
@@ -100,6 +100,8 @@ class DragElementForce extends drag_element_1.DragElement {
|
|
|
100
100
|
const layout = this.forceLayoutInstance;
|
|
101
101
|
if (layout)
|
|
102
102
|
(0, layout_1.getLayoutProperty)(layout, 'simulation').alphaTarget(0);
|
|
103
|
+
if (this.options.fixed)
|
|
104
|
+
return;
|
|
103
105
|
this.context.graph.getNodeData(this.target).forEach((element) => {
|
|
104
106
|
if (layout)
|
|
105
107
|
(0, layout_1.invokeLayoutMethod)(layout, 'setFixedPosition', (0, id_1.idOf)(element), [null, null, null]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-element-force.js","sourceRoot":"src/","sources":["behaviors/drag-element-force.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oCAAmC;AACnC,4CAAwE;AACxE,0CAAuC;AACvC,4CAAsC;AAEtC,iDAA6C;
|
|
1
|
+
{"version":3,"file":"drag-element-force.js","sourceRoot":"src/","sources":["behaviors/drag-element-force.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oCAAmC;AACnC,4CAAwE;AAC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I,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACO,SAAS;QACjB,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACxC,IAAI,MAAM;YAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAEnE,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK;YAAE,OAAO;QAE/B,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC9D,IAAI,MAAM;gBAAE,IAAA,2BAAkB,EAAC,MAAM,EAAE,kBAAkB,EAAE,IAAA,SAAI,EAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAChG,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AArFD,4CAqFC"}
|
|
@@ -13,10 +13,8 @@ const dom_1 = require("./dom");
|
|
|
13
13
|
* @returns <zh/> [容器, 画布] | <en/> [container, canvas]
|
|
14
14
|
*/
|
|
15
15
|
function createPluginCanvas(options) {
|
|
16
|
-
const { width, height, renderer
|
|
16
|
+
const { width, height, renderer } = options;
|
|
17
17
|
const $container = getContainer(options);
|
|
18
|
-
const [x, y] = computePosition(options);
|
|
19
|
-
Object.assign($container.style, Object.assign({ position: 'absolute', left: x + 'px', top: y + 'px', width: width + 'px', height: height + 'px' }, containerStyle));
|
|
20
18
|
const canvas = new g_1.Canvas({
|
|
21
19
|
width,
|
|
22
20
|
height,
|
|
@@ -39,6 +37,9 @@ function getContainer(options) {
|
|
|
39
37
|
return typeof container === 'string' ? document.getElementById(container) : container;
|
|
40
38
|
}
|
|
41
39
|
const $container = (0, dom_1.createPluginContainer)(className, false);
|
|
40
|
+
const { width, height, containerStyle } = options;
|
|
41
|
+
const [x, y] = computePosition(options);
|
|
42
|
+
Object.assign($container.style, Object.assign({ position: 'absolute', left: x + 'px', top: y + 'px', width: width + 'px', height: height + 'px' }, containerStyle));
|
|
42
43
|
(_a = graphCanvas.getContainer()) === null || _a === void 0 ? void 0 : _a.appendChild($container);
|
|
43
44
|
return $container;
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.js","sourceRoot":"src/","sources":["plugins/utils/canvas.ts"],"names":[],"mappings":";;AAkCA,
|
|
1
|
+
{"version":3,"file":"canvas.js","sourceRoot":"src/","sources":["plugins/utils/canvas.ts"],"names":[],"mappings":";;AAkCA,gDAYC;AA7CD,+BAA4C;AAC5C,6CAA0C;AAG1C,qDAAuD;AACvD,+BAA8C;AAqB9C;;;;;;GAMG;AACH,SAAgB,kBAAkB,CAAC,OAAgB;IACjD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC5C,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAEzC,MAAM,MAAM,GAAG,IAAI,UAAO,CAAC;QACzB,KAAK;QACL,MAAM;QACN,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,QAAQ,IAAI,IAAI,mBAAQ,EAAE;KACrC,CAAC,CAAC;IAEH,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,OAAgB;;IACpC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IACtD,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACzF,CAAC;IAED,MAAM,UAAU,GAAG,IAAA,2BAAqB,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAE3D,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;IAClD,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAExC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,kBAC5B,QAAQ,EAAE,UAAU,EACpB,IAAI,EAAE,CAAC,GAAG,IAAI,EACd,GAAG,EAAE,CAAC,GAAG,IAAI,EACb,KAAK,EAAE,KAAK,GAAG,IAAI,EACnB,MAAM,EAAE,MAAM,GAAG,IAAI,IAClB,cAAc,EACjB,CAAC;IAEH,MAAA,WAAW,CAAC,YAAY,EAAE,0CAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,OAAgB;IACvC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAC1D,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAA,0BAAc,EAAC,SAAS,CAAC,CAAC;IACnD,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.0.40
|
|
1
|
+
export declare const version = "5.0.40";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"src/","sources":["version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"src/","sources":["version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g6",
|
|
3
|
-
"version": "5.0.40
|
|
3
|
+
"version": "5.0.40",
|
|
4
4
|
"description": "A Graph Visualization Framework in JavaScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -58,8 +58,7 @@
|
|
|
58
58
|
"xmlserializer": "^0.6.1"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
|
-
"registry": "https://registry.npmjs.org/"
|
|
62
|
-
"tag": "alpha"
|
|
61
|
+
"registry": "https://registry.npmjs.org/"
|
|
63
62
|
},
|
|
64
63
|
"limit-size": [
|
|
65
64
|
{
|
|
@@ -11,7 +11,18 @@ import { DragElement } from './drag-element';
|
|
|
11
11
|
*
|
|
12
12
|
* <en/> Call d3-force layout to drag element behavior options
|
|
13
13
|
*/
|
|
14
|
-
export interface DragElementForceOptions extends Omit<DragElementOptions, 'animation' | 'dropEffect' | 'shadow'> {
|
|
14
|
+
export interface DragElementForceOptions extends Omit<DragElementOptions, 'animation' | 'dropEffect' | 'shadow'> {
|
|
15
|
+
/**
|
|
16
|
+
* <zh/> 在拖拽结束后,节点是否保持固定位置
|
|
17
|
+
* - `true`: 在拖拽结束后,节点的位置将保持固定,不受布局算法的影响
|
|
18
|
+
* - `false`: 在拖拽结束后,节点的位置将继续受到布局算法的影响
|
|
19
|
+
*
|
|
20
|
+
* <en/> Whether the node remains in a fixed position after dragging ends
|
|
21
|
+
* - `true`: After dragging ends, the node's position will remain fixed and will not be affected by the layout algorithm
|
|
22
|
+
* - `false`: After dragging ends, the node's position will continue to be affected by the layout algorithm
|
|
23
|
+
*/
|
|
24
|
+
fixed?: boolean;
|
|
25
|
+
}
|
|
15
26
|
|
|
16
27
|
/**
|
|
17
28
|
* <zh/> 调用力导布局拖拽元素的交互
|
|
@@ -101,6 +112,8 @@ export class DragElementForce extends DragElement {
|
|
|
101
112
|
const layout = this.forceLayoutInstance;
|
|
102
113
|
if (layout) getLayoutProperty(layout, 'simulation').alphaTarget(0);
|
|
103
114
|
|
|
115
|
+
if (this.options.fixed) return;
|
|
116
|
+
|
|
104
117
|
this.context.graph.getNodeData(this.target).forEach((element) => {
|
|
105
118
|
if (layout) invokeLayoutMethod(layout, 'setFixedPosition', idOf(element), [null, null, null]);
|
|
106
119
|
});
|
|
@@ -33,18 +33,8 @@ interface Options {
|
|
|
33
33
|
* @returns <zh/> [容器, 画布] | <en/> [container, canvas]
|
|
34
34
|
*/
|
|
35
35
|
export function createPluginCanvas(options: Options): [HTMLElement, GCanvas] {
|
|
36
|
-
const { width, height, renderer
|
|
36
|
+
const { width, height, renderer } = options;
|
|
37
37
|
const $container = getContainer(options);
|
|
38
|
-
const [x, y] = computePosition(options);
|
|
39
|
-
|
|
40
|
-
Object.assign($container.style, {
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
left: x + 'px',
|
|
43
|
-
top: y + 'px',
|
|
44
|
-
width: width + 'px',
|
|
45
|
-
height: height + 'px',
|
|
46
|
-
...containerStyle,
|
|
47
|
-
});
|
|
48
38
|
|
|
49
39
|
const canvas = new GCanvas({
|
|
50
40
|
width,
|
|
@@ -70,6 +60,19 @@ function getContainer(options: Options) {
|
|
|
70
60
|
}
|
|
71
61
|
|
|
72
62
|
const $container = createPluginContainer(className, false);
|
|
63
|
+
|
|
64
|
+
const { width, height, containerStyle } = options;
|
|
65
|
+
const [x, y] = computePosition(options);
|
|
66
|
+
|
|
67
|
+
Object.assign($container.style, {
|
|
68
|
+
position: 'absolute',
|
|
69
|
+
left: x + 'px',
|
|
70
|
+
top: y + 'px',
|
|
71
|
+
width: width + 'px',
|
|
72
|
+
height: height + 'px',
|
|
73
|
+
...containerStyle,
|
|
74
|
+
});
|
|
75
|
+
|
|
73
76
|
graphCanvas.getContainer()?.appendChild($container);
|
|
74
77
|
return $container;
|
|
75
78
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.0.40
|
|
1
|
+
export const version = '5.0.40';
|
package/README.en-US.md
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# G6: A Graph Visualization Framework in TypeScript
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
[](https://travis-ci.org/antvis/g6) [](https://codecov.io/gh/antvis/G6)   [](https://www.npmjs.com/package/@antv/g6) [](https://npmjs.org/package/@antv/g6) [](http://isitmaintained.com/project/antvis/g6 'Percentage of issues still open')
|
|
6
|
-
|
|
7
|
-
[中文 README](README.md)
|
|
8
|
-
|
|
9
|
-
## What is G6
|
|
10
|
-
|
|
11
|
-
[G6](https://github.com/antvis/g6) is a graph visualization engine, which provides a set of basic mechanisms, including rendering, layout, analysis, interaction, animation, and other auxiliary tools. G6 aims to simplify the relationships, and help people to obtain the insight of relational data.
|
|
12
|
-
|
|
13
|
-
<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*zTjwQaXokeQAAAAAAAAAAABkARQnAQ' width=550 alt='' />
|
|
14
|
-
|
|
15
|
-
Developers are able to build graph visualization **analysis** applications or graph visualization **modeling** applications easily.
|
|
16
|
-
|
|
17
|
-
<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*zau8QJcVpDQAAAAAAAAAAABkARQnAQ' height=200 alt='' /><img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RIlETY_S6IoAAAAAAAAAAABkARQnAQ' height=200 alt='' />
|
|
18
|
-
|
|
19
|
-
<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*cDzXR4jIWr8AAAAAAAAAAABkARQnAQ' height=150 alt='' /><img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*DifbSahOblAAAAAAAAAAAABkARQnAQ' height=150 alt='' /><img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*HTasSJGC4koAAAAAAAAAAABkARQnAQ' height=150 alt='' />
|
|
20
|
-
|
|
21
|
-
> Powerful Animation and Interactions
|
|
22
|
-
|
|
23
|
-
<img src="https://user-images.githubusercontent.com/6113694/44995293-02858600-afd5-11e8-840c-349e4730d63d.gif" height=150 alt='' /><img src="https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*I9OdTbXJIi0AAAAAAAAAAABkARQnAQ" height=150 alt='' /><img src="https://user-images.githubusercontent.com/6113694/44995332-2ba61680-afd5-11e8-8cab-db0e9d08ceb7.gif" height=150 alt='' />
|
|
24
|
-
|
|
25
|
-
<img src="https://gw.alipayobjects.com/zos/rmsportal/HQxYguinFOMIXrGQOABY.gif" height=150 alt='' /><img src="https://gw.alipayobjects.com/zos/rmsportal/nAugyFgrbrUWPmDIDiQm.gif" height=150 alt='' /><img src="https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*xoufSYcjK2AAAAAAAAAAAABkARQnAQ" height=150 alt='' />
|
|
26
|
-
|
|
27
|
-
> Powerful Layouts
|
|
28
|
-
|
|
29
|
-
## Features
|
|
30
|
-
|
|
31
|
-
- Abundant Built-in Items: Nodes and edges with free configurations;
|
|
32
|
-
- Steerable Interactions: More than 10 basic interaction behaviors ;
|
|
33
|
-
- Powerful Layout: More than 10 layout algorithms;
|
|
34
|
-
- Convenient Components: Outstanding ability and performance;
|
|
35
|
-
- Friendly User Experience: Complete documents for different levels of user requirements. TypeScript supported.
|
|
36
|
-
|
|
37
|
-
G6 concentrates on the principle of 'good by default'. In addition, the custom mechanism of the item, interation behavior, and layout satisfies the customazation requirements.
|
|
38
|
-
|
|
39
|
-
<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*Y0c6S7cxjVkAAAAAAAAAAABkARQnAQ' width=800 height=200 alt='' />
|
|
40
|
-
|
|
41
|
-
> Abundant Built-in Items
|
|
42
|
-
|
|
43
|
-
## Installation
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
$ npm install @antv/g6
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Usage
|
|
50
|
-
|
|
51
|
-
<img src="https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*khbvSrptr0kAAAAAAAAAAABkARQnAQ" width=437 height=148 alt='' />
|
|
52
|
-
|
|
53
|
-
```js
|
|
54
|
-
import G6 from '@antv/g6';
|
|
55
|
-
|
|
56
|
-
const data = {
|
|
57
|
-
nodes: [
|
|
58
|
-
{
|
|
59
|
-
id: 'node1',
|
|
60
|
-
label: 'Circle1',
|
|
61
|
-
x: 150,
|
|
62
|
-
y: 150,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
id: 'node2',
|
|
66
|
-
label: 'Circle2',
|
|
67
|
-
x: 400,
|
|
68
|
-
y: 150,
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
edges: [
|
|
72
|
-
{
|
|
73
|
-
source: 'node1',
|
|
74
|
-
target: 'node2',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
const graph = new G6.Graph({
|
|
80
|
-
container: 'container',
|
|
81
|
-
width: 500,
|
|
82
|
-
height: 500,
|
|
83
|
-
defaultNode: {
|
|
84
|
-
type: 'circle',
|
|
85
|
-
size: [100],
|
|
86
|
-
color: '#5B8FF9',
|
|
87
|
-
style: {
|
|
88
|
-
fill: '#9EC9FF',
|
|
89
|
-
lineWidth: 3,
|
|
90
|
-
},
|
|
91
|
-
labelCfg: {
|
|
92
|
-
style: {
|
|
93
|
-
fill: '#fff',
|
|
94
|
-
fontSize: 20,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
defaultEdge: {
|
|
99
|
-
style: {
|
|
100
|
-
stroke: '#e2e2e2',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
graph.data(data);
|
|
106
|
-
graph.render();
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
[](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)
|
|
110
|
-
|
|
111
|
-
For more information of the usage, please refer to [Getting Started](https://g6.antv.antgroup.com/en/manual/getting-started).
|
|
112
|
-
|
|
113
|
-
## Development
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
$ npm install
|
|
117
|
-
|
|
118
|
-
# lerna bootstrap for multiple packages
|
|
119
|
-
$ npm run bootstrap
|
|
120
|
-
|
|
121
|
-
# build the packages
|
|
122
|
-
$ npm run build:all
|
|
123
|
-
|
|
124
|
-
# if you wanna watch one of the packages, e.g. packages/core
|
|
125
|
-
$ cd ./packages/core
|
|
126
|
-
$ npm run watch
|
|
127
|
-
|
|
128
|
-
# run test case
|
|
129
|
-
$ npm test
|
|
130
|
-
|
|
131
|
-
# run test case in watch mode
|
|
132
|
-
npm test -- --watch ./tests/unit/algorithm/find-path-spec
|
|
133
|
-
DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
## Documents
|
|
137
|
-
|
|
138
|
-
- <a href='https://g6.antv.antgroup.com/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
|
|
139
|
-
- <a href='https://g6.antv.antgroup.com/en/manual/middle/overview' target='_blank'>Middle Guides</a>
|
|
140
|
-
- <a href='https://g6.antv.antgroup.com/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
|
|
141
|
-
- <a href='https://g6.antv.antgroup.com/en/api/Graph' target='_blank'>API Reference</a>
|
|
142
|
-
|
|
143
|
-
## React project integration
|
|
144
|
-
|
|
145
|
-
For React project integration, we have an independent product recommendation: [Graphin](https://graphin.antv.vision), which is a toolkit based on G6 and React, that focuses on relational visual analysis. It's simple, efficient, out of the box.
|
|
146
|
-
|
|
147
|
-
At present, Graphin has good practices in business graph analysis projects. For details, see [《Who uses Graphin》](https://github.com/antvis/Graphin/issues/212)
|
|
148
|
-
|
|
149
|
-
## G6 Communication Group
|
|
150
|
-
|
|
151
|
-
Welcome to join the **G6 Communication Group** or **G6 Communication Group-2** (DingTalk groups). We also welcome the github issues.
|
|
152
|
-
|
|
153
|
-
<p>
|
|
154
|
-
<a href="https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*-RO_R7SCvroAAAAAAAAAAAAAARQnAQ" >
|
|
155
|
-
<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*-RO_R7SCvroAAAAAAAAAAAAAARQnAQ' style='width:250px;display:inline-block;vertical-align:top;' alt='' />
|
|
156
|
-
</a>
|
|
157
|
-
<a href="https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*hzfaSrAj0jkAAAAAAAAAAABkARQnAQ" >
|
|
158
|
-
<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*hzfaSrAj0jkAAAAAAAAAAABkARQnAQ' style='width:250px;display:inline-block;vertical-align:top;' alt='' />
|
|
159
|
-
</a>
|
|
160
|
-
<a href="https://graphin.antv.vision/" >
|
|
161
|
-
<img src='https://camo.githubusercontent.com/5e6624abcdde991f9fd89fce4933ad133a48d8fb603d1852c670da329df73ef7/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f6d646e2f726d735f3430326331612f616674732f696d672f412a2d717a6f54704c672d3163414141414141414141414141414152516e4151' style='width:250px;display:inline-block;vertical-align: top;' alt='' />
|
|
162
|
-
</a>
|
|
163
|
-
</p>
|
|
164
|
-
## How to Contribute
|
|
165
|
-
|
|
166
|
-
Please let us know what you are you going to help. Do check out [issues](https://github.com/antvis/g6/issues) for bug reports or suggestions first.
|
|
167
|
-
|
|
168
|
-
## License
|
|
169
|
-
|
|
170
|
-
[MIT license](./LICENSE).
|