Merge branch 'master' of https://git.qcloud.com/joylink/jl-nclient
# Conflicts: # src/jmap/transformHandle.js
This commit is contained in:
commit
fa02c97851
@ -16,7 +16,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "0.18.0",
|
"axios": "0.18.0",
|
||||||
"echarts": "^4.2.1",
|
|
||||||
"element-ui": "2.7.2",
|
"element-ui": "2.7.2",
|
||||||
"js-cookie": "2.2.0",
|
"js-cookie": "2.2.0",
|
||||||
"js-md5": "^0.7.3",
|
"js-md5": "^0.7.3",
|
||||||
@ -32,7 +31,8 @@
|
|||||||
"vue-router": "3.0.6",
|
"vue-router": "3.0.6",
|
||||||
"vuedraggable": "^2.20.0",
|
"vuedraggable": "^2.20.0",
|
||||||
"vuex": "3.1.0",
|
"vuex": "3.1.0",
|
||||||
"xlsx": "^0.14.2"
|
"xlsx": "^0.14.2",
|
||||||
|
"zrender": "^4.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.0.0",
|
"@babel/core": "7.0.0",
|
||||||
|
@ -21,13 +21,13 @@ function createBoundingRect(view) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class TransformHandle {
|
class TransformHandle {
|
||||||
constructor(painter) {
|
constructor(painter, zr) {
|
||||||
this.$painter = painter;
|
this.$painter = painter;
|
||||||
|
this.$zr = zr;
|
||||||
|
|
||||||
this.parentLevel = this.$painter.getParentLevel();
|
this.parentLevel = this.$painter.getParentLevel();
|
||||||
|
|
||||||
this.rect = { x: 0, y: 0, width: 0, height: 0 };
|
this.rect = { x: 0, y: 0, width: this.$zr.getWidth(), height: this.$zr.getHeight() };
|
||||||
|
|
||||||
this.transform = createTransform({ scaleRate: 1, offsetX: 0, offsetY: 0 });
|
this.transform = createTransform({ scaleRate: 1, offsetX: 0, offsetY: 0 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user