mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
30
blocksuite/affine/block-surface/src/effects.ts
Normal file
30
blocksuite/affine/block-surface/src/effects.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import type {
|
||||
autoArrangeElementsCommand,
|
||||
autoResizeElementsCommand,
|
||||
} from './commands/auto-align.js';
|
||||
import type { reassociateConnectorsCommand } from './commands/reassociate-connectors.js';
|
||||
import { SurfaceBlockComponent } from './surface-block.js';
|
||||
import { SurfaceBlockVoidComponent } from './surface-block-void.js';
|
||||
import type { SurfaceBlockModel } from './surface-model.js';
|
||||
import type { SurfaceBlockService } from './surface-service.js';
|
||||
|
||||
export function effects() {
|
||||
customElements.define('affine-surface-void', SurfaceBlockVoidComponent);
|
||||
customElements.define('affine-surface', SurfaceBlockComponent);
|
||||
}
|
||||
|
||||
declare global {
|
||||
namespace BlockSuite {
|
||||
interface BlockServices {
|
||||
'affine:surface': SurfaceBlockService;
|
||||
}
|
||||
interface BlockModels {
|
||||
'affine:surface': SurfaceBlockModel;
|
||||
}
|
||||
interface Commands {
|
||||
reassociateConnectors: typeof reassociateConnectorsCommand;
|
||||
autoArrangeElements: typeof autoArrangeElementsCommand;
|
||||
autoResizeElements: typeof autoResizeElementsCommand;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user