API > @blocksuite/blocks > transformPointsToNewBound
Function: transformPointsToNewBound ​
transformPointsToNewBound<
T
>(points
,oldBound
,oldMargin
,newBound
,newMargin
):object
Type parameters ​
Parameter |
---|
T extends {x : number ; y : number ;} |
Parameters ​
Parameter | Type |
---|---|
points | T [] |
oldBound | IBound |
oldMargin | number |
newBound | IBound |
newMargin | number |
Returns ​
bound
​
bound:
Bound
points
​
points:
T
[] =transformedPoints
Defined In ​
packages/blocks/src/surface-block/utils/bound.ts:352