Skip to content

API > @blocksuite/blocks > transformPointsToNewBound

Function: transformPointsToNewBound ​

transformPointsToNewBound<T>( points, oldBound, oldMargin, newBound, newMargin): object

Type parameters ​

Parameter
T extends {x: number; y: number;}

Parameters ​

ParameterType
pointsT[]
oldBoundIBound
oldMarginnumber
newBoundIBound
newMarginnumber

Returns ​

bound ​

bound: Bound

points ​

points: T[] = transformedPoints

Defined In ​

packages/blocks/src/surface-block/utils/bound.ts:352