mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-28 08:10:44 +00:00
fix(stage): 修复隐藏标尺后无法显示问题
This commit is contained in:
parent
637a5bb69a
commit
6f2e8d8d74
@ -124,6 +124,7 @@ export default class Rule extends EventEmitter {
|
|||||||
this.hGuides?.off('changeGuides', this.hGuidesChangeGuidesHandler);
|
this.hGuides?.off('changeGuides', this.hGuidesChangeGuidesHandler);
|
||||||
this.vGuides?.off('changeGuides', this.vGuidesChangeGuidesHandler);
|
this.vGuides?.off('changeGuides', this.vGuidesChangeGuidesHandler);
|
||||||
this.containerResizeObserver?.disconnect();
|
this.containerResizeObserver?.disconnect();
|
||||||
|
this.container = undefined;
|
||||||
this.removeAllListeners();
|
this.removeAllListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,7 +138,6 @@ export default class Rule extends EventEmitter {
|
|||||||
|
|
||||||
this.hGuides = undefined;
|
this.hGuides = undefined;
|
||||||
this.vGuides = undefined;
|
this.vGuides = undefined;
|
||||||
this.container = undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private getGuidesStyle = (type: GuidesType) => ({
|
private getGuidesStyle = (type: GuidesType) => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user