@mocanvas/editor · interface
interface TldrawEditorWithoutStoreProps extends TldrawEditorBasePropsThe branch where the component builds the store from what the document needs.
Properties · 8
defaultName?: stringName given to the document's first page.
initialData?: EditorStoreSnapshot["store"]Records to open, as a plain serialized map.
migrations?: readonly MigrationSequence[]Further migration sequences to register in the schema.
persistenceKey?: stringPersist the document under this key, in this browser.
Local only — IndexedDB in the page, nothing sent anywhere. Two editors given the same key share a document and stay in step.
records?: Readonly<Record<string, CustomRecordInfo<string>>>The app's own top-level record types, beyond shapes and bindings.
sessionId?: stringWhich *session* the persisted state belongs to. Defaults to the tab.
Session state is the camera, the selection and the current page: two tabs on one board are two viewpoints, and sharing them would drag one person's camera around whenever the other scrolled.
snapshot?: EditorStoreSnapshotA snapshot to open.
store?: undefinedmocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.