Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-surface / calculateNearestLocation

Function: calculateNearestLocation()

calculateNearestLocation(point, bounds, locations, shortestDistance): IVec

Parameters

point

IVec

bounds

IBound

locations

IVec[] = ConnectorEndpointLocations

shortestDistance

number = Number.POSITIVE_INFINITY

Returns

IVec

Defined in

packages/affine/block-surface/src/managers/connector-manager.ts:80