Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/hooks/useDrawingArea.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

21 lines
777 B
JavaScript

"use strict";
'use client';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useDrawingArea = useDrawingArea;
var _useStore = require("../internals/store/useStore");
var _useSelector = require("../internals/store/useSelector");
var _useChartDimensions = require("../internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors");
/**
* 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.
*/
function useDrawingArea() {
const store = (0, _useStore.useStore)();
return (0, _useSelector.useSelector)(store, _useChartDimensions.selectorChartDrawingArea);
}