xushiting 2 năm trước cách đây
mục cha
commit
9e87ab0ca0
1 tập tin đã thay đổi với 29 bổ sung1 xóa
  1. 29 1
      src/views/draw-file/board/editCAD/Renderer/Draw.js

+ 29 - 1
src/views/draw-file/board/editCAD/Renderer/Draw.js

@@ -962,25 +962,51 @@ export default class Draw {
     drawSign(geometry) {
         if (geometry.geoType == VectorType.Cigaret) {
             this.drawCigaret(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.FirePoint) {
             this.drawFirePoint(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.LeftFootPrint) {
             this.drawLeftFootPrint(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.RightFootPrint) {
             this.drawRightFootPrint(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.LeftShoePrint) {
             this.drawLeftShoePrint(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.RightShoePrint) {
             this.drawRightShoePrint(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.FingerPrint) {
             this.drawFingerPrint(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.DeadBody) {
             this.drawDeadBody(geometry)
+            this.drawTestCircle(geometry)
         } else if (geometry.geoType == VectorType.BloodStain) {
             this.drawBloodStain(geometry)
+            this.drawTestCircle(geometry)
         }
     }
 
+    drawTestCircle(geometry) {
+        // let radius = 0.1 * coordinate.res
+        // const twoPi = Math.PI * 2
+        // const center = coordinate.getScreenXY(geometry.center)
+
+        // this.context.save()
+
+        // this.context.strokeStyle = 'blue'
+        // this.context.fillStyle = 'red'
+
+        // this.context.beginPath()
+        // this.context.arc(center.x, center.y, radius, 0, twoPi, true)
+        // this.context.stroke()
+        // this.context.fill()
+        // this.context.restore()
+    }
+
     drawCigaret(geometry) {
         const selectItem = stateService.getSelectItem()
         const draggingItem = stateService.getDraggingItem()
@@ -988,7 +1014,7 @@ export default class Draw {
 
         this.context.save()
         this.context.strokeStyle = Style.Sign.strokeStyle
-        this.context.fillStyle = Style.Sign.fillStyle
+        this.context.fillStyle = "black";
 
         if (selectItem && selectItem.type == VectorType.Cigaret) {
             if (geometry.vectorId == selectItem.vectorId) {
@@ -1027,6 +1053,7 @@ export default class Draw {
 
         this.context.miterLimit = 4
         this.context.font = "15px ''"
+        
         this.context.beginPath();
         this.context.moveTo(38.6342,4);
         this.context.bezierCurveTo(38.6342,4,41.1545,9.5,39.1546,12.5);
@@ -1082,6 +1109,7 @@ export default class Draw {
         this.context.closePath();
         this.context.fill();
         this.context.stroke();
+
         this.context.restore();
     }