refactor(editor): reduce redundant canvas refresh on init (#10364)

This commit is contained in:
Yifeng Wang
2025-02-22 21:58:13 +08:00
committed by GitHub
parent 04ed2bdab7
commit 963cc2e40e
5 changed files with 43 additions and 25 deletions

View File

@@ -553,6 +553,8 @@ export class EdgelessRootBlockComponent extends BlockComponent<
this.gfx.tool.setTool('default');
}
this.gfx.viewport.elementReady.emit(this.gfxViewportElm);
requestConnectedFrame(() => {
this.requestUpdate();
}, this);