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

This commit is contained in:
Linzsong 2026-03-25 16:01:16 +08:00
parent c1a4c75ba8
commit b9480b7e31

View File

@ -124,6 +124,7 @@ export default class Rule extends EventEmitter {
this.hGuides?.off('changeGuides', this.hGuidesChangeGuidesHandler);
this.vGuides?.off('changeGuides', this.vGuidesChangeGuidesHandler);
this.containerResizeObserver?.disconnect();
this.container = undefined;
this.removeAllListeners();
}
@ -137,7 +138,6 @@ export default class Rule extends EventEmitter {
this.hGuides = undefined;
this.vGuides = undefined;
this.container = undefined;
}
private getGuidesStyle = (type: GuidesType) => ({