refactor(editor): remove gfx tool global type (#12116)

Closes: BS-2650
This commit is contained in:
Saul-Mirone
2025-05-04 13:53:26 +00:00
parent f3b5c36cf7
commit 30a2e5b4fb
95 changed files with 664 additions and 521 deletions

View File

@@ -1,4 +1,7 @@
import type { NavigatorMode } from '@blocksuite/affine-block-frame';
import {
type NavigatorMode,
PresentTool,
} from '@blocksuite/affine-block-frame';
import { EdgelessLegacySlotIdentifier } from '@blocksuite/affine-block-surface';
import {
DocModeProvider,
@@ -124,8 +127,7 @@ export class FramePanelHeader extends WithDisposable(LitElement) {
}
setTimeout(() => {
this._gfx.tool.setTool({
type: 'frameNavigator',
this._gfx.tool.setTool(PresentTool, {
mode: this._navigatorMode,
});
}, 100);