Skip to content

Commit

Permalink
chore: update graphlib version (#5921)
Browse files Browse the repository at this point in the history
* chore: update graphlib version

* refactor: adjust demo and comment
  • Loading branch information
Aarebecca authored Jun 21, 2024
1 parent b8ddc52 commit ee335ed
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/g6/__tests__/demos/layout-compact-box-basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const layoutCompactBoxBasic: TestCase = async (context) => {
...context,
autoFit: 'view',
data: treeToGraphData(data),
behaviors: ['drag-canvas', 'zoom-canvas', 'drag-element'],
behaviors: ['drag-canvas', 'zoom-canvas', 'drag-element', 'collapse-expand'],
node: {
style: {
labelText: (data) => data.id,
Expand Down
2 changes: 1 addition & 1 deletion packages/g6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@antv/g": "^6.0.6",
"@antv/g-canvas": "^2.0.7",
"@antv/g-plugin-dragndrop": "^2.0.5",
"@antv/graphlib": "^2.0.2",
"@antv/graphlib": "^2.0.3",
"@antv/hierarchy": "^0.6.12",
"@antv/layout": "^1.2.14-beta.4",
"@antv/util": "^3.3.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/g6/src/runtime/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class Graph extends EventEmitter {
}

/**
* <zh/> 获取当前图的缩放区间
* <zh/> 设置当前图的缩放区间
*
* <en/> Get the zoom range of the current graph
* @param zoomRange - <zh/> 缩放区间 | <en/> zoom range
Expand Down
1 change: 0 additions & 1 deletion packages/site/.dumi/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if (window) {
window.layoutGpu = require('@antv/layout-gpu');
window.algorithm = require('@antv/algorithm');
window.layoutWasm = require('@antv/layout-wasm');
window.graphlib = require('@antv/graphlib');

window.insertCss = require('insert-css');
window.util = require('@antv/util');
Expand Down
1 change: 0 additions & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@antv/g6": "workspace:*",
"@antv/g6-extension-3d": "workspace:*",
"@antv/g6-extension-react": "workspace:*",
"@antv/graphlib": "^2.0.2",
"@antv/layout": "^1.2.14-beta.4",
"@antv/layout-gpu": "^1.1.5",
"@antv/layout-wasm": "^1.4.0",
Expand Down

0 comments on commit ee335ed

Please sign in to comment.