mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
This would allow for easier integration with current test runner, since the two column layout is removed. The `ViewportTurboRender` canvas and its debug UI are only enabled if the extension is added, which won't affect the AFFiNE entry. <img width="945" alt="image" src="https://github.com/user-attachments/assets/dc82daa4-cbed-4eb9-9660-28c3f7d35722" />
23 lines
727 B
TypeScript
23 lines
727 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().init();
|
|
export const editor = new AffineEditorContainer();
|
|
editor.pageSpecs = [...editor.pageSpecs, ViewportTurboRendererExtension];
|
|
editor.edgelessSpecs = [
|
|
...editor.edgelessSpecs,
|
|
ViewportTurboRendererExtension,
|
|
];
|
|
|
|
editor.doc = doc;
|
|
editor.mode = 'edgeless';
|