mirror of
https://gitee.com/antv/g6.git
synced 2024-11-29 18:28:19 +08:00
fix: update plugins g-canvas version
This commit is contained in:
parent
a951ac0c28
commit
18ee145a6e
@ -66,7 +66,7 @@
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@antv/g6-pc": "*"
|
||||
"@antv/g6-pc": "^0.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.7.7",
|
||||
|
@ -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",
|
||||
|
@ -598,7 +598,6 @@ export default class MiniMap extends Base {
|
||||
['s', ratio, ratio], // 缩放到正好撑着 minimap
|
||||
['t', dx, dy], // 移动到画布中心
|
||||
]);
|
||||
|
||||
group.setMatrix(matrix);
|
||||
|
||||
// 更新minimap视口
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user