BlockSuite API Documentation / @blocksuite/blocks / ImageService
Class: ImageService
Extends
Constructors
new ImageService(options)
new ImageService(
options
):ImageService
Parameters
• options: BlockServiceOptions
Returns
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:16
Properties
_dragHandleOption
private
_dragHandleOption:DragHandleOption
Source
packages/blocks/src/image-block/image-service.ts:72
_fileDropOptions
private
_fileDropOptions:FileDropOptions
Source
packages/blocks/src/image-block/image-service.ts:47
disposables
readonly
disposables:DisposableGroup
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:14
fileDropManager
fileDropManager:
FileDropManager
Source
packages/blocks/src/image-block/image-service.ts:70
flavour
readonly
flavour:string
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:13
maxFileSize
maxFileSize:
number
Source
packages/blocks/src/image-block/image-service.ts:45
specSlots
readonly
specSlots:BlockSpecSlots
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:15
std
readonly
std:BlockStdScope
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:12
setImageProxyURL()
static
setImageProxyURL: (url
) =>void
=setImageProxyMiddlewareURL
Parameters
• url: string
Returns
void
Source
packages/blocks/src/image-block/image-service.ts:172
Accessors
collection
get
collection():DocCollection
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:17
doc
get
doc():Doc
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:18
host
get
host():HTMLElement
Returns
HTMLElement
Source
packages/framework/block-std/dist/service/index.d.ts:19
rootElement
get
rootElement():RootBlockComponent
Returns
Source
packages/blocks/src/image-block/image-service.ts:34
selectionManager
get
selectionManager():SelectionManager
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:20
uiEventDispatcher
get
uiEventDispatcher():UIEventDispatcher
Returns
Source
packages/framework/block-std/dist/service/index.d.ts:21
Methods
bindHotKey()
bindHotKey(
keymap
,options
?):void
Parameters
• keymap: Record
<string
, UIEventHandler
>
• options?
• options.global?: boolean
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:28
dispose()
dispose():
void
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:22
handleEvent()
handleEvent(
name
,fn
,options
?):void
Parameters
• name: "click"
| "doubleClick"
| "tripleClick"
| "pointerDown"
| "pointerMove"
| "pointerUp"
| "pointerOut"
| "dragStart"
| "dragMove"
| "dragEnd"
| "keyDown"
| "keyUp"
| "selectionChange"
| "compositionStart"
| "compositionUpdate"
| "compositionEnd"
| "cut"
| "copy"
| "paste"
| "beforeInput"
| "blur"
| "focus"
| "drop"
| "contextMenu"
| "wheel"
• fn: UIEventHandler
• options?
• options.global?: boolean
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:25
mounted()
mounted():
void
Returns
void
Overrides
Source
packages/blocks/src/image-block/image-service.ts:160
unmounted()
unmounted():
void
Returns
void
Inherited from
Source
packages/framework/block-std/dist/service/index.d.ts:24