mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
Further features should be validated using multiple notes. <img width="806" alt="image" src="https://github.com/user-attachments/assets/ad2bf934-bebe-479a-bec0-a0a28001b08d" />
23 lines
651 B
TypeScript
23 lines
651 B
TypeScript
import '../../style.css';
|
|
|
|
import { ViewportTurboRendererExtension } from '@blocksuite/affine-shared/viewport-renderer';
|
|
import { effects as blocksEffects } from '@blocksuite/blocks/effects';
|
|
import { AffineEditorContainer } from '@blocksuite/presets';
|
|
import { effects as presetsEffects } from '@blocksuite/presets/effects';
|
|
|
|
import { createEmptyDoc } from '../../apps/_common/helper';
|
|
|
|
blocksEffects();
|
|
presetsEffects();
|
|
|
|
export const { doc } = createEmptyDoc();
|
|
export const editor = new AffineEditorContainer();
|
|
|
|
editor.edgelessSpecs = [
|
|
...editor.edgelessSpecs,
|
|
ViewportTurboRendererExtension,
|
|
];
|
|
|
|
editor.doc = doc;
|
|
editor.mode = 'edgeless';
|