fix: update plugins g-canvas version

This commit is contained in:
baizn 2020-12-29 20:21:55 +08:00 committed by Moyee
parent a951ac0c28
commit 18ee145a6e
4 changed files with 5 additions and 6 deletions

View File

@ -66,7 +66,7 @@
]
},
"dependencies": {
"@antv/g6-pc": "*"
"@antv/g6-pc": "^0.0.1"
},
"devDependencies": {
"@babel/core": "^7.7.7",

View File

@ -9,12 +9,12 @@
"build": "npm run clean && father build",
"clean": "rimraf es esm lib dist",
"test": "jest",
"test-live": "DEBUG_MODE=1 jest --watch ./tests/unit/fisheye-spec.ts "
"test-live": "DEBUG_MODE=1 jest --watch ./tests/unit/minimap-spec.ts "
},
"dependencies": {
"@antv/dom-util": "^2.0.2",
"@antv/g-base": "0.5.1",
"@antv/g-canvas": "^0.4.15",
"@antv/g-base": "^0.5.1",
"@antv/g-canvas": "^0.5.2",
"@antv/g-svg": "^0.5.2",
"@antv/g6-core": "^0.0.1",
"@antv/matrix-util": "^2.0.7",

View File

@ -598,7 +598,6 @@ export default class MiniMap extends Base {
['s', ratio, ratio], // 缩放到正好撑着 minimap
['t', dx, dy], // 移动到画布中心
]);
group.setMatrix(matrix);
// 更新minimap视口

View File

@ -173,7 +173,7 @@ describe('minimap', () => {
const matrix = graph.get('group').getMatrix();
expect(matrix[0]).toEqual(2);
expect(matrix[4]).toEqual(2);
graph.destroy();
// graph.destroy();
done();
}, 100);
}, 100);