jinx 2 년 전
부모
커밋
22b2bd12a4
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/graphic/Renderer/Draw.js
  2. 3 0
      src/graphic/Service/DataService.js

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

@@ -1022,7 +1022,7 @@ export default class Draw {
     }px Microsoft YaHei`;
     const bound = help.getTextCenter(this.context, vector.value)
 
-    console.log(vector)
+    // console.log(vector)
     const screen = coordinate.getScreenXY(vector.center)
     this.drawTextByInfo(
       // vector.center,

+ 3 - 0
src/graphic/Service/DataService.js

@@ -134,6 +134,9 @@ export class DataService {
 
   deleteLine(lineId) {
     let line = this.getLine(lineId);
+    if(!line){
+      return
+    }
     let start = this.getPoint(line.startId);
     if (start) {
       let startParent = start.getParent();