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:113
Properties
container
readonly
container:Container
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:61
doc
readonly
doc:Doc
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:63
provider
readonly
provider:ServiceProvider
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:65
userExtensions
readonly
userExtensions:ExtensionType
[]
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:67
internalExtensions
static
internalExtensions:ExtensionType
[]
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:57
Accessors
clipboard
get
clipboard():Clipboard
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:73
collection
get
collection():DocCollection
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:77
command
get
command():CommandManager
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:81
event
get
event():UIEventDispatcher
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:85
get
get
get(): <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:89
getOptional
get
getOptional(): <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:93
host
get
host():EditorHost
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:97
range
get
range():RangeManager
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:101
selection
get
selection():SelectionManager
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:105
view
get
view():ViewStore
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:109
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:142
getService()
getService(flavour)
getService<
Key
>(flavour
):null
|BlockServices
[Key
]
Type Parameters
• Key extends never
Parameters
• flavour: Key
Returns
null
| BlockServices
[Key
]
Deprecated
BlockService will be removed in the future.
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:159
getService(flavour)
getService<
Service
>(flavour
):null
|Service
Type Parameters
• Service extends BlockService
Parameters
• flavour: string
Returns
null
| Service
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:162
getView()
getView(
flavour
):null
|BlockViewType
Parameters
• flavour: string
Returns
null
| BlockViewType
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:167
mount()
mount():
void
Returns
void
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:171
render()
render():
EditorHost
Returns
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:177
unmount()
unmount():
void
Returns
void
Defined in
packages/framework/block-std/src/scope/block-std-scope.ts:189