Bläddra i källkod

Merge branch 'master' of http://192.168.0.115:3000/bill/traffic-laser

xushiting 2 år sedan
förälder
incheckning
7b7b4e8648
2 ändrade filer med 9 tillägg och 1 borttagningar
  1. 3 0
      src/graphic/Controls/MoveMagnifier.js
  2. 6 1
      src/graphic/Geometry/Geometry.js

+ 3 - 0
src/graphic/Controls/MoveMagnifier.js

@@ -6,6 +6,9 @@ export default class MoveMagnifier {
 
   moveFullMagnifier(position, magnifierId, index) {
     let magnifier = dataService.getMagnifier(magnifierId);
+    //移动放大镜清除图片信息
+    magnifier.setPhotoUrl(null)
+    magnifier.setPhotoImg(null)
     if (index == 0) {
       magnifier.setPosition(position);
     } else {

+ 6 - 1
src/graphic/Geometry/Geometry.js

@@ -110,7 +110,12 @@ export default class Geometry {
   setWeight(weight) {
     this.weight = weight;
   }
-
+  setPhotoUrl(src) {
+    this.photoUrl = src;
+  }
+  setPhotoImg(type) {
+    this.photoImage = type;
+  }
   getType() {
     return this.type;
   }