BlockSuite API Documentation / @blocksuite/block-std / BlockService
Class: BlockService<_Model>
Extended by
Type parameters
• _Model extends BlockModel
= BlockModel
Constructors
new BlockService(options)
new BlockService<
_Model
>(options
):BlockService
<_Model
>
Parameters
• options: BlockServiceOptions
Returns
BlockService
<_Model
>
Source
block-std/src/service/index.ts:20
Properties
disposables
readonly
disposables:DisposableGroup
Source
block-std/src/service/index.ts:17
flavour
readonly
flavour:string
Source
block-std/src/service/index.ts:16
specSlots
readonly
specSlots:BlockSpecSlots
Source
block-std/src/service/index.ts:18
std
readonly
std:BlockStdScope
Source
block-std/src/service/index.ts:15
Accessors
doc
get
doc():Doc
Returns
Source
block-std/src/service/index.ts:30
host
get
host():HTMLElement
Returns
HTMLElement
Source
block-std/src/service/index.ts:34
selectionManager
get
selectionManager():SelectionManager
Returns
Source
block-std/src/service/index.ts:38
uiEventDispatcher
get
uiEventDispatcher():UIEventDispatcher
Returns
Source
block-std/src/service/index.ts:42
workspace
get
workspace():Workspace
Returns
Source
block-std/src/service/index.ts:26
Methods
bindHotKey()
bindHotKey(
keymap
,options
?):void
Parameters
• keymap: Record
<string
, UIEventHandler
>
• options?: Object
• options.global?: boolean
Returns
void
Source
block-std/src/service/index.ts:73
dispose()
dispose():
void
Returns
void
Source
block-std/src/service/index.ts:47
handleEvent()
handleEvent(
name
,fn
,options
?):void
Parameters
• name: "cut"
| "blur"
| "click"
| "copy"
| "drop"
| "focus"
| "paste"
| "wheel"
| "doubleClick"
| "tripleClick"
| "pointerDown"
| "pointerMove"
| "pointerUp"
| "pointerOut"
| "dragStart"
| "dragMove"
| "dragEnd"
| "keyDown"
| "keyUp"
| "selectionChange"
| "compositionStart"
| "compositionUpdate"
| "compositionEnd"
| "beforeInput"
| "contextMenu"
• fn: UIEventHandler
• options?: Object
• options.global?: boolean
Returns
void
Source
block-std/src/service/index.ts:61
mounted()
mounted():
void
Returns
void
Source
block-std/src/service/index.ts:51
unmounted()
unmounted():
void
Returns
void
Source
block-std/src/service/index.ts:55
Generated using TypeDoc and typedoc-plugin-markdown.