refactor(editor): remove global gfx tool types (#12119)

This commit is contained in:
Saul-Mirone
2025-05-04 13:53:27 +00:00
parent 30a2e5b4fb
commit 676c5d8de6
20 changed files with 2 additions and 219 deletions
+1 -7
View File
@@ -10,7 +10,7 @@ import { BaseTool, type GfxController } from '@blocksuite/std/gfx';
import * as Y from 'yjs';
import { insertEdgelessTextCommand } from './commands/insert-edgeless-text';
import { mountTextElementEditor } from './mount-text-editor';
import { mountTextElementEditor } from './edgeless-text-editor';
function addText(gfx: GfxController, event: PointerEventState) {
const [x, y] = gfx.viewport.toModelCoord(event.x, event.y);
@@ -64,9 +64,3 @@ export class TextTool extends BaseTool {
});
}
}
declare module '@blocksuite/std/gfx' {
interface GfxToolsMap {
text: TextTool;
}
}