chore(editor): rename std.doc to std.store (#9596)

This commit is contained in:
Saul-Mirone
2025-01-09 04:16:28 +00:00
parent 58ce86533e
commit d21ef47ae8
89 changed files with 359 additions and 348 deletions

View File

@@ -317,7 +317,9 @@ export class EdgelessMindmapMenu extends EdgelessToolbarToolMixin(
</div>
`;
})}
${this.std.doc.get(FeatureFlagService).getFlag('enable_mind_map_import')
${this.std.store
.get(FeatureFlagService)
.getFlag('enable_mind_map_import')
? this._importMindMapEntry()
: nothing}
</div>

View File

@@ -29,7 +29,7 @@ export function addText(gfx: GfxController, event: PointerEventState) {
});
gfx.doc.captureSync();
const textElement = gfx.getElementById(id) as TextElementModel;
const edgelessView = gfx.std.view.getBlock(gfx.std.doc.root!.id);
const edgelessView = gfx.std.view.getBlock(gfx.std.store.root!.id);
mountTextElementEditor(
textElement,
edgelessView as EdgelessRootBlockComponent