BlockSuite API Documentation / @blocksuite/store / Slice
Class: Slice
Constructors
new Slice()
new Slice(
data
):Slice
Parameters
• data: SliceData
Returns
Source
packages/framework/store/src/transformer/slice.ts:35
Properties
data
readonly
data:SliceData
Source
packages/framework/store/src/transformer/slice.ts:35
Accessors
content
get
content():DraftModel
[]
Returns
Source
packages/framework/store/src/transformer/slice.ts:15
docId
get
docId():string
Returns
string
Source
packages/framework/store/src/transformer/slice.ts:31
pageVersion
get
pageVersion():number
Returns
number
Source
packages/framework/store/src/transformer/slice.ts:19
workspaceId
get
workspaceId():string
Returns
string
Source
packages/framework/store/src/transformer/slice.ts:27
workspaceVersion
get
workspaceVersion():number
Returns
number
Source
packages/framework/store/src/transformer/slice.ts:23
Methods
fromModels()
static
fromModels(doc
,models
):Slice
Parameters
• doc: Doc
• models: DraftModel
[]
Returns
Source
packages/framework/store/src/transformer/slice.ts:37