BlockSuite API Documentation / @blocksuite/blocks / ParagraphService
Class: ParagraphService<TextAttributes>
Contents
Extends
Type parameters
• TextAttributes extends AffineTextAttributes = AffineTextAttributes
Constructors
new ParagraphService(options)
new ParagraphService<
TextAttributes>(options):ParagraphService<TextAttributes>
Parameters
• options: BlockServiceOptions
Returns
ParagraphService<TextAttributes>
Inherited from
@blocksuite/block-std.BlockService.constructor
Source
packages/block-std/dist/service/index.d.ts:13
Properties
disposables
readonlydisposables:DisposableGroup
Inherited from
@blocksuite/block-std.BlockService.disposables
Source
packages/block-std/dist/service/index.d.ts:12
flavour
readonlyflavour:string
Inherited from
@blocksuite/block-std.BlockService.flavour
Source
packages/block-std/dist/service/index.d.ts:11
inlineManager
readonlyinlineManager:InlineManager<TextAttributes>
Source
packages/blocks/src/paragraph-block/paragraph-service.ts:14
std
readonlystd:BlockStdScope
Inherited from
@blocksuite/block-std.BlockService.std
Source
packages/block-std/dist/service/index.d.ts:10
Accessors
page
getpage():Page
Returns
Source
packages/block-std/dist/service/index.d.ts:15
selectionManager
getselectionManager():SelectionManager
Returns
Source
packages/block-std/dist/service/index.d.ts:16
uiEventDispatcher
getuiEventDispatcher():UIEventDispatcher
Returns
Source
packages/block-std/dist/service/index.d.ts:17
workspace
getworkspace():Workspace
Returns
Source
packages/block-std/dist/service/index.d.ts:14
Methods
bindHotKey()
bindHotKey(
keymap,options?):void
Parameters
• keymap: Record<string, UIEventHandler>
• options?: Object
• options.global?: boolean
Returns
void
Inherited from
@blocksuite/block-std.BlockService.bindHotKey
Source
packages/block-std/dist/service/index.d.ts:24
dispose()
dispose():
void
Returns
void
Inherited from
@blocksuite/block-std.BlockService.dispose
Source
packages/block-std/dist/service/index.d.ts:18
handleEvent()
handleEvent(
name,fn,options?):void
Parameters
• name: "blur" | "click" | "copy" | "cut" | "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
Inherited from
@blocksuite/block-std.BlockService.handleEvent
Source
packages/block-std/dist/service/index.d.ts:21
mounted()
mounted():
void
Returns
void
Overrides
@blocksuite/block-std.BlockService.mounted
Source
packages/blocks/src/paragraph-block/paragraph-service.ts:16
unmounted()
unmounted():
void
Returns
void
Inherited from
@blocksuite/block-std.BlockService.unmounted
Source
packages/block-std/dist/service/index.d.ts:20
Generated using typedoc-plugin-markdown and TypeDoc