Skip to content

API > @blocksuite/store > Slice

Class: Slice ​

Constructors ​

constructor ​

new Slice(data): Slice

Parameters ​

ParameterType
dataSliceData

Returns ​

Slice

Defined In ​

packages/store/src/transformer/slice.ts:31

Properties ​

data ​

readonly data: SliceData

Defined In ​

packages/store/src/transformer/slice.ts:31

Accessors ​

blockVersions ​

get blockVersions(): Record< string, number >

Defined In ​

packages/store/src/transformer/slice.ts:37


content ​

get content(): BaseBlockModel< object >[]

Defined In ​

packages/store/src/transformer/slice.ts:33


pageId ​

get pageId(): string

Defined In ​

packages/store/src/transformer/slice.ts:53


pageVersion ​

get pageVersion(): number

Defined In ​

packages/store/src/transformer/slice.ts:41


workspaceId ​

get workspaceId(): string

Defined In ​

packages/store/src/transformer/slice.ts:49


workspaceVersion ​

get workspaceVersion(): number

Defined In ​

packages/store/src/transformer/slice.ts:45

Methods ​

fromModels ​

static fromModels(page, models): Slice

Parameters ​

ParameterType
pagePage
modelsBaseBlockModel< object >[]

Returns ​

Slice

Defined In ​

packages/store/src/transformer/slice.ts:16