@moderneinc/react-charts 1.1.0 → 1.2.0-next.2f2ee2
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/dist/components/chrono-chart/chrono-chart.component.d.ts +3 -0
- package/dist/components/chrono-chart/chrono-chart.types.d.ts +58 -0
- package/dist/components/chrono-chart/components/category-table.component.d.ts +3 -0
- package/dist/components/chrono-chart/components/category-table.types.d.ts +17 -0
- package/dist/components/chrono-chart/utils/data-transformer.d.ts +9 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.component.d.ts +7 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +89 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +34 -0
- package/dist/components/morph-chart/hooks/shared/computations.d.ts +27 -0
- package/dist/components/morph-chart/hooks/shared/types.d.ts +22 -0
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +85 -0
- package/dist/components/morph-chart/index.d.ts +2 -0
- package/dist/components/morph-chart/morph-chart.component.d.ts +14 -0
- package/dist/components/morph-chart/morph-chart.types.d.ts +154 -0
- package/dist/components/morph-chart/utils/animation-constants.d.ts +23 -0
- package/dist/components/morph-chart/utils/animation-utils.d.ts +44 -0
- package/dist/components/morph-chart/utils/arc-path-calculator.d.ts +53 -0
- package/dist/components/morph-chart/utils/area-renderer.d.ts +24 -0
- package/dist/components/morph-chart/utils/bar-renderer.d.ts +19 -0
- package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +252 -0
- package/dist/components/morph-chart/utils/morph-interpolator.d.ts +96 -0
- package/dist/components/morph-chart/utils/parliament-renderer.d.ts +23 -0
- package/dist/components/morph-chart/utils/parliament-seat-extractor.d.ts +33 -0
- package/dist/components/morph-chart/utils/position-mapper.d.ts +48 -0
- package/dist/components/morph-chart/utils/segment-transformer.d.ts +70 -0
- package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
- package/dist/components/parliament-chart/hooks/{useParliamentChart.d.ts → use-parliament-chart.hook.d.ts} +6 -2
- package/dist/components/parliament-chart/{ParliamentChart.d.ts → parliament-chart.component.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.types.d.ts → parliament-chart.types.d.ts} +6 -1
- package/dist/components/parliament-chart/utils/parliament-animation.d.ts +13 -0
- package/dist/components/stacked-area-chart/hooks/use-stacked-area-chart.hook.d.ts +6 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.component.d.ts +10 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.constants.d.ts +115 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.types.d.ts +186 -0
- package/dist/components/stacked-area-chart/utils/color.utils.d.ts +4 -0
- package/dist/components/timeline-chart/hooks/use-timeline-chart.hook.d.ts +2 -0
- package/dist/components/timeline-chart/timeline-chart.component.d.ts +9 -0
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +133 -0
- package/dist/components/timeline-chart/timeline-selected-events.component.d.ts +9 -0
- package/dist/index.cjs +144 -11
- package/dist/index.d.ts +21 -8
- package/dist/index.js +30451 -4879
- package/dist/theme/{defaultColors.d.ts → default-colors.d.ts} +8 -4
- package/dist/theme/timeline-defaults.d.ts +50 -0
- package/package.json +32 -13
- /package/dist/components/parliament-chart/{ParliamentChart.constants.d.ts → parliament-chart.constants.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentArcCalculator.d.ts → parliament-arc-calculator.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentChartData.utils.d.ts → parliament-chart-data.utils.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgEnhanced.d.ts → parliament-svg-enhanced.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgPatterns.d.ts → parliament-svg-patterns.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvg.d.ts → parliament-svg.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @moderneinc/react-charts
|
|
3
|
-
*
|
|
3
|
+
* Chart visualization library for React
|
|
4
4
|
*/
|
|
5
|
-
export {
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
5
|
+
export { ChronoChart, ChronoChart as ChronoPerspectiveChart } from './components/chrono-chart/chrono-chart.component';
|
|
6
|
+
export type { ChronoCategory, ChronoCategory as ChronoPerspectiveCategory, ChronoChartProps, ChronoChartProps as ChronoPerspectiveChartProps, ChronoData, ChronoData as ChronoPerspectiveData } from './components/chrono-chart/chrono-chart.types';
|
|
7
|
+
export type { CategoryTableItem } from './components/chrono-chart/components/category-table.types';
|
|
8
|
+
export { D3StackedAreaChart } from './components/d3-stacked-area-chart/d3-stacked-area-chart.component';
|
|
9
|
+
export type { D3StackedAreaCategory, D3StackedAreaChartProps, D3StackedAreaDataPoint } from './components/d3-stacked-area-chart/d3-stacked-area-chart.types';
|
|
10
|
+
export { MorphChart } from './components/morph-chart/morph-chart.component';
|
|
11
|
+
export type { AreaLayout, AreaPoint, MorphChartCategory, MorphChartDataPoint, MorphChartProps, MorphMode, ParliamentLayout, SeatPosition } from './components/morph-chart/morph-chart.types';
|
|
12
|
+
export { ParliamentChart } from './components/parliament-chart/parliament-chart.component';
|
|
13
|
+
export { CAMPAIGN_DATA_MISSING, CAMPAIGN_NO_LST, CAMPAIGN_NOT_APPLICABLE, DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS } from './components/parliament-chart/parliament-chart.constants';
|
|
14
|
+
export type { ChartConfig, HoveredData, ParliamentChartProps, ProcessedDataItem } from './components/parliament-chart/parliament-chart.types';
|
|
15
|
+
export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/parliament-arc-calculator';
|
|
16
|
+
export { calculateDataSeries } from './components/parliament-chart/utils/parliament-chart-data.utils';
|
|
17
|
+
export { StackedAreaChart } from './components/stacked-area-chart/stacked-area-chart.component';
|
|
18
|
+
export { CATEGORY_LABELS, DEFAULT_STACKED_AREA_COLORS, DEFAULT_STACKED_AREA_CONFIG, STACKED_AREA_PALETTES } from './components/stacked-area-chart/stacked-area-chart.constants';
|
|
19
|
+
export type { StackedAreaCategory, StackedAreaChartProps, StackedAreaChartSlotProps, StackedAreaDataPoint, StackedAreaMarker } from './components/stacked-area-chart/stacked-area-chart.types';
|
|
20
|
+
export { TimelineChart } from './components/timeline-chart/timeline-chart.component';
|
|
21
|
+
export type { TimelineChartProps, TimelineEvent, TimelineSelectedEventsProps, TimelineSelection } from './components/timeline-chart/timeline-chart.types';
|
|
22
|
+
export { TimelineSelectedEvents } from './components/timeline-chart/timeline-selected-events.component';
|
|
23
|
+
export type { ParliamentChartColors, ParliamentChartTheme } from './theme/default-colors';
|
|
24
|
+
export { DEFAULT_CHART_COLORS, MEASURE_GRADIENT_COLORS } from './theme/default-colors';
|