Skip to content

makeBoundingBoxFromPoints

makeBoundingBoxFromPoints(points): TBBox

Defined in: src/util/misc/boundingBoxFromPoints.ts:9

Calculates bounding box (left, top, width, height) from given points

Parameters

points

XY[]

Returns

TBBox

Object with left, top, width, height properties