Browse Source

修正问题

bill 2 năm trước cách đây
mục cha
commit
bb70e94c3b

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 4 - 4
src/graphic/CanvasStyle/ImageLabels/SVGIcons.js

@@ -519,7 +519,7 @@ const SVGIcons = {
     }
 
   }, "guache_pingmian.svg": {
-    text: "客车",
+    text: "挂车平面",
     draw: function (ctx) {
       ctx.save();
       //// ctx.strokeStyle = "rgba(0,0,0,0)";
@@ -701,7 +701,7 @@ const SVGIcons = {
     }
 
   }, "huoche_s1.svg": {
-    text: "客车",
+    text: "货车侧面",
     draw: function (ctx) {
       ctx.save();
       //// ctx.strokeStyle = "rgba(0,0,0,0)";
@@ -760,7 +760,7 @@ const SVGIcons = {
     }
 
   }, "huoche_s2.svg": {
-    text: "客车",
+    text: "货车侧面",
     draw: function (ctx) {
       ctx.save();
       //// ctx.strokeStyle = "rgba(0,0,0,0)";
@@ -927,7 +927,7 @@ const SVGIcons = {
     }
 
   }, "jiaoche_s.svg": {
-    text: "车侧面",
+    text: "轿车侧面",
     draw: function (ctx) {
       ctx.save();
       //// ctx.strokeStyle = "rgba(0,0,0,0)";

+ 3 - 3
src/graphic/Controls/UIControl.js

@@ -537,9 +537,9 @@ export default class UIControl {
   setDefaultSetting(setting) {
     console.log('获得设置', setting);
 
-    uiService.setRoadMidDivideWidth(setting.roadQuarantineWidth / coordinate.res);
-    uiService.setCurveRoadMidDivideWidth(setting.roadQuarantineWidth / coordinate.res);
-    uiService.setSingleLaneWidth(setting.singleRoadWidth / coordinate.res);
+    uiService.setRoadMidDivideWidth(setting.roadQuarantineWidth / coordinate.res * coordinate.ratio);
+    uiService.setCurveRoadMidDivideWidth(setting.roadQuarantineWidth / coordinate.res * coordinate.ratio);
+    uiService.setSingleLaneWidth(setting.singleRoadWidth / coordinate.res * coordinate.ratio);
     // uiService.setLineWidth(setting.lineWidth / 1000 / coordinate.res);
     uiService.setLineWidth(setting.lineWidth);
     this.layer.renderer.autoRedraw();

+ 1 - 0
src/views/graphic/imageLabel.vue

@@ -25,6 +25,7 @@
         >
           <ui-icon :type="menu.icon" class="icon" />
           <p>{{ menu.text }}</p>
+          {{menu.icon}}
         </div>
       </div>
     </div>