UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

14 lines (13 loc) 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.selectorChartsPointerType = exports.selectorChartsLastInteraction = exports.selectorChartsInteractionPointerY = exports.selectorChartsInteractionPointerX = exports.selectorChartsInteractionPointer = exports.selectorChartsInteractionIsInitialized = void 0; var _store = require("@mui/x-internals/store"); const selectInteraction = state => state.interaction; const selectorChartsInteractionIsInitialized = exports.selectorChartsInteractionIsInitialized = (0, _store.createSelector)(selectInteraction, interaction => interaction !== undefined); const selectorChartsInteractionPointer = exports.selectorChartsInteractionPointer = (0, _store.createSelector)(selectInteraction, interaction => interaction?.pointer ?? null); const selectorChartsInteractionPointerX = exports.selectorChartsInteractionPointerX = (0, _store.createSelector)(selectorChartsInteractionPointer, pointer => pointer && pointer.x); const selectorChartsInteractionPointerY = exports.selectorChartsInteractionPointerY = (0, _store.createSelector)(selectorChartsInteractionPointer, pointer => pointer && pointer.y); const selectorChartsLastInteraction = exports.selectorChartsLastInteraction = (0, _store.createSelector)(selectInteraction, interaction => interaction?.lastUpdate); const selectorChartsPointerType = exports.selectorChartsPointerType = (0, _store.createSelector)(selectInteraction, interaction => interaction?.pointerType ?? null);