@mui/x-charts
Version:
The community edition of MUI X Charts components.
34 lines • 863 B
TypeScript
export type ChartDrawingArea = {
/**
* The gap between the left border of the SVG and the drawing area.
*/
left: number;
/**
* The gap between the top border of the SVG and the drawing area.
*/
top: number;
/**
* The gap between the bottom border of the SVG and the drawing area.
*/
bottom: number;
/**
* The gap between the right border of the SVG and the drawing area.
*/
right: number;
/**
* The width of the drawing area.
*/
width: number;
/**
* The height of the drawing area.
*/
height: number;
};
/**
* Get the drawing area dimensions and coordinates. The drawing area is the area where the chart is rendered.
*
* It includes the left, top, width, height, bottom, and right dimensions.
*
* @returns The drawing area dimensions.
*/
export declare function useDrawingArea(): ChartDrawingArea;