bill před 2 roky
rodič
revize
b6be000d16

+ 1 - 0
src/graphic/Renderer/Draw.js

@@ -596,6 +596,7 @@ export default class Draw {
     if (style.dash) {
       this.context.setLineDash(style.dash);
     }
+    
     this.context.beginPath();
     this.context.moveTo(start.x, start.y);
     this.context.lineTo(end.x, end.y);

+ 1 - 4
src/graphic/enum/UIEvents.js

@@ -11,11 +11,8 @@ const UIEvents = {
   BaseLine: "BaseLine",
   //基准点
   BasePoint: "BasePoint",
+
   // 测量
-  // 测量线
-  MeasureLine: "MeasureLine",
-  // 测量点
-  MeasurePoint: "MeasurePoint",
   // 自由测量
   MeasureFree: "MeasureFree",
   // 直角定位法

+ 2 - 2
src/views/graphic/menus.ts

@@ -75,8 +75,8 @@ export const templateMenusRaw = [
 ]
 
 export const measureMenusRaw = [
-  { key: UIType.MeasureLine, text: "基准线" },
-  { key: UIType.MeasurePoint, text: "基准点" },
+  { key: UIType.BaseLine, text: "基准线" },
+  { key: UIType.BasePoint, text: "基准点" },
   { key: UIType.MeasureFree, text: "自由测量" },
   {
     key: UIType.AngleLocationMode,