Skip to content

Commit

Permalink
chore: update algorithm package to solve high cpu usage problem tempo…
Browse files Browse the repository at this point in the history
…rally;
  • Loading branch information
Yanyan-Wang committed Mar 29, 2021
1 parent 01bdbe9 commit a6d14ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
]
},
"dependencies": {
"@antv/algorithm": "^0.1.5",
"@antv/algorithm": "0.1.8-beta.5",
"@antv/dom-util": "^2.0.1",
"@antv/event-emitter": "~0.1.0",
"@antv/g-base": "^0.5.1",
Expand Down
1 change: 1 addition & 0 deletions packages/g6/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = Object.assign(
watchOptions: {
aggregateTimeout: 300,
poll: 1000,
ignored: /node_modules/,
},
},
webpackConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/pc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@antv/g6-core": "*",
"@antv/g6-plugin": "*",
"@antv/g6-element": "*",
"@antv/algorithm": "^0.1.5",
"@antv/algorithm": "0.1.8-beta.5",
"@antv/hierarchy": "^0.6.7",
"@antv/layout": "^0.1.12",
"@antv/matrix-util": "^3.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/pc/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = Object.assign(
watchOptions: {
aggregateTimeout: 300,
poll: 1000,
ignored: /node_modules/
},
},
webpackConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/site/docs/api/graphLayout/forceAtlas2.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const graph = new G6.Graph({
width: 1000,
height: 600,
layout: {
type: 'random',
type: 'forceAtlas2',
width: 300,
height: 300,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/site/docs/api/graphLayout/forceAtlas2.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const graph = new G6.Graph({
width: 1000,
height: 600,
layout: {
type: 'random',
type: 'forceAtlas2',
width: 300,
height: 300,
},
Expand Down

0 comments on commit a6d14ad

Please sign in to comment.