|
@@ -352,7 +352,19 @@ export default class Line extends Base {
|
|
|
document.removeEventListener('keydown', this.onKeydown)
|
|
|
} else {
|
|
|
if (this.layer.selectedElementName !== this.annotation.name) {
|
|
|
- this.layer.selectedElementName = this.annotation.name
|
|
|
+ const annotation = this.annotation
|
|
|
+ this.layer.selectedElementName = annotation.name
|
|
|
+
|
|
|
+ const annotationData = {
|
|
|
+ ...annotation
|
|
|
+ }
|
|
|
+ delete annotationData.annotPtr
|
|
|
+ delete annotationData.pagePtr
|
|
|
+ delete annotationData.operate
|
|
|
+ delete annotationData.targetPage
|
|
|
+ delete annotationData.arrow
|
|
|
+
|
|
|
+ this.eventBus.dispatch('annotationSelected', annotationData)
|
|
|
}
|
|
|
this.container.append(this.outerLineContainer)
|
|
|
this.outerLine.addEventListener('mousedown', this.onMousedown)
|