chore: update algorithm package to solve high cpu usage problem temporally;

This commit is contained in:
Yanyan-Wang 2021-03-29 16:49:03 +08:00 committed by Yanyan Wang
parent 01bdbe9db2
commit a6d14add79
6 changed files with 6 additions and 4 deletions

View File

@ -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",

View File

@ -7,6 +7,7 @@ module.exports = Object.assign(
watchOptions: {
aggregateTimeout: 300,
poll: 1000,
ignored: /node_modules/,
},
},
webpackConfig,

View File

@ -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",

View File

@ -7,6 +7,7 @@ module.exports = Object.assign(
watchOptions: {
aggregateTimeout: 300,
poll: 1000,
ignored: /node_modules/
},
},
webpackConfig,

View File

@ -13,7 +13,7 @@ const graph = new G6.Graph({
width: 1000,
height: 600,
layout: {
type: 'random',
type: 'forceAtlas2',
width: 300,
height: 300,
},

View File

@ -13,7 +13,7 @@ const graph = new G6.Graph({
width: 1000,
height: 600,
layout: {
type: 'random',
type: 'forceAtlas2',
width: 300,
height: 300,
},