mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(editor): remove global gfx tool types (#12119)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { splitElements } from '@blocksuite/affine/blocks/root';
|
||||
import { DefaultTool } from '@blocksuite/affine/blocks/surface';
|
||||
import type * as PointerEffect from '@blocksuite/affine/gfx/pointer';
|
||||
import {
|
||||
CodeBlockModel,
|
||||
EdgelessTextBlockModel,
|
||||
@@ -50,8 +49,6 @@ import {
|
||||
getToolbar,
|
||||
} from './edgeless-response';
|
||||
|
||||
declare type _GLOBAL_ = typeof PointerEffect;
|
||||
|
||||
async function getContentFromEmbedSyncedDocModel(
|
||||
host: EditorHost,
|
||||
models: EmbedSyncedDocModel[]
|
||||
|
||||
@@ -172,9 +172,3 @@ export class CopilotTool extends BaseTool {
|
||||
this.draggingAreaUpdated.next(true);
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@blocksuite/std/gfx' {
|
||||
interface GfxToolsMap {
|
||||
copilot: CopilotTool;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user