Skip to content

BlockSuite API Documentation / @blocksuite/blocks / calculateNearestLocation

Function: calculateNearestLocation()

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

Parameters

point: IVec

bounds: IBound

locations?: IVec[]

shortestDistance?: number

Returns

IVec

Defined in

packages/affine/block-surface/dist/managers/connector-manager.d.ts:17