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
rootComponent
point
Point
Returns
null | BlockComponent<BlockModel<object>, BlockService, string>