Table of contents
interface TLStoreBaseOptions {}

Properties

assets

How should this store upload & resolve assets?

assets?: TLAssetStore

defaultName

The default name for the store.

defaultName?: string

initialData

The initial data for the store.

initialData?: SerializedStore<TLRecord>

snapshot

A snapshot of initial data to migrate and load into the store.

snapshot?: Partial<TLEditorSnapshot> | TLStoreSnapshot

Methods

onMount

Called when the store is connected to an Editor.

Parameters
NameDescription

editor

Editor
Returns
(() => void) | void

TLStateNodeConstructorTLSvgOptions