Jelajahi Sumber

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

xushiting 2 tahun lalu
induk
melakukan
e974c7b7c4

File diff ditekan karena terlalu besar
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


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

@@ -10,7 +10,7 @@ export default class Text extends Geometry {
   constructor(center, vectorId) {
     super();
     this.center = center;
-    this.value = "固定点";
+    this.value = "文本";
     this.angle = 0;
     this.color = Style.Text.fillStyle;
     this.fontSize = Style.Text.fontSize;

+ 3 - 2
src/graphic/Renderer/Draw.js

@@ -1015,7 +1015,8 @@ export default class Draw {
     this.drawTextByInfo(
       // vector.center,
       coordinate.getXYFromScreenNotRatio({
-        y: screen.y + (bound.height + Style.Point.radius),
+        // y: screen.y + (bound.height + Style.Point.radius),
+        y: screen.y + (bound.height /2),
         x: screen.x - (bound.width / 2)
       }),
       vector.value,
@@ -1030,7 +1031,7 @@ export default class Draw {
     pt.y += (text.actualBoundingBoxAscent + text.actualBoundingBoxDescent) / 2;
 
     this.context.restore();
-    this.drawPoint({...vector.center, color: vector.color}, true)
+    // this.drawPoint({...vector.center, color: vector.color}, true)
   }
 
   drawSVG(vector) {