BlockSuite API Documentation / @blocksuite/store / Slice
Class: Slice
Contents
Constructors
new Slice(data)
new Slice(
data
):Slice
Parameters
• data: SliceData
Returns
Source
packages/store/src/transformer/slice.ts:31
Properties
data
readonly
data:SliceData
Source
packages/store/src/transformer/slice.ts:31
Accessors
blockVersions
get
blockVersions():Record
<string
,number
>
Returns
Record
<string
, number
>
Source
packages/store/src/transformer/slice.ts:37
content
get
content():BlockModel
<object
>[]
Returns
BlockModel
<object
>[]
Source
packages/store/src/transformer/slice.ts:33
pageId
get
pageId():string
Returns
string
Source
packages/store/src/transformer/slice.ts:53
pageVersion
get
pageVersion():number
Returns
number
Source
packages/store/src/transformer/slice.ts:41
workspaceId
get
workspaceId():string
Returns
string
Source
packages/store/src/transformer/slice.ts:49
workspaceVersion
get
workspaceVersion():number
Returns
number
Source
packages/store/src/transformer/slice.ts:45
Methods
fromModels()
static
fromModels(page
,models
):Slice
Parameters
• page: Page
• models: BlockModel
<object
>[]
Returns
Source
packages/store/src/transformer/slice.ts:16
Generated using typedoc-plugin-markdown and TypeDoc