Skip to content

API > @blocksuite/blocks > getDropRectByPoint

Function: getDropRectByPoint ​

getDropRectByPoint( point, model, element): object

Gets the drop rect by block and point.

Parameters ​

ParameterType
pointPoint
modelBaseBlockModel< object >
elementElement

Returns ​

flag ​

flag: DropFlags

rect ​

rect: DOMRect

Defined In ​

packages/blocks/src/_common/utils/query.ts:753