Interface ExportedDataState

Root data structure for the stored data state

interface ExportedDataState {
    blockCollections: readonly DucBlockCollection[];
    blockInstances: readonly DucBlockInstance[];
    blocks: readonly DucBlock[];
    charter: DucCharter;
    dictionary: undefined | Dictionary;
    elements: readonly DucElement[];
    files: undefined | DucExternalFiles;
    filesData: undefined | ExternalFilesData;
    globalState: DucGlobalState;
    groups: readonly DucGroup[];
    id: string;
    issues: DucIssue[];
    layers: readonly DucLayer[];
    localState: DucLocalState;
    regions: readonly DucRegion[];
    source: string;
    thumbnail: undefined | Uint8Array<ArrayBufferLike>;
    type: string;
    version: string;
    versionGraph: undefined | VersionGraph;
}

Properties

blockCollections: readonly DucBlockCollection[]
blockInstances: readonly DucBlockInstance[]
blocks: readonly DucBlock[]
charter: DucCharter
dictionary: undefined | Dictionary
elements: readonly DucElement[]
files: undefined | DucExternalFiles
filesData: undefined | ExternalFilesData

Revision data blobs keyed by revision id. Separated from metadata for lazy loading.

globalState: DucGlobalState

Project-wide settings that are saved with the document and shared by all users

groups: readonly DucGroup[]
id: string

Actual file id

issues: DucIssue[]
layers: readonly DucLayer[]
localState: DucLocalState

The user's current session state for a specific project

regions: readonly DucRegion[]
source: string
thumbnail: undefined | Uint8Array<ArrayBufferLike>
type: string
version: string
versionGraph: undefined | VersionGraph

In case it is needed to embed the version control into the file format