BlockSuite API Documentation / @blocksuite/block-std / BlockStdScope
Class: BlockStdScope
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:51
Constructors
new BlockStdScope()
new BlockStdScope(
options):BlockStdScope
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:119
Parameters
options
Returns
BlockStdScope
Properties
container
readonlycontainer:Container
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:54
provider
readonlyprovider:ServiceProvider
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:58
store
readonlystore:Store
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:56
userExtensions
readonlyuserExtensions:ExtensionType[]
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:60
internalExtensions
staticinternalExtensions: (typeofClipboard| typeofRangeManager| typeofViewStore| typeofCommandManager| typeofUIEventDispatcher| typeofLayerManager| typeofGfxSelectionManager| typeofSurfaceMiddlewareExtension| typeofViewManager| typeofGridManager| typeofServiceManager)[]
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:52
Accessors
clipboard
Get Signature
get clipboard():
Clipboard
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:72
Returns
command
Get Signature
get command():
CommandManager
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:80
Returns
dnd
Get Signature
get dnd():
DndController
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:68
Returns
event
Get Signature
get event():
UIEventDispatcher
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:84
Returns
get
Get Signature
get get(): <
T>(identifier,options?) =>T
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:88
Returns
Function
Type Parameters
T
T
Parameters
identifier
GeneralServiceIdentifier<T>
options?
ResolveOptions
Returns
T
getOptional
Get Signature
get getOptional(): <
T>(identifier,options?) =>null|T
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:92
Returns
Function
Type Parameters
T
T
Parameters
identifier
GeneralServiceIdentifier<T>
options?
ResolveOptions
Returns
null | T
host
Get Signature
get host():
EditorHost
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:96
Returns
range
Get Signature
get range():
RangeManager
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:107
Returns
selection
Get Signature
get selection():
StoreSelectionExtension
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:111
Returns
view
Get Signature
get view():
ViewStore
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:115
Returns
workspace
Get Signature
get workspace():
Workspace
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:76
Returns
Methods
getView()
getView(
flavour):null|BlockViewType
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:142
Parameters
flavour
string
Returns
null | BlockViewType
mount()
mount():
void
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:146
Returns
void
render()
render():
EditorHost
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:152
Returns
unmount()
unmount():
void
Defined in: packages/framework/block-std/src/scope/block-std-scope.ts:164
Returns
void