BlockSuite API Documentation / @blocksuite/blocks / ImageService
Class: ImageService
Extends
Contents
Constructors
new ImageService(options)
new ImageService(
options
):ImageService
Parameters
• options: BlockServiceOptions
Returns
Inherited from
@blocksuite/block-std.BlockService.constructor
Source
packages/block-std/dist/service/index.d.ts:13
Properties
_fileDropOptions
private
_fileDropOptions:FileDropOptions
Source
packages/blocks/src/image-block/image-service.ts:35
disposables
readonly
disposables:DisposableGroup
Inherited from
@blocksuite/block-std.BlockService.disposables
Source
packages/block-std/dist/service/index.d.ts:12
fileDropManager
fileDropManager:
FileDropManager
Source
packages/blocks/src/image-block/image-service.ts:58
flavour
readonly
flavour:string
Inherited from
@blocksuite/block-std.BlockService.flavour
Source
packages/block-std/dist/service/index.d.ts:11
maxFileSize
maxFileSize:
number
Source
packages/blocks/src/image-block/image-service.ts:33
setImageProxyMiddlewareURL
setImageProxyMiddlewareURL: (
url
) =>void
=setImageProxyMiddlewareURL
Parameters
• url: string
Returns
void
Source
packages/blocks/src/image-block/image-service.ts:66
std
readonly
std:BlockStdScope
Inherited from
@blocksuite/block-std.BlockService.std
Source
packages/block-std/dist/service/index.d.ts:10
Accessors
page
get
page():Page
Returns
Source
packages/block-std/dist/service/index.d.ts:15
pageBlockComponent
get
pageBlockComponent():EdgelessPageBlockComponent
|DocPageBlockComponent
Returns
EdgelessPageBlockComponent
| DocPageBlockComponent
Source
packages/blocks/src/image-block/image-service.ts:21
selectionManager
get
selectionManager():SelectionManager
Returns
Source
packages/block-std/dist/service/index.d.ts:16
uiEventDispatcher
get
uiEventDispatcher():UIEventDispatcher
Returns
Source
packages/block-std/dist/service/index.d.ts:17
workspace
get
workspace():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: "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?: 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/image-block/image-service.ts:60
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