Skip to content

BlockSuite API Documentation / @blocksuite/store / Slice

Class: Slice

Constructors

new Slice()

new Slice(data): Slice

Parameters

data

SliceData

Returns

Slice

Defined in

packages/framework/store/src/transformer/slice.ts:35

Properties

data

readonly data: SliceData

Defined in

packages/framework/store/src/transformer/slice.ts:35

Accessors

content

Get Signature

get content(): DraftModel[]

Returns

DraftModel[]

Defined in

packages/framework/store/src/transformer/slice.ts:15


docId

Get Signature

get docId(): string

Returns

string

Defined in

packages/framework/store/src/transformer/slice.ts:19


pageVersion

Get Signature

get pageVersion(): number

Returns

number

Defined in

packages/framework/store/src/transformer/slice.ts:23


workspaceId

Get Signature

get workspaceId(): string

Returns

string

Defined in

packages/framework/store/src/transformer/slice.ts:27


workspaceVersion

Get Signature

get workspaceVersion(): number

Returns

number

Defined in

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

Methods

fromModels()

static fromModels(doc, models): Slice

Parameters

doc

Doc

models

DraftModel[]

Returns

Slice

Defined in

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