@mui/x-charts
Version:
The community edition of MUI X Charts components.
18 lines (17 loc) • 589 B
JavaScript
'use client';
import { useStore } from "../../../store/useStore.js";
import { selectorChartZoomIsInteracting } from "./useChartCartesianAxisRendering.selectors.js";
/**
* Check if the zoom is interacting.
*
* This should probably be moved/merged to the AnimationContext when we move it to the new API.
*
* @ignore Internal hook, similar to the PRO one.
*
* @returns {boolean} Inform the zoom is interacting.
*/
export function useInternalIsZoomInteracting() {
const store = useStore();
const isInteracting = store.use(selectorChartZoomIsInteracting);
return isInteracting;
}