@octanejs/recharts 0.1.51 → 0.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/animation/AnimationController.ts +1 -1
- package/src/animation/AnimationControllerImpl.ts +2 -2
- package/src/animation/AnimationHandle.ts +1 -1
- package/src/animation/CSSTransitionAnimate.tsrx +1 -1
- package/src/animation/matchBy.ts +1 -1
- package/src/cartesian/Area.tsrx +23 -19
- package/src/cartesian/AreaRevealShape.tsrx +2 -2
- package/src/cartesian/CartesianGrid.tsrx +6 -6
- package/src/cartesian/ErrorBar.tsrx +5 -5
- package/src/cartesian/Funnel.tsrx +30 -27
- package/src/cartesian/ReferenceLine.tsrx +10 -7
- package/src/cartesian/Scatter.tsrx +41 -33
- package/src/cartesian/ZAxis.tsrx +4 -4
- package/src/cartesian/getCartesianPosition.ts +2 -2
- package/src/cartesian/getEquidistantTicks.ts +2 -2
- package/src/cartesian/getTicks.ts +2 -2
- package/src/chart/AreaChart.tsrx +1 -1
- package/src/chart/ComposedChart.tsrx +1 -1
- package/src/chart/FunnelChart.tsrx +1 -1
- package/src/chart/PieChart.tsrx +1 -1
- package/src/chart/PolarChart.tsrx +3 -3
- package/src/chart/RadarChart.tsrx +1 -1
- package/src/chart/RadialBarChart.tsrx +1 -1
- package/src/chart/Sankey.tsrx +9 -9
- package/src/chart/ScatterChart.tsrx +1 -1
- package/src/chart/SunburstChart.tsrx +14 -8
- package/src/component/Cursor.tsrx +7 -7
- package/src/component/DefaultLegendContent.tsrx +5 -5
- package/src/component/DefaultTooltipContent.tsrx +2 -2
- package/src/component/Legend.tsrx +8 -8
- package/src/component/Tooltip.tsrx +12 -12
- package/src/component/TooltipBoundingBox.tsrx +2 -2
- package/src/context/legendPayloadContext.tsrx +1 -1
- package/src/context/tooltipContext.ts +2 -2
- package/src/context/useTooltipAxis.ts +1 -1
- package/src/hooks.ts +6 -6
- package/src/polar/Pie.tsrx +28 -28
- package/src/polar/PolarAngleAxis.tsrx +16 -16
- package/src/polar/PolarGrid.tsrx +3 -3
- package/src/polar/PolarRadiusAxis.tsrx +17 -17
- package/src/polar/Radar.tsrx +10 -10
- package/src/polar/RadialBar.tsrx +29 -29
- package/src/polar/defaultPolarAngleAxisProps.ts +1 -1
- package/src/polar/defaultPolarRadiusAxisProps.ts +1 -1
- package/src/state/ReportPolarOptions.tsrx +1 -1
- package/src/state/brushSlice.ts +2 -2
- package/src/state/cartesianAxisSlice.ts +4 -4
- package/src/state/chartDataSlice.ts +2 -2
- package/src/state/errorBarSlice.ts +4 -4
- package/src/state/eventSettingsSlice.ts +2 -2
- package/src/state/externalEventsMiddleware.ts +5 -5
- package/src/state/graphicalItemsSlice.ts +11 -11
- package/src/state/keyboardEventsMiddleware.ts +3 -3
- package/src/state/layoutSlice.ts +2 -2
- package/src/state/legendSlice.ts +3 -3
- package/src/state/mouseEventsMiddleware.ts +4 -4
- package/src/state/optionsSlice.ts +2 -2
- package/src/state/polarAxisSlice.ts +2 -2
- package/src/state/polarOptionsSlice.ts +1 -1
- package/src/state/referenceElementsSlice.ts +5 -5
- package/src/state/renderedTicksSlice.ts +4 -4
- package/src/state/rootPropsSlice.ts +4 -4
- package/src/state/selectors/areaSelectors.ts +7 -7
- package/src/state/selectors/axisSelectors.ts +22 -18
- package/src/state/selectors/barSelectors.ts +11 -11
- package/src/state/selectors/brushSelectors.ts +2 -2
- package/src/state/selectors/combiners/combineActiveLabel.ts +3 -3
- package/src/state/selectors/combiners/combineActiveTooltipIndex.ts +3 -3
- package/src/state/selectors/combiners/combineAllBarPositions.ts +3 -3
- package/src/state/selectors/combiners/combineAxisRangeWithReverse.ts +2 -2
- package/src/state/selectors/combiners/combineBarPosition.ts +3 -3
- package/src/state/selectors/combiners/combineBarSizeList.ts +5 -5
- package/src/state/selectors/combiners/combineCheckedDomain.ts +1 -1
- package/src/state/selectors/combiners/combineConfiguredScale.ts +4 -4
- package/src/state/selectors/combiners/combineCoordinateForDefaultIndex.ts +2 -2
- package/src/state/selectors/combiners/combineDisplayedStackedData.ts +4 -4
- package/src/state/selectors/combiners/combineInverseScaleFunction.ts +2 -2
- package/src/state/selectors/combiners/combineRealScaleType.ts +2 -2
- package/src/state/selectors/combiners/combineStackedData.ts +2 -2
- package/src/state/selectors/combiners/combineTooltipInteractionState.ts +5 -5
- package/src/state/selectors/combiners/combineTooltipPayload.ts +4 -4
- package/src/state/selectors/combiners/combineTooltipPayloadConfigurations.ts +4 -4
- package/src/state/selectors/containerSelectors.ts +2 -2
- package/src/state/selectors/dataSelectors.ts +2 -2
- package/src/state/selectors/funnelSelectors.ts +5 -5
- package/src/state/selectors/graphicalItemSelectors.ts +3 -3
- package/src/state/selectors/legendSelectors.ts +4 -4
- package/src/state/selectors/lineSelectors.ts +6 -6
- package/src/state/selectors/numberDomainEqualityCheck.ts +1 -1
- package/src/state/selectors/pickAxisId.ts +2 -2
- package/src/state/selectors/pickAxisType.ts +1 -1
- package/src/state/selectors/pieSelectors.ts +5 -5
- package/src/state/selectors/polarAxisSelectors.ts +6 -6
- package/src/state/selectors/polarGridSelectors.ts +3 -3
- package/src/state/selectors/polarScaleSelectors.ts +4 -4
- package/src/state/selectors/polarSelectors.ts +6 -6
- package/src/state/selectors/radarSelectors.ts +11 -11
- package/src/state/selectors/radialBarSelectors.ts +16 -16
- package/src/state/selectors/rootPropsSelectors.ts +4 -4
- package/src/state/selectors/scatterSelectors.ts +8 -8
- package/src/state/selectors/selectActivePropsFromChartPointer.ts +3 -3
- package/src/state/selectors/selectAllAxes.ts +2 -2
- package/src/state/selectors/selectChartOffset.ts +2 -2
- package/src/state/selectors/selectChartOffsetInternal.ts +4 -4
- package/src/state/selectors/selectTooltipAxisId.ts +2 -2
- package/src/state/selectors/selectTooltipAxisType.ts +1 -1
- package/src/state/selectors/selectTooltipEventType.ts +3 -3
- package/src/state/selectors/selectTooltipPayloadSearcher.ts +2 -2
- package/src/state/selectors/selectTooltipSettings.ts +2 -2
- package/src/state/selectors/selectTooltipState.ts +2 -2
- package/src/state/selectors/selectors.ts +5 -5
- package/src/state/selectors/tooltipSelectors.ts +16 -16
- package/src/state/selectors/touchSelectors.ts +4 -4
- package/src/state/store.ts +3 -3
- package/src/state/tooltipSlice.ts +5 -5
- package/src/state/touchEventsMiddleware.ts +4 -4
- package/src/state/types/AreaSettings.ts +5 -5
- package/src/state/types/BarSettings.ts +3 -3
- package/src/state/types/LineSettings.ts +3 -3
- package/src/state/types/PieSettings.ts +5 -5
- package/src/state/types/RadarSettings.ts +1 -1
- package/src/state/types/RadialBarSettings.ts +2 -2
- package/src/state/types/ScatterSettings.ts +4 -4
- package/src/state/types/StackedGraphicalItem.ts +3 -3
- package/src/state/zIndexSlice.ts +1 -1
- package/src/synchronisation/syncSelectors.ts +2 -2
- package/src/synchronisation/types.ts +2 -2
- package/src/util/CartesianUtils.ts +1 -1
- package/src/util/ChartUtils.ts +8 -8
- package/src/util/DOMUtils.ts +1 -1
- package/src/util/DataUtils.ts +1 -1
- package/src/util/Events.ts +3 -3
- package/src/util/FunnelUtils.tsrx +2 -2
- package/src/util/PolarUtils.ts +1 -1
- package/src/util/RadialBarUtils.tsrx +2 -2
- package/src/util/ScatterUtils.tsrx +4 -4
- package/src/util/TickUtils.ts +1 -1
- package/src/util/axisPropsAreEqual.ts +3 -3
- package/src/util/cursor/getCursorPoints.ts +6 -6
- package/src/util/cursor/getCursorRectangle.ts +1 -1
- package/src/util/cursor/getRadialCursorPoints.ts +1 -1
- package/src/util/getActiveCoordinate.ts +2 -2
- package/src/util/getAxisTypeBasedOnLayout.ts +1 -1
- package/src/util/getRadiusAndStrokeWidthFromDot.ts +1 -1
- package/src/util/getRelativeCoordinate.ts +1 -1
- package/src/util/isDomainSpecifiedByUser.ts +1 -1
- package/src/util/scale/CartesianScaleHelper.ts +2 -2
- package/src/util/scale/CustomScaleDefinition.ts +1 -1
- package/src/util/scale/RechartsScale.ts +2 -2
- package/src/util/scale/createCategoricalInverse.ts +2 -2
- package/src/util/scale/getNiceTickValues.ts +2 -2
- package/src/util/stacks/getStackSeriesIdentifier.ts +2 -2
- package/src/util/stacks/stackTypes.ts +4 -4
- package/src/util/tooltip/translate.ts +1 -1
- package/src/util/types.ts +12 -12
- package/src/zIndex/zIndexSelectors.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import { getPercentValue, isNullish } from '../../../util/DataUtils';
|
|
3
|
-
import { BarWithPosition, SizeList } from '../barSelectors';
|
|
3
|
+
import type { BarWithPosition, SizeList } from '../barSelectors';
|
|
4
4
|
import { isWellBehavedNumber } from '../../../util/isWellBehavedNumber';
|
|
5
|
-
import { BarPositionPosition } from '../../../util/ChartUtils';
|
|
6
|
-
import { BarCategory } from './combineBarSizeList';
|
|
5
|
+
import type { BarPositionPosition } from '../../../util/ChartUtils';
|
|
6
|
+
import type { BarCategory } from './combineBarSizeList';
|
|
7
7
|
|
|
8
8
|
function getBarPositions(
|
|
9
9
|
barGap: string | number,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
3
|
-
import { AxisRange } from '../axisSelectors';
|
|
2
|
+
import type { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
3
|
+
import type { AxisRange } from '../axisSelectors';
|
|
4
4
|
|
|
5
5
|
export const combineAxisRangeWithReverse = (
|
|
6
6
|
axisSettings: BaseCartesianAxis | undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { MaybeStackedGraphicalItem } from '../../types/StackedGraphicalItem';
|
|
3
|
-
import { BarPositionPosition } from '../../../util/ChartUtils';
|
|
4
|
-
import { BarWithPosition } from '../barSelectors';
|
|
2
|
+
import type { MaybeStackedGraphicalItem } from '../../types/StackedGraphicalItem';
|
|
3
|
+
import type { BarPositionPosition } from '../../../util/ChartUtils';
|
|
4
|
+
import type { BarWithPosition } from '../barSelectors';
|
|
5
5
|
|
|
6
6
|
export const combineBarPosition = (
|
|
7
7
|
allBarPositions: ReadonlyArray<BarWithPosition> | undefined,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import {
|
|
3
|
-
DefinitelyStackedGraphicalItem,
|
|
3
|
+
type DefinitelyStackedGraphicalItem,
|
|
4
4
|
isStacked,
|
|
5
|
-
MaybeStackedGraphicalItem,
|
|
5
|
+
type MaybeStackedGraphicalItem,
|
|
6
6
|
} from '../../types/StackedGraphicalItem';
|
|
7
|
-
import { StackId } from '../../../util/ChartUtils';
|
|
8
|
-
import { SizeList } from '../barSelectors';
|
|
7
|
+
import type { StackId } from '../../../util/ChartUtils';
|
|
8
|
+
import type { SizeList } from '../barSelectors';
|
|
9
9
|
import { getPercentValue, isNullish } from '../../../util/DataUtils';
|
|
10
|
-
import { DataKey } from '../../../util/types';
|
|
10
|
+
import type { DataKey } from '../../../util/types';
|
|
11
11
|
|
|
12
12
|
const getBarSize = (
|
|
13
13
|
globalSize: string | number | undefined,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { CategoricalDomain, NumberDomain } from '../../../util/types';
|
|
2
|
+
import type { CategoricalDomain, NumberDomain } from '../../../util/types';
|
|
3
3
|
import { isWellFormedNumberDomain } from '../../../util/isDomainSpecifiedByUser';
|
|
4
4
|
import { isWellBehavedNumber } from '../../../util/isWellBehavedNumber';
|
|
5
5
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import * as d3Scales from 'victory-vendor/d3-scale';
|
|
3
|
-
import { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
4
|
-
import {
|
|
3
|
+
import type { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
4
|
+
import type {
|
|
5
5
|
CategoricalDomain,
|
|
6
6
|
CategoricalDomainItem,
|
|
7
7
|
D3ScaleType,
|
|
8
8
|
NumberDomain,
|
|
9
9
|
RechartsScaleType,
|
|
10
10
|
} from '../../../util/types';
|
|
11
|
-
import { CustomScaleDefinition } from '../../../util/scale/CustomScaleDefinition';
|
|
12
|
-
import { AxisRange } from '../axisSelectors';
|
|
11
|
+
import type { CustomScaleDefinition } from '../../../util/scale/CustomScaleDefinition';
|
|
12
|
+
import type { AxisRange } from '../axisSelectors';
|
|
13
13
|
import { upperFirst } from '../../../util/DataUtils';
|
|
14
14
|
|
|
15
15
|
function getD3ScaleFromType<Domain extends CategoricalDomainItem = CategoricalDomainItem>(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { ChartOffsetInternal, Coordinate, LayoutType, TickItem } from '../../../util/types';
|
|
3
|
-
import { TooltipIndex, TooltipPayloadConfiguration } from '../../tooltipSlice';
|
|
2
|
+
import type { ChartOffsetInternal, Coordinate, LayoutType, TickItem } from '../../../util/types';
|
|
3
|
+
import type { TooltipIndex, TooltipPayloadConfiguration } from '../../tooltipSlice';
|
|
4
4
|
|
|
5
5
|
export const combineCoordinateForDefaultIndex = (
|
|
6
6
|
width: number,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { ChartDataState } from '../../chartDataSlice';
|
|
3
|
-
import { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
2
|
+
import type { ChartDataState } from '../../chartDataSlice';
|
|
3
|
+
import type { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
4
4
|
import { getStackSeriesIdentifier } from '../../../util/stacks/getStackSeriesIdentifier';
|
|
5
5
|
import { getValueByDataKey } from '../../../util/ChartUtils';
|
|
6
|
-
import { StackSeriesIdentifier } from '../../../util/stacks/stackTypes';
|
|
7
|
-
import { DefinitelyStackedGraphicalItem } from '../../types/StackedGraphicalItem';
|
|
6
|
+
import type { StackSeriesIdentifier } from '../../../util/stacks/stackTypes';
|
|
7
|
+
import type { DefinitelyStackedGraphicalItem } from '../../types/StackedGraphicalItem';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* In a stacked chart, each graphical item has its own data. That data could be either:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { InverseScaleFunction } from '../../../hooks';
|
|
2
|
+
import type { InverseScaleFunction } from '../../../hooks';
|
|
3
3
|
import { createCategoricalInverse } from '../../../util/scale/createCategoricalInverse';
|
|
4
|
-
import { CustomScaleDefinition } from '../../../util/scale/CustomScaleDefinition';
|
|
4
|
+
import type { CustomScaleDefinition } from '../../../util/scale/CustomScaleDefinition';
|
|
5
5
|
|
|
6
6
|
export function combineInverseScaleFunction(
|
|
7
7
|
configuredScale: CustomScaleDefinition | undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import * as d3Scales from 'victory-vendor/d3-scale';
|
|
3
|
-
import { D3ScaleType, RechartsScaleType } from '../../../util/types';
|
|
4
|
-
import { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
3
|
+
import type { D3ScaleType, RechartsScaleType } from '../../../util/types';
|
|
4
|
+
import type { BaseCartesianAxis } from '../../cartesianAxisSlice';
|
|
5
5
|
import { upperFirst } from '../../../util/DataUtils';
|
|
6
6
|
|
|
7
7
|
function getD3ScaleName(name: string): D3ScaleType {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { AllStackGroups, StackGroup, StackSeries } from '../../../util/stacks/stackTypes';
|
|
3
|
-
import { MaybeStackedGraphicalItem } from '../../types/StackedGraphicalItem';
|
|
2
|
+
import type { AllStackGroups, StackGroup, StackSeries } from '../../../util/stacks/stackTypes';
|
|
3
|
+
import type { MaybeStackedGraphicalItem } from '../../types/StackedGraphicalItem';
|
|
4
4
|
import { getStackSeriesIdentifier } from '../../../util/stacks/getStackSeriesIdentifier';
|
|
5
5
|
|
|
6
6
|
export const combineStackedData = (
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import {
|
|
3
3
|
noInteraction,
|
|
4
|
-
TooltipIndex,
|
|
5
|
-
TooltipInteractionState,
|
|
6
|
-
TooltipState,
|
|
4
|
+
type TooltipIndex,
|
|
5
|
+
type TooltipInteractionState,
|
|
6
|
+
type TooltipState,
|
|
7
7
|
} from '../../tooltipSlice';
|
|
8
|
-
import { TooltipEventType } from '../../../util/types';
|
|
9
|
-
import { TooltipTrigger } from '../../../chart/types';
|
|
8
|
+
import type { TooltipEventType } from '../../../util/types';
|
|
9
|
+
import type { TooltipTrigger } from '../../../chart/types';
|
|
10
10
|
|
|
11
11
|
function chooseAppropriateMouseInteraction(
|
|
12
12
|
tooltipState: TooltipState,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
TooltipEntrySettings,
|
|
4
4
|
TooltipIndex,
|
|
5
5
|
TooltipPayload,
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
TooltipPayloadEntry,
|
|
8
8
|
TooltipPayloadSearcher,
|
|
9
9
|
} from '../../tooltipSlice';
|
|
10
|
-
import { ChartData, ChartDataState } from '../../chartDataSlice';
|
|
11
|
-
import { DataKey, TooltipEventType } from '../../../util/types';
|
|
10
|
+
import type { ChartData, ChartDataState } from '../../chartDataSlice';
|
|
11
|
+
import type { DataKey, TooltipEventType } from '../../../util/types';
|
|
12
12
|
import { findEntryInArray } from '../../../util/DataUtils';
|
|
13
13
|
import { getTooltipEntry, getValueByDataKey } from '../../../util/ChartUtils';
|
|
14
14
|
import { getSliced } from '../../../util/getSliced';
|
|
15
|
-
import { ActiveLabel } from '../../../synchronisation/types';
|
|
15
|
+
import type { ActiveLabel } from '../../../synchronisation/types';
|
|
16
16
|
|
|
17
17
|
type TooltipPayloadItemLike = {
|
|
18
18
|
name: TooltipEntrySettings['name'];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { TooltipIndex, TooltipPayloadConfiguration, TooltipState } from '../../tooltipSlice';
|
|
3
|
-
import { TooltipEventType } from '../../../util/types';
|
|
4
|
-
import { TooltipTrigger } from '../../../chart/types';
|
|
5
|
-
import { GraphicalItemId } from '../../graphicalItemsSlice';
|
|
2
|
+
import type { TooltipIndex, TooltipPayloadConfiguration, TooltipState } from '../../tooltipSlice';
|
|
3
|
+
import type { TooltipEventType } from '../../../util/types';
|
|
4
|
+
import type { TooltipTrigger } from '../../../chart/types';
|
|
5
|
+
import type { GraphicalItemId } from '../../graphicalItemsSlice';
|
|
6
6
|
|
|
7
7
|
export const combineTooltipPayloadConfigurations = (
|
|
8
8
|
tooltipState: TooltipState,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
3
|
-
import { Margin } from '../../util/types';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
|
+
import type { Margin } from '../../util/types';
|
|
4
4
|
|
|
5
5
|
export const selectChartWidth = (state: RechartsRootState): number => state.layout.width;
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
|
-
import { RechartsRootState } from '../store';
|
|
4
|
-
import { ChartData, ChartDataState } from '../chartDataSlice';
|
|
3
|
+
import type { RechartsRootState } from '../store';
|
|
4
|
+
import type { ChartData, ChartDataState } from '../chartDataSlice';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This selector always returns the data with the indexes set by a Brush.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { RegisteredCell } from '../../context/CellsContext';
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
3
|
|
|
4
|
-
import { computeFunnelTrapezoids, FunnelTrapezoidItem } from '../../cartesian/Funnel.tsrx';
|
|
5
|
-
import { ChartData } from '../chartDataSlice';
|
|
6
|
-
import { RechartsRootState } from '../store';
|
|
4
|
+
import { computeFunnelTrapezoids, type FunnelTrapezoidItem } from '../../cartesian/Funnel.tsrx';
|
|
5
|
+
import type { ChartData } from '../chartDataSlice';
|
|
6
|
+
import type { RechartsRootState } from '../store';
|
|
7
7
|
import { selectChartOffsetInternal } from './selectChartOffsetInternal';
|
|
8
8
|
import { selectChartDataAndAlwaysIgnoreIndexes } from './dataSelectors';
|
|
9
|
-
import { ChartOffsetInternal, DataKey, TooltipType } from '../../util/types';
|
|
10
|
-
import { GraphicalItemId } from '../graphicalItemsSlice';
|
|
9
|
+
import type { ChartOffsetInternal, DataKey, TooltipType } from '../../util/types';
|
|
10
|
+
import type { GraphicalItemId } from '../graphicalItemsSlice';
|
|
11
11
|
|
|
12
12
|
export type ResolvedFunnelSettings = {
|
|
13
13
|
dataKey: DataKey<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
3
|
-
import { GraphicalItemId } from '../graphicalItemsSlice';
|
|
4
|
-
import { AxisId, defaultAxisId } from '../cartesianAxisSlice';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
|
+
import type { GraphicalItemId } from '../graphicalItemsSlice';
|
|
4
|
+
import { type AxisId, defaultAxisId } from '../cartesianAxisSlice';
|
|
5
5
|
|
|
6
6
|
export function selectXAxisIdFromGraphicalItemId(
|
|
7
7
|
state: RechartsRootState,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
3
|
import { sortBy } from 'es-toolkit/compat';
|
|
4
|
-
import { RechartsRootState } from '../store';
|
|
5
|
-
import { LegendSettings } from '../legendSlice';
|
|
6
|
-
import { LegendPayload } from '../../component/DefaultLegendContent.tsrx';
|
|
7
|
-
import { Size } from '../../util/types';
|
|
4
|
+
import type { RechartsRootState } from '../store';
|
|
5
|
+
import type { LegendSettings } from '../legendSlice';
|
|
6
|
+
import type { LegendPayload } from '../../component/DefaultLegendContent.tsrx';
|
|
7
|
+
import type { Size } from '../../util/types';
|
|
8
8
|
|
|
9
9
|
export const selectLegendSettings = (state: RechartsRootState): LegendSettings =>
|
|
10
10
|
state.legend.settings;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
|
-
import { computeLinePoints, LinePointItem } from '../../cartesian/Line.tsrx';
|
|
4
|
-
import { RechartsRootState } from '../store';
|
|
5
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
3
|
+
import { computeLinePoints, type LinePointItem } from '../../cartesian/Line.tsrx';
|
|
4
|
+
import type { RechartsRootState } from '../store';
|
|
5
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
6
6
|
import { selectChartDataWithIndexesIfNotInPanoramaPosition4 } from './dataSelectors';
|
|
7
7
|
import { selectChartLayout } from '../../context/chartLayoutContext';
|
|
8
8
|
import {
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
selectUnfilteredCartesianItems,
|
|
12
12
|
} from './axisSelectors';
|
|
13
13
|
import { getBandSizeOfAxis, isCategoricalAxis } from '../../util/ChartUtils';
|
|
14
|
-
import { ChartData } from '../chartDataSlice';
|
|
15
|
-
import { CartesianGraphicalItemSettings, GraphicalItemId } from '../graphicalItemsSlice';
|
|
16
|
-
import { LineSettings } from '../types/LineSettings';
|
|
14
|
+
import type { ChartData } from '../chartDataSlice';
|
|
15
|
+
import type { CartesianGraphicalItemSettings, GraphicalItemId } from '../graphicalItemsSlice';
|
|
16
|
+
import type { LineSettings } from '../types/LineSettings';
|
|
17
17
|
|
|
18
18
|
const selectXAxisWithScale = (
|
|
19
19
|
state: RechartsRootState,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
3
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
4
4
|
|
|
5
5
|
export const pickAxisId = (_state: RechartsRootState, _axisType: unknown, axisId: AxisId): AxisId =>
|
|
6
6
|
axisId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
3
|
|
|
4
4
|
export const pickAxisType = <T>(_state: RechartsRootState, axisType: T): T => axisType;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { RegisteredCell } from '../../context/CellsContext';
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
3
|
|
|
4
|
-
import { computePieSectors, PieSectorDataItem } from '../../polar/Pie.tsrx';
|
|
5
|
-
import { RechartsRootState } from '../store';
|
|
4
|
+
import { computePieSectors, type PieSectorDataItem } from '../../polar/Pie.tsrx';
|
|
5
|
+
import type { RechartsRootState } from '../store';
|
|
6
6
|
import { selectChartDataAndAlwaysIgnoreIndexes } from './dataSelectors';
|
|
7
|
-
import { ChartData, ChartDataState } from '../chartDataSlice';
|
|
8
|
-
import { ChartOffsetInternal } from '../../util/types';
|
|
7
|
+
import type { ChartData, ChartDataState } from '../chartDataSlice';
|
|
8
|
+
import type { ChartOffsetInternal } from '../../util/types';
|
|
9
9
|
import { selectChartOffsetInternal } from './selectChartOffsetInternal';
|
|
10
10
|
import type { LegendPayload } from '../../component/DefaultLegendContent.tsrx';
|
|
11
11
|
import { getTooltipNameProp, getValueByDataKey } from '../../util/ChartUtils';
|
|
12
12
|
import { selectUnfilteredPolarItems } from './polarSelectors';
|
|
13
13
|
import type { PieSettings } from '../types/PieSettings';
|
|
14
|
-
import { GraphicalItemId } from '../graphicalItemsSlice';
|
|
14
|
+
import type { GraphicalItemId } from '../graphicalItemsSlice';
|
|
15
15
|
|
|
16
16
|
const pickId = (_state: RechartsRootState, id: GraphicalItemId): GraphicalItemId => id;
|
|
17
17
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
|
-
import { RechartsRootState } from '../store';
|
|
4
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
5
|
-
import { AngleAxisSettings, RadiusAxisSettings } from '../polarAxisSlice';
|
|
6
|
-
import { PolarChartOptions } from '../polarOptionsSlice';
|
|
3
|
+
import type { RechartsRootState } from '../store';
|
|
4
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
5
|
+
import type { AngleAxisSettings, RadiusAxisSettings } from '../polarAxisSlice';
|
|
6
|
+
import type { PolarChartOptions } from '../polarOptionsSlice';
|
|
7
7
|
import { selectChartHeight, selectChartWidth } from './containerSelectors';
|
|
8
8
|
import { selectChartOffsetInternal } from './selectChartOffsetInternal';
|
|
9
9
|
import { getMaxRadius } from '../../util/PolarUtils';
|
|
10
10
|
import { getPercentValue } from '../../util/DataUtils';
|
|
11
|
-
import {
|
|
11
|
+
import type {
|
|
12
12
|
AxisDomainTypeInput,
|
|
13
13
|
LayoutType,
|
|
14
14
|
PolarLayout,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from '../../util/types';
|
|
17
17
|
import { defaultPolarAngleAxisProps } from '../../polar/defaultPolarAngleAxisProps';
|
|
18
18
|
import { defaultPolarRadiusAxisProps } from '../../polar/defaultPolarRadiusAxisProps';
|
|
19
|
-
import { AxisRange } from './axisSelectors';
|
|
19
|
+
import type { AxisRange } from './axisSelectors';
|
|
20
20
|
import { combineAxisRangeWithReverse } from './combiners/combineAxisRangeWithReverse';
|
|
21
21
|
import { selectChartLayout, selectPolarChartLayout } from '../../context/chartLayoutContext';
|
|
22
22
|
import { getAxisTypeBasedOnLayout } from '../../util/getAxisTypeBasedOnLayout';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createSelector } from 'reselect';
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
3
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
4
4
|
import { selectPolarAxisTicks } from './polarScaleSelectors';
|
|
5
|
-
import { CartesianTickItem } from '../../util/types';
|
|
5
|
+
import type { CartesianTickItem } from '../../util/types';
|
|
6
6
|
|
|
7
7
|
export type PolarAngles = Array<number>;
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSelector } from 'reselect';
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
3
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
4
4
|
import {
|
|
5
5
|
combineAxisTicks,
|
|
6
6
|
combineCategoricalDomain,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
selectRadiusAxis,
|
|
16
16
|
selectRadiusAxisRangeWithReversed,
|
|
17
17
|
} from './polarAxisSelectors';
|
|
18
|
-
import { CartesianTickItem } from '../../util/types';
|
|
18
|
+
import type { CartesianTickItem } from '../../util/types';
|
|
19
19
|
import { selectChartLayout } from '../../context/chartLayoutContext';
|
|
20
20
|
import {
|
|
21
21
|
selectPolarAppliedValues,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
selectPolarNiceTicks,
|
|
24
24
|
} from './polarSelectors';
|
|
25
25
|
import { pickAxisType } from './pickAxisType';
|
|
26
|
-
import { RechartsScale, rechartsScaleFactory } from '../../util/scale/RechartsScale';
|
|
26
|
+
import { type RechartsScale, rechartsScaleFactory } from '../../util/scale/RechartsScale';
|
|
27
27
|
import type { CustomScaleDefinition } from '../../util/scale/CustomScaleDefinition';
|
|
28
28
|
import { combineConfiguredScale } from './combiners/combineConfiguredScale';
|
|
29
29
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createSelector } from 'reselect';
|
|
2
|
-
import { AppliedChartData, ChartData } from '../chartDataSlice';
|
|
3
|
-
import { RechartsRootState } from '../store';
|
|
4
|
-
import { AxisId, BaseCartesianAxis } from '../cartesianAxisSlice';
|
|
2
|
+
import type { AppliedChartData, ChartData } from '../chartDataSlice';
|
|
3
|
+
import type { RechartsRootState } from '../store';
|
|
4
|
+
import type { AxisId, BaseCartesianAxis } from '../cartesianAxisSlice';
|
|
5
5
|
import {
|
|
6
6
|
selectChartDataAndAlwaysIgnoreIndexes,
|
|
7
7
|
selectChartDataSliceIgnoringIndexes,
|
|
8
8
|
} from './dataSelectors';
|
|
9
9
|
import {
|
|
10
|
-
AppliedChartDataWithErrorDomain,
|
|
10
|
+
type AppliedChartDataWithErrorDomain,
|
|
11
11
|
combineAppliedValues,
|
|
12
12
|
combineAxisDomain,
|
|
13
13
|
combineAxisDomainWithNiceTicks,
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
selectRealScaleType,
|
|
26
26
|
selectRenderableAxisSettings,
|
|
27
27
|
} from './axisSelectors';
|
|
28
|
-
import { PolarGraphicalItemSettings } from '../graphicalItemsSlice';
|
|
29
|
-
import { CategoricalDomain, NumberDomain } from '../../util/types';
|
|
28
|
+
import type { PolarGraphicalItemSettings } from '../graphicalItemsSlice';
|
|
29
|
+
import type { CategoricalDomain, NumberDomain } from '../../util/types';
|
|
30
30
|
import { selectChartLayout } from '../../context/chartLayoutContext';
|
|
31
31
|
import { getValueByDataKey } from '../../util/ChartUtils';
|
|
32
32
|
import { pickAxisType } from './pickAxisType';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { createSelector } from 'reselect';
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
3
|
import {
|
|
4
|
-
AngleAxisForRadar,
|
|
4
|
+
type AngleAxisForRadar,
|
|
5
5
|
computeRadarPoints,
|
|
6
|
-
RadarComposedData,
|
|
7
|
-
RadiusAxisForRadar,
|
|
6
|
+
type RadarComposedData,
|
|
7
|
+
type RadiusAxisForRadar,
|
|
8
8
|
} from '../../polar/Radar.tsrx';
|
|
9
|
-
import { BaseAxisWithScale } from './axisSelectors';
|
|
9
|
+
import type { BaseAxisWithScale } from './axisSelectors';
|
|
10
10
|
import { selectPolarAxisScale, selectPolarAxisTicks } from './polarScaleSelectors';
|
|
11
11
|
import { selectAngleAxis, selectPolarViewBox, selectRadiusAxis } from './polarAxisSelectors';
|
|
12
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
12
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
13
13
|
import { selectChartDataAndAlwaysIgnoreIndexes } from './dataSelectors';
|
|
14
|
-
import { ChartDataState } from '../chartDataSlice';
|
|
15
|
-
import { DataKey, LayoutType, PolarViewBoxRequired, TickItem } from '../../util/types';
|
|
14
|
+
import type { ChartDataState } from '../chartDataSlice';
|
|
15
|
+
import type { DataKey, LayoutType, PolarViewBoxRequired, TickItem } from '../../util/types';
|
|
16
16
|
import { selectChartLayout } from '../../context/chartLayoutContext';
|
|
17
17
|
import { getBandSizeOfAxis, isCategoricalAxis } from '../../util/ChartUtils';
|
|
18
|
-
import { AngleAxisSettings, RadiusAxisSettings } from '../polarAxisSlice';
|
|
18
|
+
import type { AngleAxisSettings, RadiusAxisSettings } from '../polarAxisSlice';
|
|
19
19
|
import { selectUnfilteredPolarItems } from './polarSelectors';
|
|
20
|
-
import { GraphicalItemId } from '../graphicalItemsSlice';
|
|
21
|
-
import { RechartsScale } from '../../util/scale/RechartsScale';
|
|
20
|
+
import type { GraphicalItemId } from '../graphicalItemsSlice';
|
|
21
|
+
import type { RechartsScale } from '../../util/scale/RechartsScale';
|
|
22
22
|
|
|
23
23
|
const selectRadiusAxisScale = (
|
|
24
24
|
state: RechartsRootState,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { RegisteredCell } from '../../context/CellsContext';
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
3
|
|
|
4
|
-
import { Series } from 'victory-vendor/d3-shape';
|
|
5
|
-
import { computeRadialBarDataItems, RadialBarDataItem } from '../../polar/RadialBar.tsrx';
|
|
4
|
+
import type { Series } from 'victory-vendor/d3-shape';
|
|
5
|
+
import { computeRadialBarDataItems, type RadialBarDataItem } from '../../polar/RadialBar.tsrx';
|
|
6
6
|
import { selectChartDataAndAlwaysIgnoreIndexes, selectChartDataWithIndexes } from './dataSelectors';
|
|
7
|
-
import { RechartsRootState } from '../store';
|
|
8
|
-
import { ChartDataState } from '../chartDataSlice';
|
|
9
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
10
|
-
import { LayoutType, LegendType, PolarViewBoxRequired, TickItem } from '../../util/types';
|
|
7
|
+
import type { RechartsRootState } from '../store';
|
|
8
|
+
import type { ChartDataState } from '../chartDataSlice';
|
|
9
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
10
|
+
import type { LayoutType, LegendType, PolarViewBoxRequired, TickItem } from '../../util/types';
|
|
11
11
|
import {
|
|
12
12
|
selectPolarAxisScale,
|
|
13
13
|
selectPolarAxisTicks,
|
|
14
14
|
selectPolarGraphicalItemAxisTicks,
|
|
15
15
|
} from './polarScaleSelectors';
|
|
16
|
-
import { BaseAxisWithScale, combineStackGroups, selectTooltipAxis } from './axisSelectors';
|
|
16
|
+
import { type BaseAxisWithScale, combineStackGroups, selectTooltipAxis } from './axisSelectors';
|
|
17
17
|
import { selectAngleAxis, selectPolarViewBox, selectRadiusAxis } from './polarAxisSelectors';
|
|
18
18
|
import { selectChartLayout } from '../../context/chartLayoutContext';
|
|
19
19
|
import {
|
|
20
|
-
BarPositionPosition,
|
|
20
|
+
type BarPositionPosition,
|
|
21
21
|
getBandSizeOfAxis,
|
|
22
22
|
getBaseValueOfBar,
|
|
23
23
|
isCategoricalAxis,
|
|
24
24
|
} from '../../util/ChartUtils';
|
|
25
|
-
import { BarWithPosition, SizeList } from './barSelectors';
|
|
25
|
+
import type { BarWithPosition, SizeList } from './barSelectors';
|
|
26
26
|
import {
|
|
27
27
|
selectBarCategoryGap,
|
|
28
28
|
selectBarGap,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
selectRootMaxBarSize,
|
|
32
32
|
selectStackOffsetType,
|
|
33
33
|
} from './rootPropsSelectors';
|
|
34
|
-
import { PolarGraphicalItemSettings } from '../graphicalItemsSlice';
|
|
34
|
+
import type { PolarGraphicalItemSettings } from '../graphicalItemsSlice';
|
|
35
35
|
import {
|
|
36
|
-
PolarAxisType,
|
|
36
|
+
type PolarAxisType,
|
|
37
37
|
selectPolarItemsSettings,
|
|
38
38
|
selectUnfilteredPolarItems,
|
|
39
39
|
} from './polarSelectors';
|
|
40
|
-
import { AngleAxisSettings, RadiusAxisSettings } from '../polarAxisSlice';
|
|
41
|
-
import { LegendPayload } from '../../component/DefaultLegendContent.tsrx';
|
|
40
|
+
import type { AngleAxisSettings, RadiusAxisSettings } from '../polarAxisSlice';
|
|
41
|
+
import type { LegendPayload } from '../../component/DefaultLegendContent.tsrx';
|
|
42
42
|
import { isNullish } from '../../util/DataUtils';
|
|
43
43
|
|
|
44
44
|
import type {
|
|
@@ -49,14 +49,14 @@ import type {
|
|
|
49
49
|
} from '../../util/stacks/stackTypes';
|
|
50
50
|
import {
|
|
51
51
|
combineDisplayedStackedData,
|
|
52
|
-
DisplayedStackedData,
|
|
52
|
+
type DisplayedStackedData,
|
|
53
53
|
} from './combiners/combineDisplayedStackedData';
|
|
54
54
|
import type { RadialBarSettings } from '../types/RadialBarSettings';
|
|
55
|
-
import { DefinitelyStackedGraphicalItem, isStacked } from '../types/StackedGraphicalItem';
|
|
55
|
+
import { type DefinitelyStackedGraphicalItem, isStacked } from '../types/StackedGraphicalItem';
|
|
56
56
|
import { combineBarSizeList } from './combiners/combineBarSizeList';
|
|
57
57
|
import { combineAllBarPositions } from './combiners/combineAllBarPositions';
|
|
58
58
|
import { combineStackedData } from './combiners/combineStackedData';
|
|
59
|
-
import { RechartsScale } from '../../util/scale/RechartsScale';
|
|
59
|
+
import type { RechartsScale } from '../../util/scale/RechartsScale';
|
|
60
60
|
import { combineBarPosition } from './combiners/combineBarPosition';
|
|
61
61
|
|
|
62
62
|
const selectRadiusAxisForRadialBar = (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Adapted from recharts@3.9.2, commit b3451050c027a23957ffa50a2665c9119df21e47.
|
|
2
|
-
import { RechartsRootState } from '../store';
|
|
3
|
-
import { StackOffsetType } from '../../util/types';
|
|
4
|
-
import { SyncMethod } from '../../synchronisation/types';
|
|
5
|
-
import { BaseValue } from '../../cartesian/Area.tsrx';
|
|
2
|
+
import type { RechartsRootState } from '../store';
|
|
3
|
+
import type { StackOffsetType } from '../../util/types';
|
|
4
|
+
import type { SyncMethod } from '../../synchronisation/types';
|
|
5
|
+
import type { BaseValue } from '../../cartesian/Area.tsrx';
|
|
6
6
|
|
|
7
7
|
export const selectRootMaxBarSize = (state: RechartsRootState): number | undefined =>
|
|
8
8
|
state.rootProps.maxBarSize;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { RegisteredCell } from '../../context/CellsContext';
|
|
2
2
|
import { createSelector } from 'reselect';
|
|
3
3
|
|
|
4
|
-
import { computeScatterPoints, ScatterPointItem } from '../../cartesian/Scatter.tsrx';
|
|
5
|
-
import { RechartsRootState } from '../store';
|
|
6
|
-
import { AxisId } from '../cartesianAxisSlice';
|
|
4
|
+
import { computeScatterPoints, type ScatterPointItem } from '../../cartesian/Scatter.tsrx';
|
|
5
|
+
import type { RechartsRootState } from '../store';
|
|
6
|
+
import type { AxisId } from '../cartesianAxisSlice';
|
|
7
7
|
import { selectChartDataWithIndexesIfNotInPanoramaPosition4 } from './dataSelectors';
|
|
8
|
-
import { ChartData, ChartDataState } from '../chartDataSlice';
|
|
8
|
+
import type { ChartData, ChartDataState } from '../chartDataSlice';
|
|
9
9
|
import {
|
|
10
|
-
BaseAxisWithScale,
|
|
10
|
+
type BaseAxisWithScale,
|
|
11
11
|
selectAxisWithScale,
|
|
12
12
|
selectTicksOfGraphicalItem,
|
|
13
13
|
selectUnfilteredCartesianItems,
|
|
14
14
|
selectZAxisWithScale,
|
|
15
|
-
ZAxisWithScale,
|
|
15
|
+
type ZAxisWithScale,
|
|
16
16
|
} from './axisSelectors';
|
|
17
17
|
import type { ScatterSettings } from '../types/ScatterSettings';
|
|
18
|
-
import { GraphicalItemId } from '../graphicalItemsSlice';
|
|
19
|
-
import { TickItem } from '../../util/types';
|
|
18
|
+
import type { GraphicalItemId } from '../graphicalItemsSlice';
|
|
19
|
+
import type { TickItem } from '../../util/types';
|
|
20
20
|
|
|
21
21
|
const selectXAxisWithScale = (
|
|
22
22
|
state: RechartsRootState,
|