fix(stage): 修复隐藏标尺后无法显示问题

This commit is contained in:
Linzsong 2026-03-26 09:58:23 +08:00 committed by roymondchen
parent 637a5bb69a
commit 6f2e8d8d74

View File

@ -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) => ({