Tldraw/vscode/editor/src/utils/defaultDocument.ts

27 wiersze
462 B
TypeScript

import { TLDrawDocument, TLDrawState } from '@tldraw/tldraw'
export const defaultDocument: TLDrawDocument = {
id: 'doc',
name: 'New Document',
version: TLDrawState.version,
pages: {
page: {
id: 'page',
name: 'Page 1',
childIndex: 1,
shapes: {},
bindings: {},
},
},
pageStates: {
page: {
id: 'page',
selectedIds: [],
camera: {
point: [0, 0],
zoom: 1,
},
},
},
}