Skip to main content

Interface: DocumentOf<T>

Defined in: src/lib/document/schema.ts:98

A document with its images as T

Extends​

Extended by​

Type Parameters​

T​

T

Properties​

activeLayer​

activeLayer: string

Defined in: src/lib/document/schema.ts:104

ID of the selected layer


author​

author: AssetAuthorDetails[]

Defined in: src/lib/document/schema.ts:60

Who made it: whoever started it, then everyone who saved it since

Inherited from​

DocumentInfo.author


dateCreated​

dateCreated: string

Defined in: src/lib/document/schema.ts:62

When it was started (ISO 8601 date and time)

Inherited from​

DocumentInfo.dateCreated


dateOpened​

dateOpened: string

Defined in: src/lib/document/schema.ts:64

When it was last opened (ISO 8601 date and time); opening it doesn't count as changing it

Inherited from​

DocumentInfo.dateOpened


external​

external: DocumentSheet<T>[]

Defined in: src/lib/document/schema.ts:106

Drawings from elsewhere, top first


height​

height: number

Defined in: src/lib/document/schema.ts:100


id​

id: string

Defined in: src/lib/document/schema.ts:57

A UUID

Inherited from​

DocumentInfo.id


layers​

layers: DocumentLayer<T>[]

Defined in: src/lib/document/schema.ts:102

The user's layers, top first


name​

name: string

Defined in: src/lib/document/schema.ts:58

Inherited from​

DocumentInfo.name


thumbnail?​

optional thumbnail?: DocumentThumbnail<T>

Defined in: src/lib/document/schema.ts:107


updatedAt?​

optional updatedAt?: string

Defined in: src/lib/document/schema.ts:69

When it was last changed (ISO 8601 date and time): its layers, size or details. Documents from before 1.1.0 have none (the canvas uses dateCreated for them).

Inherited from​

DocumentInfo.updatedAt


width​

width: number

Defined in: src/lib/document/schema.ts:99