@moderneinc/react-charts 1.1.0-next.dcefa6 → 1.2.0-next.0d3f64
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 +10 -0
- package/dist/components/chrono-chart/chrono-chart.types.d.ts +129 -0
- package/dist/components/chrono-chart/components/category-table.component.d.ts +13 -0
- package/dist/components/chrono-chart/components/category-table.types.d.ts +42 -0
- package/dist/components/chrono-chart/utils/data-transformer.d.ts +41 -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 +95 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +35 -0
- package/dist/components/morph-chart/hooks/shared/computations.d.ts +29 -0
- package/dist/components/morph-chart/hooks/shared/types.d.ts +24 -0
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +90 -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 +175 -0
- package/dist/components/morph-chart/utils/accordion-generator.d.ts +102 -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 +291 -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/slinky-3d-generator.d.ts +35 -0
- package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
- package/dist/components/morph-chart/utils/svg-slinky-generator.d.ts +25 -0
- package/dist/components/parliament-chart/hooks/{use-parliament-chart.d.ts → use-parliament-chart.hook.d.ts} +5 -1
- package/dist/components/parliament-chart/parliament-chart.types.d.ts +5 -0
- 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/stacked-area-with-timeline/hooks/use-stacked-area-with-timeline.hook.d.ts +52 -0
- package/dist/components/stacked-area-with-timeline/index.d.ts +4 -0
- package/dist/components/stacked-area-with-timeline/stacked-area-with-timeline.component.d.ts +3 -0
- package/dist/components/stacked-area-with-timeline/stacked-area-with-timeline.types.d.ts +97 -0
- package/dist/components/stacked-area-with-timeline/utils/render-timeline-track.d.ts +54 -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 +156 -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 -6
- package/dist/index.js +31597 -4839
- package/dist/theme/default-colors.d.ts +8 -4
- package/dist/theme/timeline-defaults.d.ts +82 -0
- package/package.json +35 -12
- /package/dist/components/parliament-chart/{parliament-chart.d.ts → parliament-chart.component.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
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 {
|
|
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';
|
|
9
15
|
export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/parliament-arc-calculator';
|
|
10
16
|
export { calculateDataSeries } from './components/parliament-chart/utils/parliament-chart-data.utils';
|
|
11
|
-
export {
|
|
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 { StackedAreaWithTimeline } from './components/stacked-area-with-timeline/stacked-area-with-timeline.component';
|
|
21
|
+
export type { HoveredData as StackedAreaHoveredData, HoveredTimelineEvent, StackedAreaDataPoint as StackedAreaTimelineDataPoint, StackedAreaWithTimelineProps, TimelineEvent as StackedAreaTimelineEvent } from './components/stacked-area-with-timeline/stacked-area-with-timeline.types';
|
|
22
|
+
export { TimelineChart } from './components/timeline-chart/timeline-chart.component';
|
|
23
|
+
export type { TimelineChartProps, TimelineEvent, TimelineSelectedEventsProps, TimelineSelection } from './components/timeline-chart/timeline-chart.types';
|
|
24
|
+
export { TimelineSelectedEvents } from './components/timeline-chart/timeline-selected-events.component';
|
|
25
|
+
export type { ParliamentChartColors, ParliamentChartTheme } from './theme/default-colors';
|
|
26
|
+
export { DEFAULT_CHART_COLORS, MEASURE_GRADIENT_COLORS } from './theme/default-colors';
|