API > @blocksuite/store > Slice
Class: Slice ​
Constructors ​
constructor ​
new Slice(
data
):Slice
Parameters ​
Parameter | Type |
---|---|
data | SliceData |
Returns ​
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 ​
Parameter | Type |
---|---|
page | Page |
models | BaseBlockModel < object >[] |
Returns ​
Defined In ​
packages/store/src/transformer/slice.ts:16