Skip to content

charton API


charton API / @chart-on/core / index / normalizedRect

Function: normalizedRect() ​

normalizedRect(a, b): object

Defined in: packages/core/src/drawing/geometry.ts:79

The rectangle spanned by two corner points, with a non-negative width and height.

Parameters ​

a ​

Point

b ​

Point

Returns ​

object

height ​

height: number

width ​

width: number

x ​

x: number

y ​

y: number