BlockSuite API Documentation / @blocksuite/store / Slice
Class: Slice
Constructors
new Slice(data)
new Slice(
data
):Slice
Parameters
• data: SliceData
Returns
Source
packages/framework/store/src/transformer/slice.ts:29
Properties
data
readonly
data:SliceData
Source
packages/framework/store/src/transformer/slice.ts:29
Accessors
content
get
content():BlockModel
<object
>[]
Returns
BlockModel
<object
>[]
Source
packages/framework/store/src/transformer/slice.ts:31
pageId
get
pageId():string
Returns
string
Source
packages/framework/store/src/transformer/slice.ts:47
pageVersion
get
pageVersion():number
Returns
number
Source
packages/framework/store/src/transformer/slice.ts:35
workspaceId
get
workspaceId():string
Returns
string
Source
packages/framework/store/src/transformer/slice.ts:43
workspaceVersion
get
workspaceVersion():number
Returns
number
Source
packages/framework/store/src/transformer/slice.ts:39
Methods
fromModels()
static
fromModels(page
,models
):Slice
Parameters
• page: Page
• models: BlockModel
<object
>[]
Returns
Source
packages/framework/store/src/transformer/slice.ts:15
Generated using TypeDoc and typedoc-plugin-markdown.