@octanejs/recharts 0.1.16 → 0.1.18
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 +4 -4
- package/src/animation/CSSTransitionAnimate.tsrx +142 -0
- package/src/cartesian/Area.tsrx +1096 -0
- package/src/cartesian/Area.tsrx.d.ts +340 -0
- package/src/cartesian/AreaRevealShape.tsrx +202 -0
- package/src/cartesian/CartesianGrid.tsrx +643 -0
- package/src/cartesian/CartesianGrid.tsrx.d.ts +219 -0
- package/src/cartesian/ErrorBar.tsrx +322 -0
- package/src/cartesian/ErrorBar.tsrx.d.ts +131 -0
- package/src/cartesian/Funnel.tsrx +833 -0
- package/src/cartesian/Funnel.tsrx.d.ts +274 -0
- package/src/cartesian/ReferenceLine.tsrx +452 -0
- package/src/cartesian/ReferenceLine.tsrx.d.ts +178 -0
- package/src/cartesian/Scatter.tsrx +1076 -0
- package/src/cartesian/Scatter.tsrx.d.ts +351 -0
- package/src/cartesian/ZAxis.tsrx +148 -0
- package/src/cartesian/ZAxis.tsrx.d.ts +102 -0
- package/src/chart/AreaChart.tsrx +22 -0
- package/src/chart/AreaChart.tsrx.d.ts +12 -0
- package/src/chart/ComposedChart.tsrx +22 -0
- package/src/chart/ComposedChart.tsrx.d.ts +12 -0
- package/src/chart/FunnelChart.tsrx +22 -0
- package/src/chart/FunnelChart.tsrx.d.ts +12 -0
- package/src/chart/PieChart.tsrx +31 -0
- package/src/chart/PieChart.tsrx.d.ts +31 -0
- package/src/chart/PolarChart.tsrx +121 -0
- package/src/chart/RadarChart.tsrx +53 -0
- package/src/chart/RadarChart.tsrx.d.ts +31 -0
- package/src/chart/RadialBarChart.tsrx +31 -0
- package/src/chart/RadialBarChart.tsrx.d.ts +31 -0
- package/src/chart/Sankey.tsrx +1542 -0
- package/src/chart/Sankey.tsrx.d.ts +253 -0
- package/src/chart/ScatterChart.tsrx +22 -0
- package/src/chart/ScatterChart.tsrx.d.ts +12 -0
- package/src/chart/SunburstChart.tsrx +495 -0
- package/src/chart/SunburstChart.tsrx.d.ts +146 -0
- package/src/chart/types.ts +19 -0
- package/src/component/Cursor.tsrx +157 -0
- package/src/component/DefaultLegendContent.tsrx +288 -0
- package/src/component/DefaultLegendContent.tsrx.d.ts +125 -0
- package/src/component/DefaultTooltipContent.tsrx +215 -0
- package/src/component/DefaultTooltipContent.tsrx.d.ts +87 -0
- package/src/component/Legend.tsrx +302 -0
- package/src/component/Legend.tsrx.d.ts +88 -0
- package/src/component/ResponsiveContainer.ts +1 -22
- package/src/component/ResponsiveContainer.tsrx +171 -0
- package/src/component/ResponsiveContainer.tsrx.d.ts +81 -0
- package/src/component/Tooltip.tsrx +425 -0
- package/src/component/Tooltip.tsrx.d.ts +246 -0
- package/src/component/TooltipBoundingBox.tsrx +135 -0
- package/src/context/CellsContext.ts +12 -0
- package/src/context/legendPayloadContext.tsrx +11 -0
- package/src/context/useTooltipAxis.ts +20 -0
- package/src/index.d.ts +236 -0
- package/src/index.ts +67 -0
- package/src/polar/Pie.tsrx +1224 -0
- package/src/polar/Pie.tsrx.d.ts +436 -0
- package/src/polar/PolarAngleAxis.tsrx +554 -0
- package/src/polar/PolarAngleAxis.tsrx.d.ts +215 -0
- package/src/polar/PolarGrid.tsrx +317 -0
- package/src/polar/PolarGrid.tsrx.d.ts +117 -0
- package/src/polar/PolarRadiusAxis.tsrx +463 -0
- package/src/polar/PolarRadiusAxis.tsrx.d.ts +209 -0
- package/src/polar/Radar.tsrx +696 -0
- package/src/polar/Radar.tsrx.d.ts +215 -0
- package/src/polar/RadialBar.tsrx +887 -0
- package/src/polar/RadialBar.tsrx.d.ts +340 -0
- package/src/state/ReportPolarOptions.tsrx +11 -0
- package/src/state/selectors/areaSelectors.ts +257 -0
- package/src/state/selectors/funnelSelectors.ts +86 -0
- package/src/state/selectors/pieSelectors.ts +134 -0
- package/src/state/selectors/polarGridSelectors.ts +43 -0
- package/src/state/selectors/polarScaleSelectors.ts +159 -0
- package/src/state/selectors/polarSelectors.ts +198 -0
- package/src/state/selectors/radarSelectors.ts +228 -0
- package/src/state/selectors/radialBarSelectors.ts +511 -0
- package/src/state/selectors/scatterSelectors.ts +168 -0
- package/src/util/FunnelUtils.tsrx +19 -0
- package/src/util/RadialBarUtils.tsrx +29 -0
- package/src/util/ScatterUtils.tsrx +34 -0
- package/src/util/cursor/getCursorPoints.ts +45 -0
- package/src/util/cursor/getCursorRectangle.ts +28 -0
- package/src/util/cursor/getRadialCursorPoints.ts +31 -0
- package/src/util/payload/getUniqPayload.ts +28 -0
- package/src/util/scale/CartesianScaleHelper.ts +71 -0
- package/src/util/tooltip/translate.ts +168 -0
- package/src/util/types.ts +3 -0
- package/src/util/useElementOffset.ts +147 -0
package/src/index.ts
CHANGED
|
@@ -15,6 +15,21 @@
|
|
|
15
15
|
export { Surface } from './container/Surface.tsrx';
|
|
16
16
|
export { Layer } from './container/Layer.tsrx';
|
|
17
17
|
export { Cell } from './component/Cell';
|
|
18
|
+
export { ResponsiveContainer } from './component/ResponsiveContainer.tsrx';
|
|
19
|
+
export type { Props as ResponsiveContainerProps } from './component/ResponsiveContainer.tsrx';
|
|
20
|
+
export { Tooltip } from './component/Tooltip.tsrx';
|
|
21
|
+
export type { TooltipProps } from './component/Tooltip.tsrx';
|
|
22
|
+
export { DefaultTooltipContent } from './component/DefaultTooltipContent.tsrx';
|
|
23
|
+
export type {
|
|
24
|
+
Props as DefaultTooltipContentProps,
|
|
25
|
+
Formatter as TooltipFormatter,
|
|
26
|
+
NameType,
|
|
27
|
+
ValueType,
|
|
28
|
+
} from './component/DefaultTooltipContent.tsrx';
|
|
29
|
+
export { Legend } from './component/Legend.tsrx';
|
|
30
|
+
export type { Props as LegendProps } from './component/Legend.tsrx';
|
|
31
|
+
export { DefaultLegendContent } from './component/DefaultLegendContent.tsrx';
|
|
32
|
+
export type { Props as DefaultLegendContentProps } from './component/DefaultLegendContent.tsrx';
|
|
18
33
|
export { Rectangle } from './shape/Rectangle.tsrx';
|
|
19
34
|
export { Dot } from './shape/Dot.tsrx';
|
|
20
35
|
export { Cross } from './shape/Cross.tsrx';
|
|
@@ -30,8 +45,60 @@ export { LineChart } from './chart/LineChart.tsrx';
|
|
|
30
45
|
export { CartesianChart } from './chart/CartesianChart.tsrx';
|
|
31
46
|
export { Bar } from './cartesian/Bar.tsrx';
|
|
32
47
|
export { Line } from './cartesian/Line.tsrx';
|
|
48
|
+
export { Area } from './cartesian/Area.tsrx';
|
|
49
|
+
export { Scatter } from './cartesian/Scatter.tsrx';
|
|
50
|
+
export { Funnel } from './cartesian/Funnel.tsrx';
|
|
51
|
+
export { CartesianGrid } from './cartesian/CartesianGrid.tsrx';
|
|
52
|
+
export { ReferenceLine } from './cartesian/ReferenceLine.tsrx';
|
|
53
|
+
export { ErrorBar } from './cartesian/ErrorBar.tsrx';
|
|
54
|
+
export type { Props as ErrorBarProps } from './cartesian/ErrorBar.tsrx';
|
|
55
|
+
export { ZAxis } from './cartesian/ZAxis.tsrx';
|
|
33
56
|
export { XAxis } from './cartesian/XAxis.tsrx';
|
|
34
57
|
export { YAxis } from './cartesian/YAxis.tsrx';
|
|
58
|
+
export { AreaChart } from './chart/AreaChart.tsrx';
|
|
59
|
+
export { ComposedChart } from './chart/ComposedChart.tsrx';
|
|
60
|
+
export { ScatterChart } from './chart/ScatterChart.tsrx';
|
|
61
|
+
export { FunnelChart } from './chart/FunnelChart.tsrx';
|
|
62
|
+
export { PieChart } from './chart/PieChart.tsrx';
|
|
63
|
+
export { RadarChart } from './chart/RadarChart.tsrx';
|
|
64
|
+
export { RadialBarChart } from './chart/RadialBarChart.tsrx';
|
|
65
|
+
export { Pie } from './polar/Pie.tsrx';
|
|
66
|
+
export { Radar } from './polar/Radar.tsrx';
|
|
67
|
+
export { RadialBar } from './polar/RadialBar.tsrx';
|
|
68
|
+
export { PolarGrid } from './polar/PolarGrid.tsrx';
|
|
69
|
+
export { PolarAngleAxis } from './polar/PolarAngleAxis.tsrx';
|
|
70
|
+
export { PolarRadiusAxis } from './polar/PolarRadiusAxis.tsrx';
|
|
71
|
+
export { Sankey } from './chart/Sankey.tsrx';
|
|
72
|
+
export { SunburstChart } from './chart/SunburstChart.tsrx';
|
|
73
|
+
|
|
74
|
+
// Public prop contracts used by component-library wrappers. The runtime port
|
|
75
|
+
// accepts the same prop bags as Recharts; keep these structural while the
|
|
76
|
+
// generated declaration surface is expanded component by component.
|
|
77
|
+
export type AreaProps<DataPointType = any, ValueAxisType = any> = Record<string, any>;
|
|
78
|
+
export type BarProps = Record<string, any>;
|
|
79
|
+
export type BarShapeProps = Record<string, any>;
|
|
80
|
+
export type BrushProps = Record<string, any>;
|
|
81
|
+
export type CartesianGridProps = Record<string, any>;
|
|
82
|
+
export type DotProps = Record<string, any>;
|
|
83
|
+
export type FunnelProps = Record<string, any>;
|
|
84
|
+
export type LabelListProps = Record<string, any>;
|
|
85
|
+
export type LabelProps = Record<string, any>;
|
|
86
|
+
export type LineProps = Record<string, any>;
|
|
87
|
+
export type PieLabel = (props: Record<string, any>) => unknown;
|
|
88
|
+
export type PieProps<DataPointType = any, DataValueType = any> = Record<string, any>;
|
|
89
|
+
export type PolarAngleAxisProps = Record<string, any>;
|
|
90
|
+
export type PolarGridProps = Record<string, any>;
|
|
91
|
+
export type PolarRadiusAxisProps = Record<string, any>;
|
|
92
|
+
export type RadarProps = Record<string, any>;
|
|
93
|
+
export type RadialBarProps = Record<string, any>;
|
|
94
|
+
export type ReferenceLineProps = Record<string, any>;
|
|
95
|
+
export type SankeyProps = Record<string, any>;
|
|
96
|
+
export type ScatterProps = Record<string, any>;
|
|
97
|
+
export type SunburstChartProps = Record<string, any>;
|
|
98
|
+
export type TreemapProps = Record<string, any>;
|
|
99
|
+
export type XAxisProps = Record<string, any>;
|
|
100
|
+
export type YAxisProps = Record<string, any>;
|
|
101
|
+
export type ZAxisProps = Record<string, any>;
|
|
35
102
|
export { CartesianAxis } from './cartesian/CartesianAxis.tsrx';
|
|
36
103
|
export { BarStack } from './cartesian/BarStack.tsrx';
|
|
37
104
|
export { LineDrawShape } from './cartesian/LineDrawShape.tsrx';
|