jinx 2 년 전
부모
커밋
b514fab27c
3개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 1
      server/test/a0k4xu045_202305311600080410/attach/sceneStore
  2. 2 2
      src/graphic/Constant.js
  3. 4 4
      src/graphic/Geometry/Circle.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 2 - 2
src/graphic/Constant.js

@@ -34,8 +34,8 @@ const Constant = {
   maxRoadSideWidth: 800,
   oneWay: "oneWay", //one表示单向,two表示双向
   twoWay: "twoWay", //one表示单向,two表示双向
-  defaultSingleLaneWidth: 30, //单个车道的宽度
-  defaultMidDivideWidth: 5, //隔离带的宽度
+  defaultSingleLaneWidth: 35, //单个车道的宽度
+  defaultMidDivideWidth: 2, //隔离带的宽度
   angleLocationMode: "AngleLocationMode", //直角定位
   allLocationMode: "AllLocationMode", //综合定位
   normalLocationMode: "NormalLocationMode", //自由测量

+ 4 - 4
src/graphic/Geometry/Circle.js

@@ -25,18 +25,18 @@ export default class Circle extends Geometry {
   initPoints() {
     this.points[0] = {
       x: this.center.x,
-      y: this.center.y + this.radius,
+      y: this.center.y + this.radiusY,
     };
     this.points[1] = {
-      x: this.center.x + this.radius,
+      x: this.center.x + this.radiusX,
       y: this.center.y,
     };
     this.points[2] = {
       x: this.center.x,
-      y: this.center.y - this.radius,
+      y: this.center.y - this.radiusY,
     };
     this.points[3] = {
-      x: this.center.x - this.radius,
+      x: this.center.x - this.radiusX,
       y: this.center.y,
     };
   }