交互插件修改
This commit is contained in:
parent
a03cbbd370
commit
1f302648b5
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user