UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

45 lines (40 loc) 1.28 kB
"use strict"; 'use client'; Object.defineProperty(exports, "__esModule", { value: true }); exports.useRadarSeries = useRadarSeries; exports.useRadarSeriesContext = useRadarSeriesContext; var _seriesSelectorOfType = require("../internals/seriesSelectorOfType"); /** * Get access to the internal state of radar series. * * @param {SeriesId} seriesId The id of the series to get. * @returns {UseRadarSeriesReturnValue} the radar series */ /** * Get access to the internal state of radar series. * * When called without arguments, it returns all radar series. * * @returns {UseRadarSeriesReturnValue[]} the radar series */ /** * Get access to the internal state of radar series. * * @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved. * @returns {UseRadarSeriesReturnValue[]} the radar series */ function useRadarSeries(seriesIds) { return (0, _seriesSelectorOfType.useSeriesOfType)('radar', seriesIds); } /** * Get access to the internal state of radar series. * The returned object contains: * - series: a mapping from ids to series attributes. * - seriesOrder: the array of series ids. * @returns the radar series */ function useRadarSeriesContext() { return (0, _seriesSelectorOfType.useAllSeriesOfType)('radar'); }