交互插件修改

This commit is contained in:
Yuan 2023-07-03 18:44:45 +08:00
parent a03cbbd370
commit 1f302648b5

View File

@ -32,13 +32,13 @@ export abstract class GraphicEditPlugin<
this.sortableChildren = true; this.sortableChildren = true;
this.graphic.on('transformstart', this.hideAll, this); this.graphic.on('transformstart', this.hideAll, this);
this.graphic.on('transformend', this.showAll, this); this.graphic.on('transformend', this.showAll, this);
this.graphic.on('repaint', this.showAll, this); this.graphic.on('repaint', this.updateEditedPointsPosition, this);
} }
destroy(options?: boolean | IDestroyOptions | undefined): void { destroy(options?: boolean | IDestroyOptions | undefined): void {
this.graphic.off('transformstart', this.hideAll, this); this.graphic.off('transformstart', this.hideAll, this);
this.graphic.off('transformend', this.showAll, this); this.graphic.off('transformend', this.showAll, this);
this.graphic.off('repaint', this.showAll, this); this.graphic.off('repaint', this.updateEditedPointsPosition, this);
super.destroy(options); super.destroy(options);
} }