Browse Source

添加调试

bill 4 years ago
parent
commit
a0620b14ed
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/CAD/core/core/element.ts

+ 5 - 0
src/CAD/core/core/element.ts

@@ -144,6 +144,11 @@ class _CADElement<T = {}> {
   }
   click(ev: SVGElementEventMap['click']) {
     this.changeSelect(true)
+
+    this.renderer.processing.attrs.forEach(attr => {
+      let obj = this.renderer.processing[attr].find(({ele}) => ele === this)
+      obj && console.log(obj)
+    })
     ev.stopPropagation()
   }