Skip to content

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

Function: getClosestBlockByPoint()

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

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

Parameters

editorHost

EditorHost

rootComponent

BlockComponent

point

Point

Returns

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