Skip to content

BlockSuite API Documentation / @blocksuite/block-std / SpecStore

Class: SpecStore ​

Contents ​

Constructors ​

new SpecStore(std) ​

new SpecStore(std): SpecStore

Parameters ​

• std: BlockStdScope

Returns ​

SpecStore

Source ​

block-std/src/spec/spec-store.ts:8

Properties ​

_services ​

private _services: Map<string, BlockService<BaseBlockModel<object>>>

Source ​

block-std/src/spec/spec-store.ts:6


_specs ​

private _specs: Map<string, BlockSpec<string>>

Source ​

block-std/src/spec/spec-store.ts:5


std ​

std: BlockStdScope

Source ​

block-std/src/spec/spec-store.ts:8

Methods ​

_buildSpecMap() ​

private _buildSpecMap(specs): Map<string, BlockSpec<string>>

Parameters ​

• specs: BlockSpec<string>[]

Returns ​

Map<string, BlockSpec<string>>

Source ​

block-std/src/spec/spec-store.ts:75


_diffServices() ​

private _diffServices(oldSpecs, newSpecs): void

Parameters ​

• oldSpecs: Map<string, BlockSpec<string>>

• newSpecs: Map<string, BlockSpec<string>>

Returns ​

void

Source ​

block-std/src/spec/spec-store.ts:38


applySpecs() ​

applySpecs(specs): void

Parameters ​

• specs: BlockSpec<string>[]

Returns ​

void

Source ​

block-std/src/spec/spec-store.ts:18


dispose() ​

dispose(): void

Returns ​

void

Source ​

block-std/src/spec/spec-store.ts:10


getService() ​

getService(flavour): undefined | BlockService<BaseBlockModel<object>>

Parameters ​

• flavour: string

Returns ​

undefined | BlockService<BaseBlockModel<object>>

Source ​

block-std/src/spec/spec-store.ts:34


getView() ​

getView(flavour): null | BlockView<string>

Parameters ​

• flavour: string

Returns ​

null | BlockView<string>

Source ​

block-std/src/spec/spec-store.ts:25


Generated using typedoc-plugin-markdown and TypeDoc