BlockSuite API Documentation / @blocksuite/affine-block-surface / calculateNearestLocation
Function: calculateNearestLocation()
calculateNearestLocation(
point,bounds,locations,shortestDistance):IVec
Defined in: packages/affine/blocks/block-surface/src/managers/connector-manager.ts:80
Parameters
point
IVec
bounds
IBound
locations
IVec[] = ConnectorEndpointLocations
shortestDistance
number = Number.POSITIVE_INFINITY
Returns
IVec