Skip to content

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

page

get page(): Page

Returns

Page

Source

block-std/src/service/index.ts:30


selectionManager

get selectionManager(): SelectionManager

Returns

SelectionManager

Source

block-std/src/service/index.ts:34


uiEventDispatcher

get uiEventDispatcher(): UIEventDispatcher

Returns

UIEventDispatcher

Source

block-std/src/service/index.ts:38


workspace

get workspace(): Workspace

Returns

Workspace

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:69


dispose()

dispose(): void

Returns

void

Source

block-std/src/service/index.ts:43


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:57


mounted()

mounted(): void

Returns

void

Source

block-std/src/service/index.ts:47


unmounted()

unmounted(): void

Returns

void

Source

block-std/src/service/index.ts:51


Generated using TypeDoc and typedoc-plugin-markdown.