Chart.js/types/geometric.d.ts
Jukka Kurkela 3ed94559dd
Add missing typings of helpers, add automatic test (#9570)
* Add missing typings of helpers, add automatic test

* Add error handling to autogen.js
2021-09-01 20:27:26 -04:00

38 lines
558 B
TypeScript

export interface ChartArea {
top: number;
left: number;
right: number;
bottom: number;
width: number;
height: number;
}
export interface Point {
x: number;
y: number;
}
export type TRBL = {
top: number;
right: number;
bottom: number;
left: number;
}
export type TRBLCorners = {
topLeft: number;
topRight: number;
bottomLeft: number;
bottomRight: number;
};
export type CornerRadius = number | Partial<TRBLCorners>;
export type RoundedRect = {
x: number;
y: number;
w: number;
h: number;
radius?: CornerRadius
}