jinx %!s(int64=2) %!d(string=hai) anos
pai
achega
372a28c701

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 0 - 1
src/graphic/Controls/UIControl.js

@@ -146,7 +146,6 @@ export default class UIControl {
       } else if (VectorWeight[selectUI]) {
         key = 'setWeight';
       }
-      console.log(key);
 
       if (focusItem.type == VectorType.Line) {
         let Line = dataService.getLine(focusItem.vectorId);

+ 3 - 3
src/graphic/Geometry/CurveRoad.js

@@ -12,9 +12,9 @@ export default class CurveRoad extends Road {
     this.leftDrivewayCount = Settings.curveRoadLeftDrivewayCount; //左边的车道个数
     this.rightDrivewayCount = Settings.curveRoadRightDrivewayCount; //右边的车道个数
     this.leftWidth =
-      Settings.curveRoadLeftDrivewayCount * Settings.singleLaneWidth;
+      (Settings.curveRoadLeftDrivewayCount * Settings.singleLaneWidth)* window.coordinate.ratio;
     this.rightWidth =
-      Settings.curveRoadRightDrivewayCount * Settings.singleLaneWidth;
+      (Settings.curveRoadRightDrivewayCount * Settings.singleLaneWidth)* window.coordinate.ratio;
     this.midDivide = {
       leftMidDivide: [],
       leftMidDivideCurves: [],
@@ -25,7 +25,7 @@ export default class CurveRoad extends Road {
     this.curves = [];
     this.singleCurveRoadDrivewayCount = Settings.singleCurveRoadDrivewayCount;
     this.singleCurveRoadWidth =
-      Settings.singleCurveRoadDrivewayCount * Settings.singleLaneWidth;
+      Settings.singleCurveRoadDrivewayCount * Settings.singleLaneWidth* window.coordinate.ratio;
     this.geoType = VectorType.CurveRoad;
     this.setId(vectorId);
   }

+ 8 - 3
src/graphic/Geometry/Road.js

@@ -3,6 +3,8 @@ import Geometry from "./Geometry.js";
 import Settings from "../Settings";
 import Constant from "../Constant";
 
+import {coordinate} from '../Coordinate.js'
+
 export default class Road extends Geometry {
   constructor(startId, endId, vectorId) {
     super();
@@ -24,14 +26,17 @@ export default class Road extends Geometry {
     this.leftDrivewayCount = Settings.roadLeftDrivewayCount; //左边的车道个数
     this.rightDrivewayCount = Settings.roadRightDrivewayCount; //右边的车道个数
     this.geoType = VectorType.Road;
-    this.leftWidth = Settings.roadLeftDrivewayCount * Settings.singleLaneWidth;
+
+    
+    this.leftWidth = (Settings.roadLeftDrivewayCount * Settings.singleLaneWidth) * window.coordinate.ratio;
     this.rightWidth =
-      Settings.roadRightDrivewayCount * Settings.singleLaneWidth;
+      Settings.roadRightDrivewayCount * Settings.singleLaneWidth* window.coordinate.ratio;
     this.singleRoadDrivewayCount = Settings.singleRoadDrivewayCount;
     this.singleRoadWidth =
-      Settings.singleRoadDrivewayCount * Settings.singleLaneWidth;
+      Settings.singleRoadDrivewayCount * Settings.singleLaneWidth* window.coordinate.ratio;
     this.way = Settings.wayType;
     this.setId(vectorId);
+    
   }
 
   setWidth(value, dir) {

+ 3 - 3
src/graphic/Service/ElementService.js

@@ -179,15 +179,15 @@ export class ElementService {
     if (!mathUtil.equalPoint(point1, point2)) {
       let edgePoints = null;
       if (this.newRoad.way == Constant.oneWay) {
-        this.newRoad.singleRoadWidth = Settings.singleRoadWidth;
+        this.newRoad.singleRoadWidth = Settings.singleRoadWidth* window.coordinate.ratio;
         edgePoints = mathUtil.RectangleVertex(
           point1,
           point2,
           this.newRoad.singleRoadWidth
         );
       } else if (this.newRoad.way == Constant.twoWay) {
-        this.newRoad.leftWidth = Settings.leftRoadWidth;
-        this.newRoad.rightWidth = Settings.rightRoadWidth;
+        this.newRoad.leftWidth = Settings.leftRoadWidth* window.coordinate.ratio;
+        this.newRoad.rightWidth = Settings.rightRoadWidth* window.coordinate.ratio;
         edgePoints = mathUtil.RectangleVertex(
           point1,
           point2,

+ 1 - 1
src/main.ts

@@ -1,7 +1,7 @@
 import VConsole from 'vconsole';
 if (import.meta.env.MODE !== "production") {
   if (!os.isPc) {
-    new VConsole();
+    // new VConsole();
   }
 }