jinx 2 lat temu
rodzic
commit
0def2394ca
1 zmienionych plików z 16 dodań i 14 usunięć
  1. 16 14
      src/graphic/Service/UIService.js

+ 16 - 14
src/graphic/Service/UIService.js

@@ -1,15 +1,15 @@
-import Text from "../Geometry/Text.js";
-import { dataService } from "./DataService.js";
-import { mathUtil } from "../Util/MathUtil.js";
-import Settings from "../Settings";
-import { coordinate } from "../Coordinate.js";
-import UIEvents from "../enum/UIEvents.js";
-import VectorCategory from "../enum/VectorCategory.js";
-import Constant from "../Constant.js";
-import VectorStyle from "../enum/VectorStyle.js";
-import VectorWeight from "../enum/VectorWeight.js";
-import RoadTemplate from "../enum/RoadTemplate.js";
-import RoadStructure from "../enum/RoadStructure.js";
+import Text from '../Geometry/Text.js';
+import { dataService } from './DataService.js';
+import { mathUtil } from '../Util/MathUtil.js';
+import Settings from '../Settings';
+import { coordinate } from '../Coordinate.js';
+import UIEvents from '../enum/UIEvents.js';
+import VectorCategory from '../enum/VectorCategory.js';
+import Constant from '../Constant.js';
+import VectorStyle from '../enum/VectorStyle.js';
+import VectorWeight from '../enum/VectorWeight.js';
+import RoadTemplate from '../enum/RoadTemplate.js';
+import RoadStructure from '../enum/RoadStructure.js';
 
 
 export default class UIService {
 export default class UIService {
   constructor() {}
   constructor() {}
@@ -56,7 +56,7 @@ export default class UIService {
   }
   }
 
 
   isBelongCurveRoad(ui) {
   isBelongCurveRoad(ui) {
-    if (ui == "SBend") {
+    if (ui == 'SBend') {
       this.setRoadLeftDrivewayCount(0);
       this.setRoadLeftDrivewayCount(0);
       this.setRoadRightDrivewayCount(0);
       this.setRoadRightDrivewayCount(0);
       return true;
       return true;
@@ -77,9 +77,11 @@ export default class UIService {
     } else if (ui == UIEvents.MeasureLine) {
     } else if (ui == UIEvents.MeasureLine) {
       this.setSelectLineCategory(VectorCategory.Line.MeasureLine);
       this.setSelectLineCategory(VectorCategory.Line.MeasureLine);
       return true;
       return true;
-    } else if (ui == UIEvents.Line || ui == UIEvents.FreeMeasureLine) {
+    } else if (ui == UIEvents.Line) {
       this.setSelectLineCategory(VectorCategory.Line.NormalLine);
       this.setSelectLineCategory(VectorCategory.Line.NormalLine);
       return true;
       return true;
+    } else if (ui == UIEvents.FreeMeasureLine) {
+      this.setSelectLineCategory(VectorCategory.Line.FreeMeasureLine);
     } else if (ui == UIEvents.BaseLine) {
     } else if (ui == UIEvents.BaseLine) {
       this.setSelectLineCategory(VectorCategory.Line.BaseLine);
       this.setSelectLineCategory(VectorCategory.Line.BaseLine);
       return true;
       return true;