bill 1 rok temu
rodzic
commit
1a40314bb1

+ 2 - 2
src/view/case/draw/board/editCAD/Geometry/Compass.js

@@ -11,8 +11,8 @@ export default class Compass extends Geometry {
 
         //固定位置
         this.center = {
-            x:800,
-            y:170
+            x:880,
+            y:120
         }
 
         this.radius = 52   //svg的大小

+ 3 - 10
src/view/case/draw/board/editCAD/Renderer/Draw.js

@@ -953,9 +953,10 @@ export default class Draw {
         }
 
         this.context.translate(geometry.center.x,geometry.center.y)
-
-        this.context.translate(17, 30)
+        this.context.translate(16, 36)
         this.context.rotate((geometry.angle)/180 * Math.PI)
+        this.context.translate(-16, -36)
+        
         //this.context.translate(18,26)
         this.context.lineWidth = 1
         this.context.miterLimit=4;
@@ -1035,14 +1036,6 @@ export default class Draw {
         this.context.fill();
         this.context.stroke();
         
-        this.context.translate(-17, -30)
-        this.context.restore();
-
-        this.context.save();
-        this.context.beginPath()
-        this.context.arc(geometry.center.x+17,geometry.center.y+30, 2, 0, Math.PI * 2, true)
-        this.context.stroke()
-        this.context.fill()
         this.context.restore();
     }