BlockSuite API Documentation / @blocksuite/block-std / BlockStdScope
Class: BlockStdScope
Constructors
new BlockStdScope()
new BlockStdScope(
options):BlockStdScope
Parameters
• options: BlockStdOptions
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:52
Properties
container
readonlycontainer:Container
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:44
doc
readonlydoc:Doc
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:46
extensions
readonlyextensions:ExtensionType[]
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:48
provider
readonlyprovider:ServiceProvider
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:50
Accessors
clipboard
getclipboard():Clipboard
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:131
collection
getcollection():DocCollection
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:135
command
getcommand():CommandManager
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:139
event
getevent():UIEventDispatcher
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:143
get
getget(): <T>(identifier,options?) =>T
Returns
Function
Type Parameters
• T
Parameters
• identifier: GeneralServiceIdentifier<T>
• options?: ResolveOptions
Returns
T
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:147
getOptional
getgetOptional(): <T>(identifier,options?) =>null|T
Returns
Function
Type Parameters
• T
Parameters
• identifier: GeneralServiceIdentifier<T>
• options?: ResolveOptions
Returns
null | T
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:151
host
gethost():EditorHost
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:155
range
getrange():RangeManager
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:159
selection
getselection():SelectionManager
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:163
view
getview():ViewStore
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:167
Methods
getConfig()
getConfig<
Key>(flavour):null|BlockConfigs[Key]
Type Parameters
• Key extends never
Parameters
• flavour: Key
Returns
null | BlockConfigs[Key]
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:80
getService()
getService(flavour)
getService<
Key>(flavour):BlockServices[Key]
Type Parameters
• Key extends never
Parameters
• flavour: Key
Returns
BlockServices[Key]
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:93
getService(flavour)
getService<
Service>(flavour):Service
Type Parameters
• Service extends BlockService
Parameters
• flavour: string
Returns
Service
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:97
getView()
getView(
flavour):null|BlockViewType
Parameters
• flavour: string
Returns
null | BlockViewType
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:103
mount()
mount():
void
Returns
void
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:107
render()
render():
EditorHost
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:113
unmount()
unmount():
void
Returns
void
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:125