Skip to content

BlockSuite API Documentation / @blocksuite/affine-widget-drag-handle / getClosestNoteBlock

Function: getClosestNoteBlock()

getClosestNoteBlock(editorHost, rootComponent, point): null | BlockComponent<BlockModel<object>, BlockService, string>

Defined in: packages/affine/widgets/widget-drag-handle/src/utils.ts:163

Parameters

editorHost

EditorHost

rootComponent

BlockComponent

point

Point

Returns

null | BlockComponent<BlockModel<object>, BlockService, string>