refactor(editor): add mock notes creator (#10109)

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" />
This commit is contained in:
doodlewind
2025-02-12 05:23:19 +00:00
parent 94811d5e3b
commit 0cd7868b3d
3 changed files with 48 additions and 23 deletions

View File

@@ -10,9 +10,9 @@ import { createEmptyDoc } from '../../apps/_common/helper';
blocksEffects();
presetsEffects();
export const doc = createEmptyDoc().init();
export const { doc } = createEmptyDoc();
export const editor = new AffineEditorContainer();
editor.pageSpecs = [...editor.pageSpecs, ViewportTurboRendererExtension];
editor.edgelessSpecs = [
...editor.edgelessSpecs,
ViewportTurboRendererExtension,