@fluentui/react-charts 1.1.0 → 9.0.0
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/CHANGELOG.md +181 -11
- package/LICENSE +11 -17
- package/README.md +174 -23
- package/dist/index.d.ts +2143 -0
- package/lib/CartesianChart.js +1 -0
- package/lib/CartesianChart.js.map +1 -0
- package/lib/DeclarativeChart.js +1 -0
- package/lib/DeclarativeChart.js.map +1 -0
- package/lib/DonutChart.js +1 -0
- package/lib/DonutChart.js.map +1 -0
- package/lib/HorizontalBarChart.js +1 -0
- package/lib/HorizontalBarChart.js.map +1 -0
- package/lib/Legends.js +1 -0
- package/lib/Legends.js.map +1 -0
- package/lib/LineChart.js +1 -0
- package/lib/LineChart.js.map +1 -0
- package/lib/Popover.js +1 -0
- package/lib/Popover.js.map +1 -0
- package/lib/ResponsiveContainer.js +1 -0
- package/lib/ResponsiveContainer.js.map +1 -0
- package/lib/Sparkline.js +1 -0
- package/lib/Sparkline.js.map +1 -0
- package/lib/VerticalBarChart.js +1 -0
- package/lib/VerticalBarChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.js +462 -0
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.js +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib/components/CommonComponents/ChartPopover.js +187 -0
- package/lib/components/CommonComponents/ChartPopover.js.map +1 -0
- package/lib/components/CommonComponents/ChartPopover.types.js +1 -0
- package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -0
- package/lib/components/CommonComponents/index.js +4 -0
- package/lib/components/CommonComponents/index.js.map +1 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +229 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +178 -0
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js +150 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
- package/lib/components/DeclarativeChart/PlotlySchema.js +7 -0
- package/lib/components/DeclarativeChart/PlotlySchema.js.map +1 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +400 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
- package/lib/components/DeclarativeChart/imageExporter.js +221 -0
- package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib/components/DeclarativeChart/index.js +1 -0
- package/lib/components/DeclarativeChart/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.js +110 -0
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.js +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib/components/DonutChart/Arc/index.js +2 -0
- package/lib/components/DonutChart/Arc/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js +54 -0
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.js +291 -0
- package/lib/components/DonutChart/DonutChart.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.types.js +1 -0
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.js +72 -0
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.js +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/index.js +2 -0
- package/lib/components/DonutChart/Pie/index.js.map +1 -0
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js +44 -0
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
- package/lib/components/DonutChart/index.js +3 -0
- package/lib/components/DonutChart/index.js.map +1 -0
- package/lib/components/DonutChart/useDonutChartStyles.styles.js +58 -0
- package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +402 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib/components/HorizontalBarChart/index.js +3 -0
- package/lib/components/HorizontalBarChart/index.js.map +1 -0
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +163 -0
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
- package/lib/components/Legends/Legends.js +302 -0
- package/lib/components/Legends/Legends.js.map +1 -0
- package/lib/components/Legends/Legends.types.js +1 -0
- package/lib/components/Legends/Legends.types.js.map +1 -0
- package/lib/components/Legends/OverflowMenu.js +25 -0
- package/lib/components/Legends/OverflowMenu.js.map +1 -0
- package/lib/components/Legends/index.js +3 -0
- package/lib/components/Legends/index.js.map +1 -0
- package/lib/components/Legends/shape.js +35 -0
- package/lib/components/Legends/shape.js.map +1 -0
- package/lib/components/Legends/useLegendsStyles.styles.js +147 -0
- package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -0
- package/lib/components/LineChart/LineChart.js +1026 -0
- package/lib/components/LineChart/LineChart.js.map +1 -0
- package/lib/components/LineChart/LineChart.types.js +3 -0
- package/lib/components/LineChart/LineChart.types.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +119 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +57 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js +40 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib/components/LineChart/index.js +4 -0
- package/lib/components/LineChart/index.js.map +1 -0
- package/lib/components/LineChart/useLineChartStyles.styles.js +65 -0
- package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js +65 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
- package/lib/components/ResponsiveContainer/index.js +1 -0
- package/lib/components/ResponsiveContainer/index.js.map +1 -0
- package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +23 -0
- package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.js +119 -0
- package/lib/components/Sparkline/Sparkline.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.types.js +4 -0
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib/components/Sparkline/index.js +3 -0
- package/lib/components/Sparkline/index.js.map +1 -0
- package/lib/components/Sparkline/useSparklineStyles.styles.js +49 -0
- package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js +849 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js +4 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib/components/VerticalBarChart/index.js +3 -0
- package/lib/components/VerticalBarChart/index.js.map +1 -0
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +74 -0
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
- package/lib/index.js +12 -8
- package/lib/index.js.map +1 -1
- package/lib/types/DataPoint.js +3 -0
- package/lib/types/DataPoint.js.map +1 -0
- package/lib/types/EventAnnotation.js +1 -0
- package/lib/types/EventAnnotation.js.map +1 -0
- package/lib/types/LegendDataItem.js +1 -0
- package/lib/types/LegendDataItem.js.map +1 -0
- package/lib/types/index.js +2 -2
- package/lib/types/index.js.map +1 -1
- package/lib/utilities/FocusableTooltipText.js +65 -0
- package/lib/utilities/FocusableTooltipText.js.map +1 -0
- package/lib/utilities/KeyCodes.js +8 -0
- package/lib/utilities/KeyCodes.js.map +1 -0
- package/lib/utilities/SVGTooltipText.js +138 -0
- package/lib/utilities/SVGTooltipText.js.map +1 -0
- package/lib/utilities/async-utils.js +380 -0
- package/lib/utilities/async-utils.js.map +1 -0
- package/lib/utilities/colors.js +249 -0
- package/lib/utilities/colors.js.map +1 -0
- package/lib/utilities/getWindow.js +25 -0
- package/lib/utilities/getWindow.js.map +1 -0
- package/lib/utilities/index.js +3 -0
- package/lib/utilities/index.js.map +1 -0
- package/lib/utilities/locale-util.js +15 -0
- package/lib/utilities/locale-util.js.map +1 -0
- package/lib/utilities/overflow-utils.js +27 -0
- package/lib/utilities/overflow-utils.js.map +1 -0
- package/lib/utilities/test-data.js +276 -0
- package/lib/utilities/test-data.js.map +1 -0
- package/lib/utilities/utilities.js +1215 -0
- package/lib/utilities/utilities.js.map +1 -0
- package/lib/utilities/vbc-utils.js +27 -0
- package/lib/utilities/vbc-utils.js.map +1 -0
- package/lib-commonjs/CartesianChart.js +6 -0
- package/lib-commonjs/CartesianChart.js.map +1 -0
- package/lib-commonjs/DeclarativeChart.js +6 -0
- package/lib-commonjs/DeclarativeChart.js.map +1 -0
- package/lib-commonjs/DonutChart.js +6 -0
- package/lib-commonjs/DonutChart.js.map +1 -0
- package/lib-commonjs/HorizontalBarChart.js +6 -0
- package/lib-commonjs/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/Legends.js +6 -0
- package/lib-commonjs/Legends.js.map +1 -0
- package/lib-commonjs/LineChart.js +6 -0
- package/lib-commonjs/LineChart.js.map +1 -0
- package/lib-commonjs/Popover.js +6 -0
- package/lib-commonjs/Popover.js.map +1 -0
- package/lib-commonjs/ResponsiveContainer.js +6 -0
- package/lib-commonjs/ResponsiveContainer.js.map +1 -0
- package/lib-commonjs/Sparkline.js +6 -0
- package/lib-commonjs/Sparkline.js.map +1 -0
- package/lib-commonjs/VerticalBarChart.js +6 -0
- package/lib-commonjs/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +469 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +6 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.js +197 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +4 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/index.js +9 -0
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +356 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +261 -0
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +158 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js +10 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +445 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js +231 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/index.js +6 -0
- package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +117 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +4 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js +7 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +83 -0
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js +298 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js +6 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +79 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +4 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js +7 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +61 -0
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/index.js +8 -0
- package/lib-commonjs/components/DonutChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +82 -0
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +408 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +17 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js +8 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +251 -0
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.js +313 -0
- package/lib-commonjs/components/Legends/Legends.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.types.js +6 -0
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
- package/lib-commonjs/components/Legends/OverflowMenu.js +36 -0
- package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -0
- package/lib-commonjs/components/Legends/index.js +8 -0
- package/lib-commonjs/components/Legends/index.js.map +1 -0
- package/lib-commonjs/components/Legends/shape.js +46 -0
- package/lib-commonjs/components/Legends/shape.js.map +1 -0
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +304 -0
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.js +1032 -0
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js +6 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +129 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +68 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +51 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib-commonjs/components/LineChart/index.js +9 -0
- package/lib-commonjs/components/LineChart/index.js.map +1 -0
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +96 -0
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +76 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +6 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/index.js +6 -0
- package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +47 -0
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js +125 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js +7 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib-commonjs/components/Sparkline/index.js +8 -0
- package/lib-commonjs/components/Sparkline/index.js.map +1 -0
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +77 -0
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +851 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +7 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/index.js +8 -0
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +117 -0
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/index.js +17 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/types/DataPoint.js +6 -0
- package/lib-commonjs/types/DataPoint.js.map +1 -0
- package/lib-commonjs/types/EventAnnotation.js +6 -0
- package/lib-commonjs/types/EventAnnotation.js.map +1 -0
- package/lib-commonjs/types/LegendDataItem.js +4 -0
- package/lib-commonjs/types/LegendDataItem.js.map +1 -0
- package/lib-commonjs/types/index.js +7 -0
- package/lib-commonjs/types/index.js.map +1 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js +75 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
- package/lib-commonjs/utilities/KeyCodes.js +18 -0
- package/lib-commonjs/utilities/KeyCodes.js.map +1 -0
- package/lib-commonjs/utilities/SVGTooltipText.js +148 -0
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -0
- package/lib-commonjs/utilities/async-utils.js +382 -0
- package/lib-commonjs/utilities/async-utils.js.map +1 -0
- package/lib-commonjs/utilities/colors.js +270 -0
- package/lib-commonjs/utilities/colors.js.map +1 -0
- package/lib-commonjs/utilities/getWindow.js +28 -0
- package/lib-commonjs/utilities/getWindow.js.map +1 -0
- package/lib-commonjs/utilities/index.js +8 -0
- package/lib-commonjs/utilities/index.js.map +1 -0
- package/lib-commonjs/utilities/locale-util.js +25 -0
- package/lib-commonjs/utilities/locale-util.js.map +1 -0
- package/lib-commonjs/utilities/overflow-utils.js +36 -0
- package/lib-commonjs/utilities/overflow-utils.js.map +1 -0
- package/lib-commonjs/utilities/test-data.js +324 -0
- package/lib-commonjs/utilities/test-data.js.map +1 -0
- package/lib-commonjs/utilities/utilities.js +1184 -0
- package/lib-commonjs/utilities/utilities.js.map +1 -0
- package/lib-commonjs/utilities/vbc-utils.js +45 -0
- package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
- package/package.json +80 -71
- package/CHANGELOG.json +0 -50
- package/lib/chart/chart-legend.d.ts +0 -6
- package/lib/chart/chart-legend.js +0 -446
- package/lib/chart/chart-legend.js.map +0 -1
- package/lib/chart/chart-render.d.ts +0 -3
- package/lib/chart/chart-render.js +0 -50
- package/lib/chart/chart-render.js.map +0 -1
- package/lib/chart/chart.d.ts +0 -3
- package/lib/chart/chart.js +0 -11
- package/lib/chart/chart.js.map +0 -1
- package/lib/chart/index.d.ts +0 -1
- package/lib/chart/index.js +0 -2
- package/lib/chart/index.js.map +0 -1
- package/lib/index.d.ts +0 -7
- package/lib/lib/builder.d.ts +0 -82
- package/lib/lib/builder.js +0 -341
- package/lib/lib/builder.js.map +0 -1
- package/lib/lib/datasets.d.ts +0 -99
- package/lib/lib/datasets.js +0 -240
- package/lib/lib/datasets.js.map +0 -1
- package/lib/lib/patterns.d.ts +0 -43
- package/lib/lib/patterns.js +0 -433
- package/lib/lib/patterns.js.map +0 -1
- package/lib/lib/plugins.d.ts +0 -11
- package/lib/lib/plugins.js +0 -403
- package/lib/lib/plugins.js.map +0 -1
- package/lib/lib/settings.d.ts +0 -11
- package/lib/lib/settings.js +0 -342
- package/lib/lib/settings.js.map +0 -1
- package/lib/lib/storybook.d.ts +0 -11
- package/lib/lib/storybook.js +0 -13
- package/lib/lib/storybook.js.map +0 -1
- package/lib/lib/utils.d.ts +0 -34
- package/lib/lib/utils.js +0 -253
- package/lib/lib/utils.js.map +0 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/types.d.ts +0 -94
- package/lib/types/types.js +0 -41
- package/lib/types/types.js.map +0 -1
package/lib/lib/datasets.js
DELETED
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import { ChartTypes, Entity, HighContrastColors, Point, Shapes, } from "../types";
|
|
3
|
-
import { buildPattern } from "./patterns";
|
|
4
|
-
var ChartDataSet = /** @class */ (function (_super) {
|
|
5
|
-
__extends(ChartDataSet, _super);
|
|
6
|
-
function ChartDataSet(fields) {
|
|
7
|
-
var _this = _super.call(this, fields) || this;
|
|
8
|
-
_this.type = fields.type;
|
|
9
|
-
return _this;
|
|
10
|
-
}
|
|
11
|
-
return ChartDataSet;
|
|
12
|
-
}(Entity));
|
|
13
|
-
export { ChartDataSet };
|
|
14
|
-
var LineDataSetStyle = /** @class */ (function (_super) {
|
|
15
|
-
__extends(LineDataSetStyle, _super);
|
|
16
|
-
function LineDataSetStyle(fields) {
|
|
17
|
-
var _this = _super.call(this, fields) || this;
|
|
18
|
-
_this.type = ChartTypes.Line;
|
|
19
|
-
_this.backgroundColor = fields.backgroundColor || "transparent";
|
|
20
|
-
_this.borderCapStyle = fields.borderCapStyle || "round";
|
|
21
|
-
_this.borderJoinStyle = fields.borderJoinStyle || "round";
|
|
22
|
-
_this.borderWidth = fields.borderWidth || 2;
|
|
23
|
-
_this.hoverBackgroundColor = fields.hoverBackgroundColor || "transparent";
|
|
24
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 2.5;
|
|
25
|
-
_this.pointBorderWidth = fields.hoverBorderWidth || 0;
|
|
26
|
-
_this.pointHoverBorderWidth = fields.pointHoverBorderWidth || 0;
|
|
27
|
-
_this.pointHoverRadius = fields.pointHoverRadius || 2.5;
|
|
28
|
-
_this.pointRadius = fields.pointRadius || 2;
|
|
29
|
-
_this.pointStyle = fields.pointStyle || "circle";
|
|
30
|
-
_this.borderColor = fields.borderColor || fields.color || "rgba(0,0,0,.1)";
|
|
31
|
-
_this.hoverBorderColor =
|
|
32
|
-
fields.hoverBorderColor || fields.color || "rgba(0,0,0,.1)";
|
|
33
|
-
_this.pointBorderColor =
|
|
34
|
-
fields.pointBorderColor || fields.color || "rgba(0,0,0,.1)";
|
|
35
|
-
_this.pointBackgroundColor =
|
|
36
|
-
fields.pointBackgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
37
|
-
_this.pointHoverBackgroundColor =
|
|
38
|
-
fields.pointHoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
39
|
-
_this.pointHoverBorderColor =
|
|
40
|
-
fields.pointHoverBorderColor || fields.color || "rgba(0,0,0,.1)";
|
|
41
|
-
return _this;
|
|
42
|
-
}
|
|
43
|
-
return LineDataSetStyle;
|
|
44
|
-
}(ChartDataSet));
|
|
45
|
-
export { LineDataSetStyle };
|
|
46
|
-
var LineDataSetHCStyle = /** @class */ (function (_super) {
|
|
47
|
-
__extends(LineDataSetHCStyle, _super);
|
|
48
|
-
function LineDataSetHCStyle(fields) {
|
|
49
|
-
var _this = _super.call(this, fields) || this;
|
|
50
|
-
_this.borderColor = HighContrastColors.Foreground;
|
|
51
|
-
_this.hoverBorderColor = HighContrastColors.Active;
|
|
52
|
-
_this.pointBorderColor = HighContrastColors.Foreground;
|
|
53
|
-
_this.pointBackgroundColor = HighContrastColors.Foreground;
|
|
54
|
-
_this.pointHoverBackgroundColor = HighContrastColors.Foreground;
|
|
55
|
-
_this.pointHoverBorderColor = HighContrastColors.Foreground;
|
|
56
|
-
_this.hoverBorderWidth = 4;
|
|
57
|
-
_this.pointRadius = 4;
|
|
58
|
-
_this.pointHoverRadius = 4;
|
|
59
|
-
_this.borderDash = fields.borderDash || [];
|
|
60
|
-
_this.pointStyle = fields.pointStyle || Point.Circle;
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
return LineDataSetHCStyle;
|
|
64
|
-
}(LineDataSetStyle));
|
|
65
|
-
export { LineDataSetHCStyle };
|
|
66
|
-
var LineStackedDataSetStyle = /** @class */ (function (_super) {
|
|
67
|
-
__extends(LineStackedDataSetStyle, _super);
|
|
68
|
-
function LineStackedDataSetStyle(fields) {
|
|
69
|
-
var _this = _super.call(this, fields) || this;
|
|
70
|
-
_this.backgroundColor =
|
|
71
|
-
fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
72
|
-
_this.hoverBackgroundColor =
|
|
73
|
-
fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
74
|
-
_this.borderWidth = fields.borderWidth || 1;
|
|
75
|
-
_this.borderColor = fields.borderColor || "#ffffff";
|
|
76
|
-
_this.pointRadius = fields.pointRadius || 0;
|
|
77
|
-
_this.pointHoverBackgroundColor =
|
|
78
|
-
fields.pointHoverBackgroundColor || "#ffffff";
|
|
79
|
-
_this.pointHoverRadius = fields.pointHoverRadius || 3;
|
|
80
|
-
_this.pointHoverBorderWidth = fields.pointHoverBorderWidth || 2;
|
|
81
|
-
return _this;
|
|
82
|
-
}
|
|
83
|
-
return LineStackedDataSetStyle;
|
|
84
|
-
}(LineDataSetStyle));
|
|
85
|
-
export { LineStackedDataSetStyle };
|
|
86
|
-
var LineStackedDataSetHCStyle = /** @class */ (function (_super) {
|
|
87
|
-
__extends(LineStackedDataSetHCStyle, _super);
|
|
88
|
-
function LineStackedDataSetHCStyle(fields) {
|
|
89
|
-
var _this = _super.call(this, fields) || this;
|
|
90
|
-
_this.pattern = fields.pattern || {
|
|
91
|
-
shape: Shapes.Square,
|
|
92
|
-
size: 10,
|
|
93
|
-
};
|
|
94
|
-
_this.backgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, _this.pattern));
|
|
95
|
-
_this.hoverBackgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, _this.pattern));
|
|
96
|
-
_this.borderColor = HighContrastColors.Foreground;
|
|
97
|
-
_this.hoverBorderColor = HighContrastColors.Active;
|
|
98
|
-
_this.borderWidth = fields.borderWidth || 3;
|
|
99
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 4;
|
|
100
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 5;
|
|
101
|
-
_this.pointHoverRadius = fields.pointHoverRadius || 5;
|
|
102
|
-
return _this;
|
|
103
|
-
}
|
|
104
|
-
return LineStackedDataSetHCStyle;
|
|
105
|
-
}(LineStackedDataSetStyle));
|
|
106
|
-
export { LineStackedDataSetHCStyle };
|
|
107
|
-
var BarDataSetStyle = /** @class */ (function (_super) {
|
|
108
|
-
__extends(BarDataSetStyle, _super);
|
|
109
|
-
function BarDataSetStyle(fields) {
|
|
110
|
-
var _this = _super.call(this, fields) || this;
|
|
111
|
-
_this.borderWidth = fields.borderWidth || 0;
|
|
112
|
-
_this.backgroundColor =
|
|
113
|
-
fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
114
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 0;
|
|
115
|
-
_this.hoverBackgroundColor =
|
|
116
|
-
fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
117
|
-
_this.borderSkipped = fields.borderSkipped || false;
|
|
118
|
-
_this.type = ChartTypes.Bar;
|
|
119
|
-
return _this;
|
|
120
|
-
}
|
|
121
|
-
return BarDataSetStyle;
|
|
122
|
-
}(ChartDataSet));
|
|
123
|
-
export { BarDataSetStyle };
|
|
124
|
-
var PieDataSetStyle = /** @class */ (function (_super) {
|
|
125
|
-
__extends(PieDataSetStyle, _super);
|
|
126
|
-
function PieDataSetStyle(fields) {
|
|
127
|
-
var _this = _super.call(this, fields) || this;
|
|
128
|
-
_this.type = ChartTypes.Pie;
|
|
129
|
-
_this.borderWidth = fields.borderWidth || 2;
|
|
130
|
-
_this.borderColor = fields.borderColor || "#fff";
|
|
131
|
-
_this.hoverBorderColor = fields.hoverBorderColor || "#fff";
|
|
132
|
-
_this.backgroundColor =
|
|
133
|
-
fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
134
|
-
_this.hoverBackgroundColor =
|
|
135
|
-
fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
136
|
-
_this.borderSkipped = fields.borderSkipped || false;
|
|
137
|
-
return _this;
|
|
138
|
-
}
|
|
139
|
-
return PieDataSetStyle;
|
|
140
|
-
}(ChartDataSet));
|
|
141
|
-
export { PieDataSetStyle };
|
|
142
|
-
var DoughnutDataSetStyle = /** @class */ (function (_super) {
|
|
143
|
-
__extends(DoughnutDataSetStyle, _super);
|
|
144
|
-
function DoughnutDataSetStyle(fields) {
|
|
145
|
-
var _this = _super.call(this, fields) || this;
|
|
146
|
-
_this.type = ChartTypes.Doughnut;
|
|
147
|
-
return _this;
|
|
148
|
-
}
|
|
149
|
-
return DoughnutDataSetStyle;
|
|
150
|
-
}(PieDataSetStyle));
|
|
151
|
-
export { DoughnutDataSetStyle };
|
|
152
|
-
var HorizontalBarDataSetStyle = /** @class */ (function (_super) {
|
|
153
|
-
__extends(HorizontalBarDataSetStyle, _super);
|
|
154
|
-
function HorizontalBarDataSetStyle(fields) {
|
|
155
|
-
var _this = _super.call(this, fields) || this;
|
|
156
|
-
_this.type = ChartTypes.HorizontalBar;
|
|
157
|
-
_this.borderWidth = fields.borderWidth || 0;
|
|
158
|
-
_this.barPercentage = fields.barPercentage || 0.5;
|
|
159
|
-
_this.backgroundColor =
|
|
160
|
-
fields.backgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
161
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 0;
|
|
162
|
-
_this.hoverBackgroundColor =
|
|
163
|
-
fields.hoverBackgroundColor || fields.color || "rgba(0,0,0,.1)";
|
|
164
|
-
_this.borderSkipped = fields.borderSkipped || false;
|
|
165
|
-
return _this;
|
|
166
|
-
}
|
|
167
|
-
return HorizontalBarDataSetStyle;
|
|
168
|
-
}(ChartDataSet));
|
|
169
|
-
export { HorizontalBarDataSetStyle };
|
|
170
|
-
var HorizontalBarDataSetHCStyle = /** @class */ (function (_super) {
|
|
171
|
-
__extends(HorizontalBarDataSetHCStyle, _super);
|
|
172
|
-
function HorizontalBarDataSetHCStyle(fields) {
|
|
173
|
-
var _this = _super.call(this, fields) || this;
|
|
174
|
-
_this.pattern = fields.pattern || {
|
|
175
|
-
shape: Shapes.Square,
|
|
176
|
-
size: 10,
|
|
177
|
-
};
|
|
178
|
-
_this.backgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, _this.pattern));
|
|
179
|
-
_this.hoverBackgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, _this.pattern));
|
|
180
|
-
_this.borderWidth = fields.borderWidth || 1;
|
|
181
|
-
_this.borderColor = HighContrastColors.Foreground;
|
|
182
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 3;
|
|
183
|
-
_this.hoverBorderColor = HighContrastColors.Active;
|
|
184
|
-
return _this;
|
|
185
|
-
}
|
|
186
|
-
return HorizontalBarDataSetHCStyle;
|
|
187
|
-
}(HorizontalBarDataSetStyle));
|
|
188
|
-
export { HorizontalBarDataSetHCStyle };
|
|
189
|
-
var PieDataSetHCStyle = /** @class */ (function (_super) {
|
|
190
|
-
__extends(PieDataSetHCStyle, _super);
|
|
191
|
-
function PieDataSetHCStyle(fields) {
|
|
192
|
-
var _this = _super.call(this, fields) || this;
|
|
193
|
-
_this.pattern = fields.pattern || [
|
|
194
|
-
{
|
|
195
|
-
shape: Shapes.Square,
|
|
196
|
-
size: 10,
|
|
197
|
-
},
|
|
198
|
-
];
|
|
199
|
-
_this.borderWidth = fields.borderWidth || 3;
|
|
200
|
-
_this.borderColor = HighContrastColors.Foreground;
|
|
201
|
-
_this.hoverBorderColor = HighContrastColors.Active;
|
|
202
|
-
_this.backgroundColor = Array.from(fields.pattern, function (pat) {
|
|
203
|
-
return buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, pat));
|
|
204
|
-
});
|
|
205
|
-
_this.hoverBackgroundColor = Array.from(fields.pattern, function (pat) {
|
|
206
|
-
return buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, pat));
|
|
207
|
-
});
|
|
208
|
-
return _this;
|
|
209
|
-
}
|
|
210
|
-
return PieDataSetHCStyle;
|
|
211
|
-
}(PieDataSetStyle));
|
|
212
|
-
export { PieDataSetHCStyle };
|
|
213
|
-
var DoughnutDataSetHCStyle = /** @class */ (function (_super) {
|
|
214
|
-
__extends(DoughnutDataSetHCStyle, _super);
|
|
215
|
-
function DoughnutDataSetHCStyle(fields) {
|
|
216
|
-
return _super.call(this, fields) || this;
|
|
217
|
-
}
|
|
218
|
-
return DoughnutDataSetHCStyle;
|
|
219
|
-
}(PieDataSetHCStyle));
|
|
220
|
-
export { DoughnutDataSetHCStyle };
|
|
221
|
-
var BarDataSetHCStyle = /** @class */ (function (_super) {
|
|
222
|
-
__extends(BarDataSetHCStyle, _super);
|
|
223
|
-
function BarDataSetHCStyle(fields) {
|
|
224
|
-
var _this = _super.call(this, fields) || this;
|
|
225
|
-
_this.pattern = fields.pattern || {
|
|
226
|
-
shape: Shapes.Square,
|
|
227
|
-
size: 10,
|
|
228
|
-
};
|
|
229
|
-
_this.backgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Foreground }, _this.pattern));
|
|
230
|
-
_this.hoverBackgroundColor = buildPattern(__assign({ backgroundColor: HighContrastColors.Background, patternColor: HighContrastColors.Active }, _this.pattern));
|
|
231
|
-
_this.borderWidth = fields.borderWidth || 1;
|
|
232
|
-
_this.borderColor = HighContrastColors.Foreground;
|
|
233
|
-
_this.hoverBorderWidth = fields.hoverBorderWidth || 3;
|
|
234
|
-
_this.hoverBorderColor = HighContrastColors.Active;
|
|
235
|
-
return _this;
|
|
236
|
-
}
|
|
237
|
-
return BarDataSetHCStyle;
|
|
238
|
-
}(BarDataSetStyle));
|
|
239
|
-
export { BarDataSetHCStyle };
|
|
240
|
-
//# sourceMappingURL=datasets.js.map
|
package/lib/lib/datasets.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../src/lib/datasets.ts"],"names":[],"mappings":";AAQA,OAAO,EACL,UAAU,EACV,MAAM,EACN,kBAAkB,EAElB,KAAK,EACL,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;IAAkC,gCAAM;IAGtC,sBAAY,MAA6B;QAAzC,YACE,kBAAM,MAAM,CAAC,SAGd;QADC,KAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;;IAC1B,CAAC;IACH,mBAAC;AAAD,CAAC,AARD,CAAkC,MAAM,GAQvC;;AACD;IAAsC,oCAAY;IA4BhD,0BAAY,MAAiC;QAA7C,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D,KAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,IAAI,CAAC,CAAC;QACrD,KAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,MAAM,CAAC;;IACpD,CAAC;IACH,wBAAC;AAAD,CAAC,AA1BD,CAAuC,eAAe,GA0BrD"}
|
package/lib/lib/patterns.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Entity, Shapes } from "../types";
|
|
2
|
-
export declare const Patterns: {
|
|
3
|
-
Square: {
|
|
4
|
-
shape: Shapes;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
Diagonal: {
|
|
8
|
-
shape: Shapes;
|
|
9
|
-
size: number;
|
|
10
|
-
};
|
|
11
|
-
Diagonal2: {
|
|
12
|
-
shape: Shapes;
|
|
13
|
-
size: number;
|
|
14
|
-
};
|
|
15
|
-
Grid: {
|
|
16
|
-
shape: Shapes;
|
|
17
|
-
size: number;
|
|
18
|
-
};
|
|
19
|
-
Grid2: {
|
|
20
|
-
shape: Shapes;
|
|
21
|
-
size: number;
|
|
22
|
-
};
|
|
23
|
-
Line: {
|
|
24
|
-
shape: Shapes;
|
|
25
|
-
size: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare class Shape extends Entity {
|
|
29
|
-
canvas?: HTMLCanvasElement;
|
|
30
|
-
context?: CanvasRenderingContext2D | null;
|
|
31
|
-
size: number;
|
|
32
|
-
backgroundColor: string;
|
|
33
|
-
patternColor: string;
|
|
34
|
-
constructor(fields: Partial<Shape>);
|
|
35
|
-
setStrokeProps(): void;
|
|
36
|
-
setFillProps(): void;
|
|
37
|
-
}
|
|
38
|
-
export declare function buildPattern({ shape, backgroundColor, patternColor, size, }: {
|
|
39
|
-
shape: Shapes;
|
|
40
|
-
size: number;
|
|
41
|
-
backgroundColor: string;
|
|
42
|
-
patternColor: string;
|
|
43
|
-
}): CanvasPattern | null;
|