@fluentui/react-charts 1.2.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 +177 -15
- 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 -72
- package/CHANGELOG.json +0 -65
- package/lib/chart/chart-legend.d.ts +0 -6
- package/lib/chart/chart-legend.js +0 -445
- 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 -10
- 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 -89
- package/lib/lib/builder.js +0 -379
- package/lib/lib/builder.js.map +0 -1
- package/lib/lib/datasets.d.ts +0 -123
- package/lib/lib/datasets.js +0 -285
- 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 -12
- package/lib/lib/settings.js +0 -368
- 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 -101
- package/lib/types/types.js +0 -41
- package/lib/types/types.js.map +0 -1
package/lib/lib/patterns.js
DELETED
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { __extends } from "tslib";
|
|
3
|
-
import { Entity, Shapes } from "../types";
|
|
4
|
-
var BACKGROUND_COLOR = "transparent";
|
|
5
|
-
var PATTERN_COLOR = "rgba(0, 0, 0, 0.8)";
|
|
6
|
-
var POINT_STYLE = "round";
|
|
7
|
-
var SIZE = 20;
|
|
8
|
-
export var Patterns = {
|
|
9
|
-
Square: {
|
|
10
|
-
shape: Shapes.Square,
|
|
11
|
-
size: 10,
|
|
12
|
-
},
|
|
13
|
-
Diagonal: {
|
|
14
|
-
shape: Shapes.DiagonalRightLeft,
|
|
15
|
-
size: 5,
|
|
16
|
-
},
|
|
17
|
-
Diagonal2: {
|
|
18
|
-
shape: Shapes.Diagonal,
|
|
19
|
-
size: 5,
|
|
20
|
-
},
|
|
21
|
-
Grid: {
|
|
22
|
-
shape: Shapes.Grid,
|
|
23
|
-
size: 10,
|
|
24
|
-
},
|
|
25
|
-
Grid2: {
|
|
26
|
-
shape: Shapes.GridRightLeft,
|
|
27
|
-
size: 3,
|
|
28
|
-
},
|
|
29
|
-
Line: {
|
|
30
|
-
shape: Shapes.VerticalLine,
|
|
31
|
-
size: 10,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
// export const legendLabels = ({
|
|
35
|
-
// canvasRef,
|
|
36
|
-
// theme,
|
|
37
|
-
// colorScheme,
|
|
38
|
-
// dataPointColor,
|
|
39
|
-
// index,
|
|
40
|
-
// patterns,
|
|
41
|
-
// }: {
|
|
42
|
-
// canvasRef: HTMLCanvasElement;
|
|
43
|
-
// theme: ChartTheme;
|
|
44
|
-
// colorScheme: any;
|
|
45
|
-
// dataPointColor: string;
|
|
46
|
-
// index: number;
|
|
47
|
-
// patterns?: IChartPatterns;
|
|
48
|
-
// }) => {
|
|
49
|
-
// if (!canvasRef) return;
|
|
50
|
-
// const ctx: any = canvasRef.getContext("2d");
|
|
51
|
-
// ctx.save();
|
|
52
|
-
// if (!ctx) return;
|
|
53
|
-
// if (theme === ChartTheme.HighContrast) {
|
|
54
|
-
// if (patterns) {
|
|
55
|
-
// ctx.setTransform(1.4, 0, 0, 1, 0, 0);
|
|
56
|
-
// ctx.scale(12, 10);
|
|
57
|
-
// (ctx.fillStyle as any) = buildPattern({
|
|
58
|
-
// ...patterns(colorScheme)[index],
|
|
59
|
-
// backgroundColor: colorScheme.default.background,
|
|
60
|
-
// patternColor: colorScheme.brand.background,
|
|
61
|
-
// });
|
|
62
|
-
// ctx.fillRect(-15, -15, canvasRef.width, canvasRef.height);
|
|
63
|
-
// ctx.restore();
|
|
64
|
-
// } else {
|
|
65
|
-
// ctx.scale(15, 15);
|
|
66
|
-
// ctx.fillStyle = colorScheme.brand.shadow;
|
|
67
|
-
// ctx.fillRect(-15, -15, canvasRef.width, canvasRef.height);
|
|
68
|
-
// ctx.fillStyle = colorScheme.default.foreground3;
|
|
69
|
-
// switch (lineChartPatterns[index].pointStyle) {
|
|
70
|
-
// case PointStyles.Triangle:
|
|
71
|
-
// ctx.moveTo(9.5, 2.5);
|
|
72
|
-
// ctx.lineTo(5.5, 7.5);
|
|
73
|
-
// ctx.lineTo(13.5, 7.5);
|
|
74
|
-
// break;
|
|
75
|
-
// case PointStyles.Rectangle:
|
|
76
|
-
// ctx.rect(6.5, 2.5, 8, 5);
|
|
77
|
-
// break;
|
|
78
|
-
// case PointStyles.RectangleRotated:
|
|
79
|
-
// ctx.moveTo(10, 2);
|
|
80
|
-
// ctx.lineTo(14.5, 5);
|
|
81
|
-
// ctx.lineTo(10, 8);
|
|
82
|
-
// ctx.lineTo(5.5, 5);
|
|
83
|
-
// break;
|
|
84
|
-
// case PointStyles.Circle:
|
|
85
|
-
// default:
|
|
86
|
-
// ctx.ellipse(10, 5, 3.5, 2.5, 0, 0, 2 * Math.PI);
|
|
87
|
-
// break;
|
|
88
|
-
// }
|
|
89
|
-
// ctx.fill();
|
|
90
|
-
// // Line Style
|
|
91
|
-
// ctx.strokeStyle = colorScheme.default.foreground3;
|
|
92
|
-
// ctx.beginPath();
|
|
93
|
-
// ctx.setLineDash(
|
|
94
|
-
// lineChartPatterns[index].lineBorderDash.length ? [2, 2] : []
|
|
95
|
-
// );
|
|
96
|
-
// ctx.moveTo(-1.5, 5);
|
|
97
|
-
// ctx.lineTo(20, 5);
|
|
98
|
-
// ctx.stroke();
|
|
99
|
-
// ctx.restore();
|
|
100
|
-
// }
|
|
101
|
-
// } else {
|
|
102
|
-
// ctx.fillStyle = dataPointColor;
|
|
103
|
-
// ctx.fillRect(0, 0, canvasRef.width, canvasRef.height);
|
|
104
|
-
// }
|
|
105
|
-
// };
|
|
106
|
-
// export const chartLineStackedDataPointPatterns: IChartPatterns = (
|
|
107
|
-
// colorScheme: any
|
|
108
|
-
// ) => {
|
|
109
|
-
// return [
|
|
110
|
-
// {
|
|
111
|
-
// shapeType: Shapes.Square,
|
|
112
|
-
// size: 10,
|
|
113
|
-
// },
|
|
114
|
-
// {
|
|
115
|
-
// shapeType: Shapes.DiagonalRightLeft,
|
|
116
|
-
// size: 5,
|
|
117
|
-
// },
|
|
118
|
-
// {
|
|
119
|
-
// shapeType: Shapes.Grid,
|
|
120
|
-
// size: 10,
|
|
121
|
-
// },
|
|
122
|
-
// {
|
|
123
|
-
// shapeType: Shapes.VerticalLine,
|
|
124
|
-
// size: 10,
|
|
125
|
-
// },
|
|
126
|
-
// {
|
|
127
|
-
// shapeType: Shapes.GridRightLeft,
|
|
128
|
-
// size: 3,
|
|
129
|
-
// },
|
|
130
|
-
// {
|
|
131
|
-
// shapeType: Shapes.Diagonal,
|
|
132
|
-
// size: 5,
|
|
133
|
-
// },
|
|
134
|
-
// ];
|
|
135
|
-
// };
|
|
136
|
-
// export const chartBarDataPointPatterns: IChartPatterns = (colorScheme: any) => {
|
|
137
|
-
// return [
|
|
138
|
-
// {
|
|
139
|
-
// shapeType: Shapes.DiagonalRightLeft,
|
|
140
|
-
// size: 5,
|
|
141
|
-
// },
|
|
142
|
-
// {
|
|
143
|
-
// shapeType: Shapes.Square,
|
|
144
|
-
// size: 10,
|
|
145
|
-
// },
|
|
146
|
-
// {
|
|
147
|
-
// shapeType: Shapes.Diagonal,
|
|
148
|
-
// size: 5,
|
|
149
|
-
// },
|
|
150
|
-
// {
|
|
151
|
-
// shapeType: Shapes.Grid,
|
|
152
|
-
// size: 10,
|
|
153
|
-
// },
|
|
154
|
-
// {
|
|
155
|
-
// shapeType: Shapes.GridRightLeft,
|
|
156
|
-
// size: 3,
|
|
157
|
-
// },
|
|
158
|
-
// {
|
|
159
|
-
// shapeType: Shapes.VerticalLine,
|
|
160
|
-
// size: 7,
|
|
161
|
-
// },
|
|
162
|
-
// ];
|
|
163
|
-
// };
|
|
164
|
-
// export const chartBubbleDataPointPatterns: IChartPatterns = (
|
|
165
|
-
// colorScheme: any
|
|
166
|
-
// ) => {
|
|
167
|
-
// return [
|
|
168
|
-
// {
|
|
169
|
-
// shapeType: Shapes.DiagonalRightLeft,
|
|
170
|
-
// size: 5,
|
|
171
|
-
// },
|
|
172
|
-
// {
|
|
173
|
-
// shapeType: Shapes.Square,
|
|
174
|
-
// size: 10,
|
|
175
|
-
// },
|
|
176
|
-
// {
|
|
177
|
-
// shapeType: Shapes.Diagonal,
|
|
178
|
-
// size: 5,
|
|
179
|
-
// },
|
|
180
|
-
// {
|
|
181
|
-
// shapeType: Shapes.Grid,
|
|
182
|
-
// size: 10,
|
|
183
|
-
// },
|
|
184
|
-
// {
|
|
185
|
-
// shapeType: Shapes.GridRightLeft,
|
|
186
|
-
// size: 3,
|
|
187
|
-
// },
|
|
188
|
-
// {
|
|
189
|
-
// shapeType: Shapes.VerticalLine,
|
|
190
|
-
// size: 7,
|
|
191
|
-
// },
|
|
192
|
-
// ];
|
|
193
|
-
// };
|
|
194
|
-
var Shape = /** @class */ (function (_super) {
|
|
195
|
-
__extends(Shape, _super);
|
|
196
|
-
function Shape(fields) {
|
|
197
|
-
var _this = _super.call(this, fields) || this;
|
|
198
|
-
_this.size = SIZE;
|
|
199
|
-
_this.backgroundColor = BACKGROUND_COLOR;
|
|
200
|
-
_this.patternColor = PATTERN_COLOR;
|
|
201
|
-
if (fields.size) {
|
|
202
|
-
_this.size = fields.size;
|
|
203
|
-
}
|
|
204
|
-
if (fields.backgroundColor) {
|
|
205
|
-
_this.backgroundColor = fields.backgroundColor;
|
|
206
|
-
}
|
|
207
|
-
if (fields.patternColor) {
|
|
208
|
-
_this.patternColor = fields.patternColor;
|
|
209
|
-
}
|
|
210
|
-
_this.canvas = document.createElement("canvas");
|
|
211
|
-
_this.context = _this.canvas.getContext("2d");
|
|
212
|
-
_this.canvas.width = _this.size;
|
|
213
|
-
_this.canvas.height = _this.size;
|
|
214
|
-
if (_this.context) {
|
|
215
|
-
_this.context.fillStyle = _this.backgroundColor;
|
|
216
|
-
_this.context.fillRect(0, 0, _this.canvas.width, _this.canvas.height);
|
|
217
|
-
}
|
|
218
|
-
return _this;
|
|
219
|
-
}
|
|
220
|
-
Shape.prototype.setStrokeProps = function () {
|
|
221
|
-
if (this.context) {
|
|
222
|
-
this.context.strokeStyle = this.patternColor;
|
|
223
|
-
this.context.lineWidth = this.size / 10;
|
|
224
|
-
this.context.lineJoin = POINT_STYLE;
|
|
225
|
-
this.context.lineCap = POINT_STYLE;
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
Shape.prototype.setFillProps = function () {
|
|
229
|
-
if (this.context) {
|
|
230
|
-
this.context.fillStyle = this.patternColor;
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
return Shape;
|
|
234
|
-
}(Entity));
|
|
235
|
-
export { Shape };
|
|
236
|
-
var Square = /** @class */ (function (_super) {
|
|
237
|
-
__extends(Square, _super);
|
|
238
|
-
function Square() {
|
|
239
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
240
|
-
}
|
|
241
|
-
Square.prototype.drawTile = function () {
|
|
242
|
-
var halfSize = this.size / 2;
|
|
243
|
-
if (this.context) {
|
|
244
|
-
this.context.beginPath();
|
|
245
|
-
this.setFillProps();
|
|
246
|
-
this.drawSquare();
|
|
247
|
-
this.drawSquare(halfSize, halfSize);
|
|
248
|
-
this.context.fill();
|
|
249
|
-
}
|
|
250
|
-
return this.canvas;
|
|
251
|
-
};
|
|
252
|
-
Square.prototype.drawSquare = function (offsetX, offsetY) {
|
|
253
|
-
if (offsetX === void 0) { offsetX = 0; }
|
|
254
|
-
if (offsetY === void 0) { offsetY = 0; }
|
|
255
|
-
var halfSize = this.size / 2;
|
|
256
|
-
var gap = this.size / 5;
|
|
257
|
-
this.context.fillRect(offsetX + gap, offsetY + gap, halfSize - gap * 2, halfSize - gap * 2);
|
|
258
|
-
this.context.closePath();
|
|
259
|
-
};
|
|
260
|
-
return Square;
|
|
261
|
-
}(Shape));
|
|
262
|
-
var Diagonal = /** @class */ (function (_super) {
|
|
263
|
-
__extends(Diagonal, _super);
|
|
264
|
-
function Diagonal() {
|
|
265
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
266
|
-
}
|
|
267
|
-
Diagonal.prototype.drawTile = function () {
|
|
268
|
-
var halfSize = this.size / 2;
|
|
269
|
-
if (this.context) {
|
|
270
|
-
this.context.beginPath();
|
|
271
|
-
this.setStrokeProps();
|
|
272
|
-
this.drawDiagonalLine();
|
|
273
|
-
this.drawDiagonalLine(halfSize, halfSize);
|
|
274
|
-
this.context.stroke();
|
|
275
|
-
return this.canvas;
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
Diagonal.prototype.drawDiagonalLine = function (offsetX, offsetY) {
|
|
279
|
-
if (offsetX === void 0) { offsetX = 0; }
|
|
280
|
-
if (offsetY === void 0) { offsetY = 0; }
|
|
281
|
-
var size = this.size;
|
|
282
|
-
var halfSize = size / 2;
|
|
283
|
-
var gap = 1;
|
|
284
|
-
if (this.context) {
|
|
285
|
-
this.context.moveTo(halfSize - gap - offsetX, gap * -1 + offsetY);
|
|
286
|
-
this.context.lineTo(size + 1 - offsetX, halfSize + 1 + offsetY);
|
|
287
|
-
this.context.closePath();
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
return Diagonal;
|
|
291
|
-
}(Shape));
|
|
292
|
-
var DiagonalRightLeft = /** @class */ (function (_super) {
|
|
293
|
-
__extends(DiagonalRightLeft, _super);
|
|
294
|
-
function DiagonalRightLeft() {
|
|
295
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
296
|
-
}
|
|
297
|
-
DiagonalRightLeft.prototype.drawTile = function () {
|
|
298
|
-
if (this.context) {
|
|
299
|
-
this.context.translate(this.size, 0);
|
|
300
|
-
this.context.rotate((90 * Math.PI) / 180);
|
|
301
|
-
Diagonal.prototype.drawTile.call(this);
|
|
302
|
-
return this.canvas;
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
return DiagonalRightLeft;
|
|
306
|
-
}(Diagonal));
|
|
307
|
-
var Grid = /** @class */ (function (_super) {
|
|
308
|
-
__extends(Grid, _super);
|
|
309
|
-
function Grid() {
|
|
310
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
311
|
-
}
|
|
312
|
-
Grid.prototype.drawTile = function () {
|
|
313
|
-
var halfSize = this.size / 2;
|
|
314
|
-
if (this.context) {
|
|
315
|
-
this.context.beginPath();
|
|
316
|
-
this.setStrokeProps();
|
|
317
|
-
// this.drawDiagonalLine();
|
|
318
|
-
// this.drawDiagonalLine(halfSize, halfSize);
|
|
319
|
-
this.drawOpositeDiagonalLine();
|
|
320
|
-
this.drawOpositeDiagonalLine(halfSize, halfSize);
|
|
321
|
-
this.context.stroke();
|
|
322
|
-
}
|
|
323
|
-
return this.canvas;
|
|
324
|
-
};
|
|
325
|
-
Grid.prototype.drawDiagonalLine = function (offsetX, offsetY) {
|
|
326
|
-
if (offsetX === void 0) { offsetX = 0; }
|
|
327
|
-
if (offsetY === void 0) { offsetY = 0; }
|
|
328
|
-
var size = this.size;
|
|
329
|
-
var halfSize = size / 2;
|
|
330
|
-
var gap = 1;
|
|
331
|
-
if (this.context) {
|
|
332
|
-
this.context.moveTo(halfSize - gap - offsetX, gap * -1 + offsetY);
|
|
333
|
-
this.context.lineTo(size + 1 - offsetX, halfSize + 1 + offsetY);
|
|
334
|
-
this.context.closePath();
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
Grid.prototype.drawOpositeDiagonalLine = function (offsetX, offsetY) {
|
|
338
|
-
if (offsetX === void 0) { offsetX = 0; }
|
|
339
|
-
if (offsetY === void 0) { offsetY = 0; }
|
|
340
|
-
var size = this.size;
|
|
341
|
-
var halfSize = size / 2;
|
|
342
|
-
var gap = 1;
|
|
343
|
-
if (this.context) {
|
|
344
|
-
this.context.moveTo(halfSize - gap + offsetX, gap * -1 - offsetY);
|
|
345
|
-
this.context.lineTo(size + 1 + offsetX, halfSize + 1 - offsetY);
|
|
346
|
-
this.context.closePath();
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
return Grid;
|
|
350
|
-
}(Shape));
|
|
351
|
-
var Line = /** @class */ (function (_super) {
|
|
352
|
-
__extends(Line, _super);
|
|
353
|
-
function Line() {
|
|
354
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
355
|
-
}
|
|
356
|
-
Line.prototype.drawTile = function () {
|
|
357
|
-
if (this.context) {
|
|
358
|
-
var halfSize = this.size / 2;
|
|
359
|
-
this.context.beginPath();
|
|
360
|
-
this.setStrokeProps();
|
|
361
|
-
this.drawLine();
|
|
362
|
-
this.drawLine(halfSize, halfSize);
|
|
363
|
-
this.context.stroke();
|
|
364
|
-
return this.canvas;
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
Line.prototype.drawLine = function (offsetX, offsetY) {
|
|
368
|
-
if (offsetX === void 0) { offsetX = 0; }
|
|
369
|
-
if (offsetY === void 0) { offsetY = 0; }
|
|
370
|
-
if (this.context) {
|
|
371
|
-
var size = this.size;
|
|
372
|
-
var quarterSize = size / 4;
|
|
373
|
-
this.context.moveTo(0, quarterSize + offsetY);
|
|
374
|
-
this.context.lineTo(this.size, quarterSize + offsetY);
|
|
375
|
-
this.context.closePath();
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
return Line;
|
|
379
|
-
}(Shape));
|
|
380
|
-
var VerticalLine = /** @class */ (function (_super) {
|
|
381
|
-
__extends(VerticalLine, _super);
|
|
382
|
-
function VerticalLine() {
|
|
383
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
384
|
-
}
|
|
385
|
-
VerticalLine.prototype.drawTile = function () {
|
|
386
|
-
if (this.context) {
|
|
387
|
-
this.context.translate(this.size, 0);
|
|
388
|
-
this.context.rotate((90 * Math.PI) / 180);
|
|
389
|
-
Line.prototype.drawTile.call(this);
|
|
390
|
-
return this.canvas;
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
return VerticalLine;
|
|
394
|
-
}(Line));
|
|
395
|
-
var GridRightLeft = /** @class */ (function (_super) {
|
|
396
|
-
__extends(GridRightLeft, _super);
|
|
397
|
-
function GridRightLeft() {
|
|
398
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
399
|
-
}
|
|
400
|
-
GridRightLeft.prototype.drawTile = function () {
|
|
401
|
-
if (this.context) {
|
|
402
|
-
this.context.translate(this.size, 0);
|
|
403
|
-
this.context.rotate((90 * Math.PI) / 180);
|
|
404
|
-
Grid.prototype.drawTile.call(this);
|
|
405
|
-
return this.canvas;
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
return GridRightLeft;
|
|
409
|
-
}(Grid));
|
|
410
|
-
var shapes = (_a = {},
|
|
411
|
-
_a[Shapes.Square] = Square,
|
|
412
|
-
_a[Shapes.DiagonalRightLeft] = DiagonalRightLeft,
|
|
413
|
-
_a[Shapes.Grid] = Grid,
|
|
414
|
-
_a[Shapes.Diagonal] = Diagonal,
|
|
415
|
-
_a[Shapes.VerticalLine] = VerticalLine,
|
|
416
|
-
_a[Shapes.GridRightLeft] = GridRightLeft,
|
|
417
|
-
_a);
|
|
418
|
-
export function buildPattern(_a) {
|
|
419
|
-
var shape = _a.shape, backgroundColor = _a.backgroundColor, patternColor = _a.patternColor, size = _a.size;
|
|
420
|
-
var patternCanvas = document.createElement("canvas");
|
|
421
|
-
var patternContext = patternCanvas.getContext("2d");
|
|
422
|
-
var outerSize = size * 2;
|
|
423
|
-
var Shape = shapes[shape];
|
|
424
|
-
var _shape = new Shape({ size: size, backgroundColor: backgroundColor, patternColor: patternColor });
|
|
425
|
-
var pattern = patternContext.createPattern(_shape.drawTile(), "repeat");
|
|
426
|
-
patternCanvas.width = outerSize;
|
|
427
|
-
patternCanvas.height = outerSize;
|
|
428
|
-
if (pattern) {
|
|
429
|
-
pattern.shape = shape;
|
|
430
|
-
}
|
|
431
|
-
return pattern;
|
|
432
|
-
}
|
|
433
|
-
//# sourceMappingURL=patterns.js.map
|
package/lib/lib/patterns.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../src/lib/patterns.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,UAAU,CAAC;AAE1D,IAAM,gBAAgB,GAAG,aAAa,CAAC;AACvC,IAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,IAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,IAAM,IAAI,GAAG,EAAE,CAAC;AAEhB,MAAM,CAAC,IAAM,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,IAAI,EAAE,EAAE;KACT;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC,iBAAiB;QAC/B,IAAI,EAAE,CAAC;KACR;IACD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC,QAAQ;QACtB,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC,IAAI;QAClB,IAAI,EAAE,EAAE;KACT;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC,aAAa;QAC3B,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC,YAAY;QAC1B,IAAI,EAAE,EAAE;KACT;CACF,CAAC;AAEF,iCAAiC;AACjC,eAAe;AACf,WAAW;AACX,iBAAiB;AACjB,oBAAoB;AACpB,WAAW;AACX,cAAc;AACd,OAAO;AACP,kCAAkC;AAClC,uBAAuB;AACvB,sBAAsB;AACtB,4BAA4B;AAC5B,mBAAmB;AACnB,+BAA+B;AAC/B,UAAU;AACV,4BAA4B;AAC5B,iDAAiD;AACjD,gBAAgB;AAChB,sBAAsB;AACtB,6CAA6C;AAC7C,sBAAsB;AACtB,8CAA8C;AAC9C,2BAA2B;AAC3B,gDAAgD;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BAAA,EACZ,IAAI,UAAA;IAOJ,IAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAM,cAAc,GAAG,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtD,IAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC;IAE3B,IAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,IAAM,MAAM,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,MAAA,EAAE,eAAe,iBAAA,EAAE,YAAY,cAAA,EAAE,CAAC,CAAC;IAElE,IAAM,OAAO,GAAyB,cAAe,CAAC,aAAa,CACjE,MAAM,CAAC,QAAQ,EAAG,EAClB,QAAQ,CACT,CAAC;IAEF,aAAa,CAAC,KAAK,GAAG,SAAS,CAAC;IAChC,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC;IAEjC,IAAI,OAAO,EAAE;QACV,OAAe,CAAC,KAAK,GAAG,KAAK,CAAC;KAChC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/lib/lib/plugins.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const gradientPlugin: (chartInstance: Chart) => void;
|
|
2
|
-
export declare const highLightDataOnHover: (chartInstance: any) => void;
|
|
3
|
-
export declare const keyboardAccessibility: (chart: Chart) => void;
|
|
4
|
-
export declare const axisXTeamsStyle: ({ config, ctx }: Chart) => void;
|
|
5
|
-
export declare const removeAllListeners: (chartInstance: Chart) => void;
|
|
6
|
-
/**
|
|
7
|
-
* Required review
|
|
8
|
-
*/
|
|
9
|
-
export declare const tooltipAxisXLine: ({ chart, ctx, tooltip }: any) => void;
|
|
10
|
-
export declare const horizontalBarValue: ({ chart, ctx, config }: any) => void;
|
|
11
|
-
export declare const horizontalBarAxisYLabels: (chartInstance: Chart) => void;
|