소스 검색

比例尺item修改

haojianlong 4 년 전
부모
커밋
eee330f6fb
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      package.json
  2. 2 0
      src/items/EditLineItem.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/cad-engine",
-    "version": "2.0.571",
+    "version": "2.0.572",
     "description": "上格云 CAD图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

+ 2 - 0
src/items/EditLineItem.ts

@@ -211,6 +211,8 @@ export class EditLineItem extends SGraphItem {
             ];
             this.textPos = new SPoint(dis / 2, 0);
             this.calculate();
+        } else {
+            this.lineList = [];
         }
     }