feat(editor): text gfx extension (#11951)

Closes: BS-3213
This commit is contained in:
Saul-Mirone
2025-04-24 03:21:54 +00:00
parent 9d90899344
commit 2200bd7b70
18 changed files with 81 additions and 53 deletions

View File

@@ -14,7 +14,14 @@ export class GroupElementView extends GfxElementModelView<GroupElementModel> {
private _initDblClickToEdit(): void {
this.on('dblclick', () => {
const edgeless = this.std.view.getBlock(this.std.store.root!.id);
const rootId = this.std.store.root?.id;
if (!rootId) {
console.error(
'GroupElementView: rootId is not found when dblclick to edit'
);
return;
}
const edgeless = this.std.view.getBlock(rootId);
if (edgeless && !this.model.isLocked()) {
mountGroupTitleEditor(this.model, edgeless);