@oliasoft-open-source/charts-library 5.9.0-beta-5 → 5.9.0-beta-7
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/index.d.ts +973 -1
- package/dist/index.js +2561 -1077
- package/package.json +14 -27
- package/dist/assets/Color-6BZIO3FS-DdowJmIE.js +0 -1
- package/dist/assets/DocsRenderer-LL677BLK-Bh3SSh9b.js +0 -41
- package/dist/assets/WithTooltip-65CFNBJE-jPKxajlJ.js +0 -9
- package/dist/assets/bar-chart-const-BupPLp8f.js +0 -1
- package/dist/assets/bar-chart.stories-BflbVUPC.js +0 -138
- package/dist/assets/chunk-242VQQM5-By-lqKqL.js +0 -1
- package/dist/assets/chunk-CYSK6WYR-BpIZnq_i.js +0 -1
- package/dist/assets/chunk-YKABRMAI-DEtioWGg.js +0 -18
- package/dist/assets/components-CVnPnJrM.js +0 -92
- package/dist/assets/formatter-EIJCOSYU-CFg7KAGQ.js +0 -1
- package/dist/assets/get-custom-legend-plugin-example-Bo7hTtyz.js +0 -1
- package/dist/assets/get-draggableData-7QedQGoF.js +0 -2
- package/dist/assets/iframe-gWDSyY5r.js +0 -1228
- package/dist/assets/legend-RH4DOORv.js +0 -314
- package/dist/assets/legend-context-BhFJ15-e.js +0 -10
- package/dist/assets/line-chart-8HLWYRar.js +0 -1
- package/dist/assets/line-chart.stories-B8gghA-c.js +0 -1211
- package/dist/assets/line-chart.test-case.stories-D3lffJw3.js +0 -1749
- package/dist/assets/noto-sans-cyrillic-400-italic-CMQj_TQM.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-400-italic-Dm4hr-Ag.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-400-normal-BDYvNhAR.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-400-normal-CHP_ranX.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-Cmu_Qrsl.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-D3UOC7d4.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-D8UNalU-.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-DYZmzPmX.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-italic-C9NI8UaU.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-italic-DqW_YkPk.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-normal-BjDhGU6t.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-normal-d9FrwbiD.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-B0vIy3Bn.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-MYAGlKQw.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-D83T7awq.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-OK-fZO_i.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-italic-BpEXw0fu.woff +0 -0
- package/dist/assets/noto-sans-devanagari-400-italic-aza5nvbj.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-normal-C3FccbrF.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-normal-g9fsM2jL.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-B7b0Qocp.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-DQbbFiZ1.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-CT12sGlc.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-DVs0dmkg.woff2 +0 -0
- package/dist/assets/noto-sans-greek-400-italic-Cw158ua2.woff2 +0 -0
- package/dist/assets/noto-sans-greek-400-italic-Ds3lC5jm.woff +0 -0
- package/dist/assets/noto-sans-greek-400-normal-Be2BcUUc.woff +0 -0
- package/dist/assets/noto-sans-greek-400-normal-DCESwnT1.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-italic-DiFf_pN5.woff +0 -0
- package/dist/assets/noto-sans-greek-700-italic-Wr-Zu-Te.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-normal-DDNJsN3F.woff +0 -0
- package/dist/assets/noto-sans-greek-700-normal-x3kNWF-0.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-400-italic-D9i0Od8_.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-400-italic-DlxXzGt2.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-400-normal-L11LEhi4.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-400-normal-i2oSBwXz.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-BWtLoNYq.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-D1odJgaI.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-BOmIwFkq.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-Dq1WA5-1.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-italic-4m5KtZ19.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-italic-D8X3Awh8.woff +0 -0
- package/dist/assets/noto-sans-latin-400-normal-BTkUljjl.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-normal-DPpKfCgK.woff +0 -0
- package/dist/assets/noto-sans-latin-700-italic-CSXnTKie.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-italic-Dye4NHQ1.woff +0 -0
- package/dist/assets/noto-sans-latin-700-normal-CrvTEWhy.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-normal-ZyrKABVF.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-italic-BXXaecLH.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-400-italic-C3uzHanu.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-normal-CNh9dRW_.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-normal-CVf-LbaS.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-ClDAM8zy.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-DvsrmUw0.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-BypTtJma.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-CgsG9aVh.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-italic-Dotu2pZp.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-400-italic-da8J1rYs.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-normal-C3Al4sv4.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-normal-D2wP-Vm-.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-CKIaFk_d.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-CfCpOr03.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-1GL2JyGE.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-DayJ0F-f.woff2 +0 -0
- package/dist/assets/pie-chart.stories-CQ6148pO.js +0 -45
- package/dist/assets/preload-helper-Bhb7V-Yo.js +0 -1
- package/dist/assets/react-18-DZdrvSyo.js +0 -1
- package/dist/assets/react-DrmbVkNb.js +0 -1
- package/dist/assets/react-dom-CUqZc1lH.js +0 -8
- package/dist/assets/scatter-chart.stories-BmCRLBrB.js +0 -41
- package/dist/assets/syntaxhighlighter-ED5Y7EFY-CirqknGz.js +0 -6
- package/dist/assets/theming-BqNSGASu.js +0 -39
- package/dist/bar-chart/bar-chart-const.d.ts +0 -2
- package/dist/bar-chart/bar-chart-default-props.d.ts +0 -2
- package/dist/bar-chart/bar-chart.d.ts +0 -3
- package/dist/bar-chart/bar-chart.interface.d.ts +0 -96
- package/dist/bar-chart/utils/get-bar-chart-data-labels.d.ts +0 -10
- package/dist/bar-chart/utils/get-bar-chart-scales.d.ts +0 -3
- package/dist/bar-chart/utils/get-bar-chart-tooltips.d.ts +0 -6
- package/dist/bar-chart/utils/use-bar-chart-config.d.ts +0 -13
- package/dist/bar-chart/utils/use-bar-chart-options.d.ts +0 -55
- package/dist/common/common.interface.d.ts +0 -227
- package/dist/common/controls-portal.d.ts +0 -7
- package/dist/common/enums.d.ts +0 -10
- package/dist/common/helpers/add-transparency/add-transparency.d.ts +0 -1
- package/dist/common/helpers/callout-helpers/callout-helpers.d.ts +0 -7
- package/dist/common/helpers/chart-border-plugin.d.ts +0 -16
- package/dist/common/helpers/chart-consts.d.ts +0 -39
- package/dist/common/helpers/chart-utils.d.ts +0 -86
- package/dist/common/helpers/container.d.ts +0 -18
- package/dist/common/helpers/custom-format-number.d.ts +0 -1
- package/dist/common/helpers/download-pgn.d.ts +0 -3
- package/dist/common/helpers/enums.d.ts +0 -81
- package/dist/common/helpers/get-chart-annotation.d.ts +0 -136
- package/dist/common/helpers/get-chart-from-ctx.d.ts +0 -1
- package/dist/common/helpers/get-custom-legend-plugin-example.d.ts +0 -8
- package/dist/common/helpers/get-draggableData.d.ts +0 -18
- package/dist/common/helpers/get-grouped-color-scheme/get-grouped-color-scheme.d.ts +0 -1
- package/dist/common/helpers/range/estimate-data-series-have-close-values.d.ts +0 -8
- package/dist/common/helpers/range/range.d.ts +0 -33
- package/dist/common/helpers/text.d.ts +0 -1
- package/dist/common/helpers/to-annotation.d.ts +0 -4
- package/dist/common/hooks/use-generated-labels.d.ts +0 -4
- package/dist/common/hooks/use-legend-state.d.ts +0 -28
- package/dist/common/hooks/use-legend.d.ts +0 -4
- package/dist/common/hooks/use-reset.d.ts +0 -3
- package/dist/common/hooks/use-update-annotations.d.ts +0 -4
- package/dist/common/legend-component/legend-dropzone.d.ts +0 -3
- package/dist/common/legend-component/legend-interface.d.ts +0 -48
- package/dist/common/legend-component/legend-item/LegendItemLine.d.ts +0 -5
- package/dist/common/legend-component/legend-item/legend-item.d.ts +0 -3
- package/dist/common/legend-component/legend-panel.d.ts +0 -3
- package/dist/common/legend-component/legend.d.ts +0 -3
- package/dist/common/legend-component/state/legend-action-types.d.ts +0 -3
- package/dist/common/legend-component/state/legend-context.d.ts +0 -14
- package/dist/common/legend-component/state/legend-state-reducer.d.ts +0 -30
- package/dist/common/legend-component/utils/create-style-object.d.ts +0 -27
- package/dist/common/legend-component/utils/get-generated-labels.d.ts +0 -2
- package/dist/common/plugins/annotation-dragger-plugin/annotation-dragger-plugin.d.ts +0 -15
- package/dist/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +0 -7
- package/dist/common/plugins/annotation-dragger-plugin/enums.d.ts +0 -21
- package/dist/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +0 -6
- package/dist/common/plugins/annotation-dragger-plugin/helpers.d.ts +0 -53
- package/dist/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +0 -5
- package/dist/common/plugins/ellipsis-annotation-plugin/compute-ellipse-geometry.d.ts +0 -9
- package/dist/common/plugins/ellipsis-annotation-plugin/ellipsis-annotation-plugin.d.ts +0 -18
- package/dist/common/plugins/gradient-background-plugin/enums.d.ts +0 -10
- package/dist/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +0 -2
- package/dist/favicon-wrapper.svg +0 -46
- package/dist/favicon.svg +0 -1
- package/dist/iframe.html +0 -705
- package/dist/index.html +0 -144
- package/dist/index.json +0 -1
- package/dist/line-chart/constants/default-translations.d.ts +0 -25
- package/dist/line-chart/constants/line-chart-consts.d.ts +0 -13
- package/dist/line-chart/controls/axes-options/axes-options-interfaces.d.ts +0 -57
- package/dist/line-chart/controls/axes-options/axes-options.d.ts +0 -6
- package/dist/line-chart/controls/axes-options/axes-validation.d.ts +0 -8
- package/dist/line-chart/controls/controls-interfaces.d.ts +0 -20
- package/dist/line-chart/controls/controls.d.ts +0 -3
- package/dist/line-chart/controls/drag-options-interfaces.d.ts +0 -14
- package/dist/line-chart/controls/drag-options.d.ts +0 -23
- package/dist/line-chart/controls/line-options.d.ts +0 -19
- package/dist/line-chart/hooks/use-chart-functions.d.ts +0 -33
- package/dist/line-chart/hooks/use-chart-options.d.ts +0 -19
- package/dist/line-chart/hooks/use-chart-plugins.d.ts +0 -7
- package/dist/line-chart/hooks/use-chart-state.d.ts +0 -12
- package/dist/line-chart/hooks/use-toggle-handler.d.ts +0 -12
- package/dist/line-chart/initialize/config.d.ts +0 -12
- package/dist/line-chart/initialize/initialize-line-chart.d.ts +0 -12
- package/dist/line-chart/line-chart-get-default-props.d.ts +0 -2
- package/dist/line-chart/line-chart.d.ts +0 -3
- package/dist/line-chart/line-chart.interface.d.ts +0 -150
- package/dist/line-chart/plugins/callout-plugin/callout-plugin.d.ts +0 -11
- package/dist/line-chart/plugins/callout-plugin/helpers.d.ts +0 -37
- package/dist/line-chart/plugins/chart-area-text-plugin.d.ts +0 -17
- package/dist/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +0 -8
- package/dist/line-chart/plugins/plugin-constants.d.ts +0 -11
- package/dist/line-chart/plugins/plugins.interface.d.ts +0 -9
- package/dist/line-chart/plugins/vertical-markers-plugin/draw.d.ts +0 -24
- package/dist/line-chart/plugins/vertical-markers-plugin/types.d.ts +0 -42
- package/dist/line-chart/plugins/vertical-markers-plugin/utils.d.ts +0 -23
- package/dist/line-chart/plugins/vertical-markers-plugin/vertical-markers-plugin.d.ts +0 -54
- package/dist/line-chart/state/action-types.d.ts +0 -12
- package/dist/line-chart/state/helpers.d.ts +0 -13
- package/dist/line-chart/state/initial-state.d.ts +0 -11
- package/dist/line-chart/state/line-chart-reducer.d.ts +0 -2
- package/dist/line-chart/state/manage-state-in-local-storage.d.ts +0 -15
- package/dist/line-chart/state/state.interfaces.d.ts +0 -26
- package/dist/line-chart/utils/axis-formatting/axis-formatting.d.ts +0 -2
- package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +0 -9
- package/dist/line-chart/utils/check-custom-option/check-custom-option.d.ts +0 -12
- package/dist/line-chart/utils/datalabels-alignment/datalabels-alignment.interface.d.ts +0 -20
- package/dist/line-chart/utils/datalabels-alignment/get-alignment-condition.d.ts +0 -8
- package/dist/line-chart/utils/datalabels-alignment/get-alignment-data.d.ts +0 -11
- package/dist/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +0 -6
- package/dist/line-chart/utils/enums.d.ts +0 -4
- package/dist/line-chart/utils/generate-line-chart-datasets.d.ts +0 -8
- package/dist/line-chart/utils/get-annotations-data.d.ts +0 -1
- package/dist/line-chart/utils/get-axes-data-from-metasets.d.ts +0 -1
- package/dist/line-chart/utils/get-axes-ranges-from-chart.d.ts +0 -9
- package/dist/line-chart/utils/get-axis-range-by-type.d.ts +0 -10
- package/dist/line-chart/utils/get-generated-labels.d.ts +0 -2
- package/dist/line-chart/utils/get-line-chart-data-labels.d.ts +0 -16
- package/dist/line-chart/utils/get-line-chart-scales.d.ts +0 -4
- package/dist/line-chart/utils/get-line-chart-tooltips.d.ts +0 -30
- package/dist/line-chart/utils/line-chart-utils.d.ts +0 -24
- package/dist/line-chart/utils/translations/get-translations.d.ts +0 -8
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/pie-chart/pie-chart-defalut-props.interface.d.ts +0 -50
- package/dist/pie-chart/pie-chart-get-default-props.d.ts +0 -3
- package/dist/pie-chart/pie-chart.d.ts +0 -3
- package/dist/pie-chart/pie-chart.interface.d.ts +0 -70
- package/dist/pie-chart/use-pie-chart-config.d.ts +0 -42
- package/dist/project.json +0 -1
- package/dist/sb-addons/docs-2/manager-bundle.js +0 -3
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
- package/dist/sb-addons/themes-1/manager-bundle.js +0 -3
- package/dist/sb-common-assets/favicon-wrapper.svg +0 -46
- package/dist/sb-common-assets/favicon.svg +0 -1
- package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/sb-manager/globals-runtime.js +0 -77947
- package/dist/sb-manager/globals.js +0 -24
- package/dist/sb-manager/manager-stores.js +0 -23
- package/dist/sb-manager/runtime.js +0 -20422
- package/dist/scatter-chart/hooks/use-scatter-chart-config.d.ts +0 -113
- package/dist/scatter-chart/scatter-chart-default-props.interface.d.ts +0 -71
- package/dist/scatter-chart/scatter-chart-get-default-props.d.ts +0 -3
- package/dist/scatter-chart/scatter-chart.d.ts +0 -3
- package/dist/scatter-chart/scatter-chart.interface.d.ts +0 -81
- package/dist/scatter-chart/utils/get-scales-config.d.ts +0 -49
- package/dist/scatter-chart/utils/get-tooltip-config.d.ts +0 -21
- package/dist/src/components/bar-chart/bar-chart-const.d.ts +0 -2
- package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +0 -2
- package/dist/src/components/bar-chart/bar-chart.d.ts +0 -3
- package/dist/src/components/bar-chart/bar-chart.interface.d.ts +0 -96
- package/dist/src/components/bar-chart/utils/get-bar-chart-data-labels.d.ts +0 -10
- package/dist/src/components/bar-chart/utils/get-bar-chart-scales.d.ts +0 -3
- package/dist/src/components/bar-chart/utils/get-bar-chart-tooltips.d.ts +0 -6
- package/dist/src/components/bar-chart/utils/use-bar-chart-config.d.ts +0 -13
- package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +0 -55
- package/dist/src/components/common/common.interface.d.ts +0 -227
- package/dist/src/components/common/controls-portal.d.ts +0 -7
- package/dist/src/components/common/enums.d.ts +0 -10
- package/dist/src/components/common/helpers/add-transparency/add-transparency.d.ts +0 -1
- package/dist/src/components/common/helpers/callout-helpers/callout-helpers.d.ts +0 -7
- package/dist/src/components/common/helpers/chart-border-plugin.d.ts +0 -16
- package/dist/src/components/common/helpers/chart-consts.d.ts +0 -39
- package/dist/src/components/common/helpers/chart-utils.d.ts +0 -86
- package/dist/src/components/common/helpers/container.d.ts +0 -18
- package/dist/src/components/common/helpers/custom-format-number.d.ts +0 -1
- package/dist/src/components/common/helpers/download-pgn.d.ts +0 -3
- package/dist/src/components/common/helpers/enums.d.ts +0 -81
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +0 -136
- package/dist/src/components/common/helpers/get-chart-from-ctx.d.ts +0 -1
- package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +0 -8
- package/dist/src/components/common/helpers/get-draggableData.d.ts +0 -18
- package/dist/src/components/common/helpers/get-grouped-color-scheme/get-grouped-color-scheme.d.ts +0 -1
- package/dist/src/components/common/helpers/range/estimate-data-series-have-close-values.d.ts +0 -8
- package/dist/src/components/common/helpers/range/range.d.ts +0 -33
- package/dist/src/components/common/helpers/text.d.ts +0 -1
- package/dist/src/components/common/helpers/to-annotation.d.ts +0 -4
- package/dist/src/components/common/hooks/use-generated-labels.d.ts +0 -4
- package/dist/src/components/common/hooks/use-legend-state.d.ts +0 -28
- package/dist/src/components/common/hooks/use-legend.d.ts +0 -4
- package/dist/src/components/common/hooks/use-reset.d.ts +0 -3
- package/dist/src/components/common/hooks/use-update-annotations.d.ts +0 -4
- package/dist/src/components/common/legend-component/legend-dropzone.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend-interface.d.ts +0 -48
- package/dist/src/components/common/legend-component/legend-item/LegendItemLine.d.ts +0 -5
- package/dist/src/components/common/legend-component/legend-item/legend-item.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend-panel.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend.d.ts +0 -3
- package/dist/src/components/common/legend-component/state/legend-action-types.d.ts +0 -3
- package/dist/src/components/common/legend-component/state/legend-context.d.ts +0 -14
- package/dist/src/components/common/legend-component/state/legend-state-reducer.d.ts +0 -30
- package/dist/src/components/common/legend-component/utils/create-style-object.d.ts +0 -27
- package/dist/src/components/common/legend-component/utils/get-generated-labels.d.ts +0 -2
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-dragger-plugin.d.ts +0 -15
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +0 -7
- package/dist/src/components/common/plugins/annotation-dragger-plugin/enums.d.ts +0 -21
- package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +0 -6
- package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.d.ts +0 -53
- package/dist/src/components/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +0 -5
- package/dist/src/components/common/plugins/ellipsis-annotation-plugin/compute-ellipse-geometry.d.ts +0 -9
- package/dist/src/components/common/plugins/ellipsis-annotation-plugin/ellipsis-annotation-plugin.d.ts +0 -18
- package/dist/src/components/common/plugins/gradient-background-plugin/enums.d.ts +0 -10
- package/dist/src/components/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +0 -2
- package/dist/src/components/line-chart/constants/default-translations.d.ts +0 -25
- package/dist/src/components/line-chart/constants/line-chart-consts.d.ts +0 -13
- package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +0 -57
- package/dist/src/components/line-chart/controls/axes-options/axes-options.d.ts +0 -6
- package/dist/src/components/line-chart/controls/axes-options/axes-validation.d.ts +0 -8
- package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +0 -20
- package/dist/src/components/line-chart/controls/controls.d.ts +0 -3
- package/dist/src/components/line-chart/controls/drag-options-interfaces.d.ts +0 -14
- package/dist/src/components/line-chart/controls/drag-options.d.ts +0 -23
- package/dist/src/components/line-chart/controls/line-options.d.ts +0 -19
- package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +0 -33
- package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +0 -19
- package/dist/src/components/line-chart/hooks/use-chart-plugins.d.ts +0 -7
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +0 -12
- package/dist/src/components/line-chart/hooks/use-toggle-handler.d.ts +0 -12
- package/dist/src/components/line-chart/initialize/config.d.ts +0 -12
- package/dist/src/components/line-chart/initialize/initialize-line-chart.d.ts +0 -12
- package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +0 -2
- package/dist/src/components/line-chart/line-chart.d.ts +0 -3
- package/dist/src/components/line-chart/line-chart.interface.d.ts +0 -150
- package/dist/src/components/line-chart/plugins/callout-plugin/callout-plugin.d.ts +0 -11
- package/dist/src/components/line-chart/plugins/callout-plugin/helpers.d.ts +0 -37
- package/dist/src/components/line-chart/plugins/chart-area-text-plugin.d.ts +0 -17
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +0 -8
- package/dist/src/components/line-chart/plugins/plugin-constants.d.ts +0 -11
- package/dist/src/components/line-chart/plugins/plugins.interface.d.ts +0 -9
- package/dist/src/components/line-chart/plugins/vertical-markers-plugin/draw.d.ts +0 -24
- package/dist/src/components/line-chart/plugins/vertical-markers-plugin/types.d.ts +0 -42
- package/dist/src/components/line-chart/plugins/vertical-markers-plugin/utils.d.ts +0 -23
- package/dist/src/components/line-chart/plugins/vertical-markers-plugin/vertical-markers-plugin.d.ts +0 -54
- package/dist/src/components/line-chart/state/action-types.d.ts +0 -12
- package/dist/src/components/line-chart/state/helpers.d.ts +0 -13
- package/dist/src/components/line-chart/state/initial-state.d.ts +0 -11
- package/dist/src/components/line-chart/state/line-chart-reducer.d.ts +0 -2
- package/dist/src/components/line-chart/state/manage-state-in-local-storage.d.ts +0 -15
- package/dist/src/components/line-chart/state/state.interfaces.d.ts +0 -26
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.d.ts +0 -2
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +0 -9
- package/dist/src/components/line-chart/utils/check-custom-option/check-custom-option.d.ts +0 -12
- package/dist/src/components/line-chart/utils/datalabels-alignment/datalabels-alignment.interface.d.ts +0 -20
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-condition.d.ts +0 -8
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-data.d.ts +0 -11
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +0 -6
- package/dist/src/components/line-chart/utils/enums.d.ts +0 -4
- package/dist/src/components/line-chart/utils/generate-line-chart-datasets.d.ts +0 -8
- package/dist/src/components/line-chart/utils/get-annotations-data.d.ts +0 -1
- package/dist/src/components/line-chart/utils/get-axes-data-from-metasets.d.ts +0 -1
- package/dist/src/components/line-chart/utils/get-axes-ranges-from-chart.d.ts +0 -9
- package/dist/src/components/line-chart/utils/get-axis-range-by-type.d.ts +0 -10
- package/dist/src/components/line-chart/utils/get-generated-labels.d.ts +0 -2
- package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +0 -16
- package/dist/src/components/line-chart/utils/get-line-chart-scales.d.ts +0 -4
- package/dist/src/components/line-chart/utils/get-line-chart-tooltips.d.ts +0 -30
- package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +0 -24
- package/dist/src/components/line-chart/utils/translations/get-translations.d.ts +0 -8
- package/dist/src/components/pie-chart/pie-chart-defalut-props.interface.d.ts +0 -50
- package/dist/src/components/pie-chart/pie-chart-get-default-props.d.ts +0 -3
- package/dist/src/components/pie-chart/pie-chart.d.ts +0 -3
- package/dist/src/components/pie-chart/pie-chart.interface.d.ts +0 -70
- package/dist/src/components/pie-chart/use-pie-chart-config.d.ts +0 -42
- package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +0 -113
- package/dist/src/components/scatter-chart/scatter-chart-default-props.interface.d.ts +0 -71
- package/dist/src/components/scatter-chart/scatter-chart-get-default-props.d.ts +0 -3
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +0 -3
- package/dist/src/components/scatter-chart/scatter-chart.interface.d.ts +0 -81
- package/dist/src/components/scatter-chart/utils/get-scales-config.d.ts +0 -49
- package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +0 -21
- package/dist/vite-inject-mocker-entry.js +0 -8
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Chart } from 'chart.js';
|
|
2
|
-
import { AnnotationType } from '../plugins/annotation-dragger-plugin/enums';
|
|
3
|
-
import { Position } from './enums';
|
|
4
|
-
import { ICommonAnnotationElement, ICommonAnnotationsData, ICoordinates } from '../common.interface';
|
|
5
|
-
export interface IGetAnnotationsProps {
|
|
6
|
-
showAnnotations: boolean;
|
|
7
|
-
annotationsData: ICommonAnnotationsData[];
|
|
8
|
-
}
|
|
9
|
-
interface TChart extends Chart {
|
|
10
|
-
hoveredAnnotationId?: string | null;
|
|
11
|
-
}
|
|
12
|
-
export declare const generateAnn: (ann: ICommonAnnotationsData, index: number) => {
|
|
13
|
-
display: boolean | undefined;
|
|
14
|
-
annotationIndex: number;
|
|
15
|
-
id: string;
|
|
16
|
-
scaleID: "x" | "y";
|
|
17
|
-
label: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
content: string;
|
|
20
|
-
display: boolean;
|
|
21
|
-
position: Position;
|
|
22
|
-
color?: undefined;
|
|
23
|
-
font?: undefined;
|
|
24
|
-
borderWidth?: undefined;
|
|
25
|
-
padding?: undefined;
|
|
26
|
-
borderRadius?: undefined;
|
|
27
|
-
borderColor?: undefined;
|
|
28
|
-
} | {
|
|
29
|
-
backgroundColor: any;
|
|
30
|
-
content: string;
|
|
31
|
-
display: any;
|
|
32
|
-
position: any;
|
|
33
|
-
color: any;
|
|
34
|
-
font: any;
|
|
35
|
-
borderWidth: number;
|
|
36
|
-
padding: number;
|
|
37
|
-
borderRadius: number;
|
|
38
|
-
borderColor: any;
|
|
39
|
-
} | {
|
|
40
|
-
position: {
|
|
41
|
-
x: string;
|
|
42
|
-
y: string;
|
|
43
|
-
} | undefined;
|
|
44
|
-
content: string;
|
|
45
|
-
display: boolean;
|
|
46
|
-
font: {
|
|
47
|
-
weight: string;
|
|
48
|
-
};
|
|
49
|
-
backgroundColor?: undefined;
|
|
50
|
-
color?: undefined;
|
|
51
|
-
borderWidth?: undefined;
|
|
52
|
-
padding?: undefined;
|
|
53
|
-
borderRadius?: undefined;
|
|
54
|
-
borderColor?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
position: {
|
|
57
|
-
x: string;
|
|
58
|
-
y: string;
|
|
59
|
-
} | undefined;
|
|
60
|
-
content: string;
|
|
61
|
-
display: boolean;
|
|
62
|
-
font: {
|
|
63
|
-
weight: string;
|
|
64
|
-
};
|
|
65
|
-
backgroundColor?: undefined;
|
|
66
|
-
color?: undefined;
|
|
67
|
-
borderWidth?: undefined;
|
|
68
|
-
padding?: undefined;
|
|
69
|
-
borderRadius?: undefined;
|
|
70
|
-
borderColor?: undefined;
|
|
71
|
-
} | {
|
|
72
|
-
position: {
|
|
73
|
-
x: string;
|
|
74
|
-
y: string;
|
|
75
|
-
} | undefined;
|
|
76
|
-
content: string;
|
|
77
|
-
display: boolean;
|
|
78
|
-
font: {
|
|
79
|
-
weight: string;
|
|
80
|
-
};
|
|
81
|
-
backgroundColor?: undefined;
|
|
82
|
-
color?: undefined;
|
|
83
|
-
borderWidth?: undefined;
|
|
84
|
-
padding?: undefined;
|
|
85
|
-
borderRadius?: undefined;
|
|
86
|
-
borderColor?: undefined;
|
|
87
|
-
};
|
|
88
|
-
backgroundColor: string;
|
|
89
|
-
borderColor: string;
|
|
90
|
-
borderWidth: number;
|
|
91
|
-
borderDash: number[] | undefined;
|
|
92
|
-
type: AnnotationType;
|
|
93
|
-
adjustScaleRange: boolean;
|
|
94
|
-
enter: ({ element, }: {
|
|
95
|
-
element: ICommonAnnotationElement;
|
|
96
|
-
}, { chart, }: {
|
|
97
|
-
chart: TChart;
|
|
98
|
-
}) => void;
|
|
99
|
-
leave: ({ element, }: {
|
|
100
|
-
element: ICommonAnnotationElement;
|
|
101
|
-
}, { chart, }: {
|
|
102
|
-
chart: TChart;
|
|
103
|
-
}) => void;
|
|
104
|
-
onDragStart: () => (cord: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
105
|
-
onDrag: () => (cord: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
106
|
-
onDragEnd: () => (cord: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
107
|
-
pointStyle: string;
|
|
108
|
-
resizable: boolean;
|
|
109
|
-
displayDragCoordinates: boolean;
|
|
110
|
-
hideLegend?: boolean;
|
|
111
|
-
labelOffsetPx?: number;
|
|
112
|
-
annotationAxis: "x" | "y";
|
|
113
|
-
rotation: number;
|
|
114
|
-
color: string;
|
|
115
|
-
endValue: number;
|
|
116
|
-
labelConfig?: Record<string, any>;
|
|
117
|
-
value: number;
|
|
118
|
-
xMin: number;
|
|
119
|
-
xMax: number;
|
|
120
|
-
yMin: number;
|
|
121
|
-
yMax: number;
|
|
122
|
-
xValue?: number;
|
|
123
|
-
yValue?: number;
|
|
124
|
-
radius?: number;
|
|
125
|
-
enableDrag?: boolean;
|
|
126
|
-
dragAxis?: import('../plugins/annotation-dragger-plugin/enums').DragAxis;
|
|
127
|
-
dragRange?: {
|
|
128
|
-
x?: [number, number];
|
|
129
|
-
y?: [number, number];
|
|
130
|
-
};
|
|
131
|
-
xScaleID?: string;
|
|
132
|
-
yScaleID?: string;
|
|
133
|
-
opacity?: number;
|
|
134
|
-
};
|
|
135
|
-
export declare const getAnnotation: ({ showAnnotations, annotationsData, }: IGetAnnotationsProps) => any[];
|
|
136
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getChartFromCtx: (ctx: any) => any;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Chart, ChartConfiguration, Plugin } from 'chart.js';
|
|
2
|
-
/**
|
|
3
|
-
* Gets an example custom legend plugin for use in storybook.
|
|
4
|
-
* @param {string} customLegendContainerID - the id of the div container to put the generated legend in
|
|
5
|
-
*/
|
|
6
|
-
export declare const getCustomLegendPlugin: (customLegendContainerID: string) => {
|
|
7
|
-
afterUpdate(chart: Chart, _args: Plugin, _options: ChartConfiguration): void;
|
|
8
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ICommonOptions } from '../common.interface';
|
|
2
|
-
export interface IDraggableDataOptions {
|
|
3
|
-
dragX: boolean;
|
|
4
|
-
dragY: boolean;
|
|
5
|
-
round: boolean;
|
|
6
|
-
showTooltip: boolean;
|
|
7
|
-
onDragStart: () => void;
|
|
8
|
-
onDrag: () => void;
|
|
9
|
-
onDragEnd: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface IDraggableData {
|
|
12
|
-
dragData: IDraggableDataOptions;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @param {ICommonChartOptions} options - line chart options object
|
|
16
|
-
*/
|
|
17
|
-
declare const getDraggableData: (options: ICommonOptions) => IDraggableData | object;
|
|
18
|
-
export default getDraggableData;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getGroupedColorScheme: (length: number, startingColor: string) => string[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TGeneratedLineChartDatasets } from '../../../line-chart/line-chart.interface';
|
|
2
|
-
/**
|
|
3
|
-
* Estimates whether any of the data series has values that are all close together
|
|
4
|
-
* - checks only the first and last values in each series (i.e. assumes they are ordered)
|
|
5
|
-
* - uses an equality check with tolerance for decimal precision noise
|
|
6
|
-
* - this is just an inexpensive "guesstimate" (full min/max detection can be used afterwards)
|
|
7
|
-
*/
|
|
8
|
-
export declare const estimateDataSeriesHaveCloseValues: (generatedDatasets: TGeneratedLineChartDatasets) => boolean;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
interface IGetSuggestedAxisRange {
|
|
2
|
-
data: number[];
|
|
3
|
-
beginAtZero: boolean;
|
|
4
|
-
autoAxisPadding: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Overrides the default chart.js axis range for some edge-cases:
|
|
8
|
-
* - when no data -> default range
|
|
9
|
-
* - when all values are close to zero -> default range
|
|
10
|
-
* - when all values are close to each other -> custom 5% padding
|
|
11
|
-
* - when autoAxisPadding is set -> custom 5% padding
|
|
12
|
-
* - all other cases fall back to chart.js default behaviour
|
|
13
|
-
*
|
|
14
|
-
* `autoAxisPadding` feature requirements:
|
|
15
|
-
* - specified by Truls and ported by Mark+Oleg
|
|
16
|
-
* - numbers that are equal (within tolerance) shall be presented as a straight line
|
|
17
|
-
* - all other data series shall use 90% of width of axis (5% padding each side)
|
|
18
|
-
* - the padding on each side shall be symmetric
|
|
19
|
-
*
|
|
20
|
-
* @param {object} args
|
|
21
|
-
* @param {array<number|null>} args.data
|
|
22
|
-
* @param {boolean} [args.beginAtZero]
|
|
23
|
-
* @param {boolean>} [args.autoAxisPadding]
|
|
24
|
-
* @returns {object} returns {min, max} pair
|
|
25
|
-
*/
|
|
26
|
-
export declare const getSuggestedAxisRange: ({ data, beginAtZero, autoAxisPadding, }: IGetSuggestedAxisRange) => {
|
|
27
|
-
min: number;
|
|
28
|
-
max: number;
|
|
29
|
-
} | {
|
|
30
|
-
min: undefined;
|
|
31
|
-
max: undefined;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getTextWidth: (text: string, font: string) => number | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RefObject } from '../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
|
|
2
|
-
import { Chart } from 'chart.js';
|
|
3
|
-
import { TLegendDatasets } from '../legend-component/legend-interface';
|
|
4
|
-
export declare const useGeneratedLabels: (chartRef: RefObject<Chart>, generatedDatasets: TLegendDatasets) => any[];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { RefObject } from '../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
|
|
2
|
-
import { Chart, LegendItem } from 'chart.js';
|
|
3
|
-
import { UnusedParameter } from '../common.interface';
|
|
4
|
-
export interface IUseLegendStateProps {
|
|
5
|
-
chartRef: RefObject<Chart>;
|
|
6
|
-
options: any;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Custom hook to manage legend state.
|
|
10
|
-
*/
|
|
11
|
-
export declare const useLegendState: ({ chartRef, options }: IUseLegendStateProps) => {
|
|
12
|
-
legendClick: (_: UnusedParameter, legendItem: LegendItem) => void;
|
|
13
|
-
annotation: import('../common.interface').ICommonAnnotationElement[];
|
|
14
|
-
legend: {
|
|
15
|
-
position: any;
|
|
16
|
-
display: boolean | undefined;
|
|
17
|
-
align: "center" | "start" | "end";
|
|
18
|
-
labels: {
|
|
19
|
-
boxHeight: number;
|
|
20
|
-
boxWidth: number | undefined;
|
|
21
|
-
usePointStyle: boolean | undefined;
|
|
22
|
-
};
|
|
23
|
-
onClick: (_: UnusedParameter, legendItem: LegendItem) => void;
|
|
24
|
-
};
|
|
25
|
-
customLegendPlugin: {
|
|
26
|
-
htmlLegend: any;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Dispatch } from '../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
|
|
2
|
-
import { ILegendState } from '../legend-component/state/legend-state-reducer';
|
|
3
|
-
export declare const useReset: (state: ILegendState, dispatch: Dispatch<any>, dependencies: any[]) => void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Dispatch } from '../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
|
|
2
|
-
import { TLegendAction } from '../legend-component/state/legend-state-reducer';
|
|
3
|
-
import { TChartsOption } from '../legend-component/legend-interface';
|
|
4
|
-
export declare const useUpdateAnnotations: (options: TChartsOption, dispatch: Dispatch<TLegendAction>) => void;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { MouseEventHandler, RefObject } from '../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
|
|
2
|
-
import { Chart, ChartArea } from 'chart.js';
|
|
3
|
-
import { IGeneratedScatterChartDataset, TGeneratedScatterChartDatasets, IScatterOptions } from '../../scatter-chart/scatter-chart.interface';
|
|
4
|
-
import { Position } from '../helpers/enums';
|
|
5
|
-
import { IGeneratedLineChartDataset, ILineChartOptions, TGeneratedLineChartDatasets } from '../../line-chart/line-chart.interface';
|
|
6
|
-
import { IBarOptions, IGenerateBarChartDataset, TGenerateBarChartDatasets } from '../../bar-chart/bar-chart.interface';
|
|
7
|
-
import { IGeneratedPieChartDataset, IPieOptions, TGeneratedPieChartDatasets } from '../../pie-chart/pie-chart.interface';
|
|
8
|
-
import { ChartType } from '../enums';
|
|
9
|
-
export interface ILegendDropZone {
|
|
10
|
-
position: Position;
|
|
11
|
-
onDrop: () => void;
|
|
12
|
-
placeholderSize?: {
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface ILegendDropZones {
|
|
18
|
-
chartArea?: ChartArea;
|
|
19
|
-
setLegendPosition: (position: Position) => void;
|
|
20
|
-
isDragging: boolean;
|
|
21
|
-
placeholderSize?: {
|
|
22
|
-
width?: number;
|
|
23
|
-
height?: number;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export type TLegendDataset = IGeneratedLineChartDataset | IGenerateBarChartDataset | IGeneratedPieChartDataset | IGeneratedScatterChartDataset;
|
|
27
|
-
export type TLegendDatasets = TGeneratedLineChartDatasets | TGenerateBarChartDatasets | TGeneratedPieChartDatasets | TGeneratedScatterChartDatasets;
|
|
28
|
-
export type TChartsOption = ILineChartOptions | IBarOptions | IPieOptions | IScatterOptions;
|
|
29
|
-
export interface ILegendItem {
|
|
30
|
-
hidden: boolean;
|
|
31
|
-
dataset: TLegendDataset;
|
|
32
|
-
handleClick: MouseEventHandler<HTMLDivElement>;
|
|
33
|
-
chartType: ChartType;
|
|
34
|
-
index: number;
|
|
35
|
-
}
|
|
36
|
-
export interface ILegendConfig {
|
|
37
|
-
options: TChartsOption;
|
|
38
|
-
generatedDatasets: TLegendDatasets;
|
|
39
|
-
chartType: ChartType;
|
|
40
|
-
}
|
|
41
|
-
export interface ILegend {
|
|
42
|
-
chartRef: RefObject<Chart>;
|
|
43
|
-
legendConfig: ILegendConfig;
|
|
44
|
-
}
|
|
45
|
-
export interface ILegendPanel extends ILegend {
|
|
46
|
-
legendPosition: Position;
|
|
47
|
-
isDragging: boolean;
|
|
48
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IGeneratedLineChartDataset } from '../../../line-chart/line-chart.interface';
|
|
2
|
-
export interface ILineLegendItemProp {
|
|
3
|
-
dataset: IGeneratedLineChartDataset;
|
|
4
|
-
}
|
|
5
|
-
export declare const LegendItemLine: ({ dataset }: Record<string, any>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ILegendPanel } from './legend-interface';
|
|
2
|
-
declare const LegendPanel: import('../../../../node_modules/.pnpm/react@18.3.1/node_modules/react').ForwardRefExoticComponent<ILegendPanel & import('../../../../node_modules/.pnpm/react@18.3.1/node_modules/react').RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export default LegendPanel;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from '../../../../../node_modules/.pnpm/react@18.3.1/node_modules/react';
|
|
2
|
-
import { ILegendState } from './legend-state-reducer';
|
|
3
|
-
import { TChartsOption } from '../legend-interface';
|
|
4
|
-
import { ICommonDataset } from '../../common.interface';
|
|
5
|
-
export declare const LegendContext: React.Context<{
|
|
6
|
-
state: ILegendState;
|
|
7
|
-
dispatch: React.Dispatch<any>;
|
|
8
|
-
} | undefined>;
|
|
9
|
-
export interface ILegendProviderProps {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
options: TChartsOption;
|
|
12
|
-
datasets?: ICommonDataset[];
|
|
13
|
-
}
|
|
14
|
-
export declare const LegendProvider: ({ children, options, datasets, }: ILegendProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Chart } from 'chart.js';
|
|
2
|
-
import { TLegendDataset, TLegendDatasets } from '../legend-interface';
|
|
3
|
-
import { RESET_STATE, SET_ANNOTATION, TOGGLE_DATA_VISIBILITY } from './legend-action-types';
|
|
4
|
-
import { ICommonAnnotationElement, ICommonDataset } from '../../common.interface';
|
|
5
|
-
export interface ILegendState {
|
|
6
|
-
datasets: ICommonDataset[];
|
|
7
|
-
annotation: ICommonAnnotationElement[];
|
|
8
|
-
}
|
|
9
|
-
export type TLegendAction = {
|
|
10
|
-
type: typeof TOGGLE_DATA_VISIBILITY;
|
|
11
|
-
payload: {
|
|
12
|
-
chartInstance: Chart;
|
|
13
|
-
dsConfig: {
|
|
14
|
-
datasetIndex: number;
|
|
15
|
-
dataset: TLegendDataset;
|
|
16
|
-
datasets: TLegendDatasets;
|
|
17
|
-
};
|
|
18
|
-
annotationConfig: {
|
|
19
|
-
annotationIndex: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
} | {
|
|
23
|
-
type: typeof RESET_STATE;
|
|
24
|
-
payload: ILegendState;
|
|
25
|
-
} | {
|
|
26
|
-
type: typeof SET_ANNOTATION;
|
|
27
|
-
payload: ICommonAnnotationElement[];
|
|
28
|
-
};
|
|
29
|
-
export declare const legendInitialState: ILegendState;
|
|
30
|
-
export declare const legendReducer: (state: ILegendState, action: TLegendAction) => ILegendState;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Position } from '../../helpers/enums';
|
|
2
|
-
export declare const LEGEND_MARGIN = 4;
|
|
3
|
-
interface IChartArea {
|
|
4
|
-
top: number;
|
|
5
|
-
left: number;
|
|
6
|
-
bottom: number;
|
|
7
|
-
right: number;
|
|
8
|
-
}
|
|
9
|
-
interface IChart {
|
|
10
|
-
height?: number;
|
|
11
|
-
width?: number;
|
|
12
|
-
chartArea: IChartArea;
|
|
13
|
-
}
|
|
14
|
-
interface ILegendStyle {
|
|
15
|
-
left: number | undefined;
|
|
16
|
-
right: number | undefined;
|
|
17
|
-
top: number | undefined;
|
|
18
|
-
bottom: number | undefined;
|
|
19
|
-
maxHeight: number;
|
|
20
|
-
maxWidth: number;
|
|
21
|
-
margin: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Creates a style object for positioning and sizing the legend panel based on the chart dimensions and legend position.
|
|
25
|
-
*/
|
|
26
|
-
export declare const createLegendStyle: (legendPosition: Position, chart: IChart | null) => ILegendStyle;
|
|
27
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ChartType, Plugin, Scale } from 'chart.js';
|
|
2
|
-
export interface IScales {
|
|
3
|
-
x: Scale;
|
|
4
|
-
y: Scale;
|
|
5
|
-
[key: string]: Scale;
|
|
6
|
-
}
|
|
7
|
-
export interface AnnotationDraggerPluginOptions {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare module 'chart.js' {
|
|
11
|
-
interface PluginOptionsByType<TType extends ChartType> {
|
|
12
|
-
annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export declare const annotationDraggerPlugin: Plugin;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface TStoredAnnotationPosition {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export declare const setAnnotationPosition: (persistenceId: string | undefined, annotationId: string, pos: TStoredAnnotationPosition) => void;
|
|
7
|
-
export declare const getAnnotationPosition: (persistenceId: string | undefined, annotationId: string) => TStoredAnnotationPosition | undefined;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare enum FontStyle {
|
|
2
|
-
DEFAULT = "14px Arial",
|
|
3
|
-
CUSTOM = "16px Arial"
|
|
4
|
-
}
|
|
5
|
-
export declare enum MouseEvents {
|
|
6
|
-
MOUSEDOWN = "mousedown",
|
|
7
|
-
MOUSEMOVE = "mousemove",
|
|
8
|
-
MOUSEUP = "mouseup"
|
|
9
|
-
}
|
|
10
|
-
export declare enum AnnotationType {
|
|
11
|
-
POINT = "point",
|
|
12
|
-
BOX = "box",
|
|
13
|
-
LINE = "line",
|
|
14
|
-
ELLIPSE = "ellipse",
|
|
15
|
-
LABEL = "label"
|
|
16
|
-
}
|
|
17
|
-
export declare enum DragAxis {
|
|
18
|
-
X = "x",
|
|
19
|
-
Y = "y",
|
|
20
|
-
Both = "both"
|
|
21
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Chart } from 'chart.js';
|
|
2
|
-
import { IScales } from './annotation-dragger-plugin';
|
|
3
|
-
import { ICommonAnnotationsData } from '../../common.interface';
|
|
4
|
-
export declare const handleAnnotationMouseDown: (event: MouseEvent, canvas: HTMLCanvasElement, scales: IScales, annotations: Record<string, ICommonAnnotationsData>, setDraggingState: (isDragging: boolean, annotation: ICommonAnnotationsData | null, dragStartX: number, dragStartY: number) => void, hoveredAnnotationId: string | null) => void;
|
|
5
|
-
export declare const handleAnnotationMouseMove: (event: MouseEvent, canvas: HTMLCanvasElement, scales: IScales, isDragging: boolean, activeAnnotation: ICommonAnnotationsData | null, dragStartX: number, dragStartY: number, chart: Chart) => void;
|
|
6
|
-
export declare const handleAnnotationMouseUp: (isDragging: boolean, activeAnnotation: ICommonAnnotationsData | null, chart: Chart, canvas: HTMLCanvasElement, setDraggingState: (isDragging: boolean, annotation: ICommonAnnotationsData | null) => void, persistenceId?: string) => void;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Chart } from 'chart.js';
|
|
2
|
-
import { ICommonAnnotationsData } from '../../common.interface';
|
|
3
|
-
import { IScales } from './annotation-dragger-plugin';
|
|
4
|
-
import { AnnotationType, DragAxis } from './enums';
|
|
5
|
-
export declare const getMousePosition: (event: MouseEvent, canvas: HTMLCanvasElement) => {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const getMousePositionInCoordinates: (event: MouseEvent, canvas: HTMLCanvasElement, scales: IScales, xScaleID: string, yScaleID: string) => {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
};
|
|
13
|
-
export declare const calculateAnnotationMetricsInValues: (annotation: ICommonAnnotationsData) => {
|
|
14
|
-
centerX: number | undefined;
|
|
15
|
-
centerY: number | undefined;
|
|
16
|
-
width: number | undefined;
|
|
17
|
-
height: number | undefined;
|
|
18
|
-
};
|
|
19
|
-
export declare const calculateAnnotationMetricsInValuesInPixels: (annotation: ICommonAnnotationsData, scales: IScales, xScaleID: string, yScaleID: string) => {
|
|
20
|
-
centerX: number | undefined;
|
|
21
|
-
centerY: number | undefined;
|
|
22
|
-
width: number | undefined;
|
|
23
|
-
height: number | undefined;
|
|
24
|
-
};
|
|
25
|
-
export interface IIsWithinChartAreaProps {
|
|
26
|
-
x?: number;
|
|
27
|
-
y?: number;
|
|
28
|
-
chartArea: {
|
|
29
|
-
left: number;
|
|
30
|
-
right: number;
|
|
31
|
-
top: number;
|
|
32
|
-
bottom: number;
|
|
33
|
-
};
|
|
34
|
-
scales: IScales;
|
|
35
|
-
metrics: {
|
|
36
|
-
width?: number;
|
|
37
|
-
height?: number;
|
|
38
|
-
};
|
|
39
|
-
resizable?: boolean;
|
|
40
|
-
dragRange?: {
|
|
41
|
-
x?: [number, number];
|
|
42
|
-
y?: [number, number];
|
|
43
|
-
} | null;
|
|
44
|
-
annotationType: AnnotationType;
|
|
45
|
-
xScaleID: string;
|
|
46
|
-
yScaleID: string;
|
|
47
|
-
}
|
|
48
|
-
export declare const isWithinChartArea: ({ x, y, chartArea, scales, metrics, resizable, dragRange, annotationType, xScaleID, yScaleID, }: IIsWithinChartAreaProps) => boolean;
|
|
49
|
-
export declare const updateAnnotationPositionWithinBounds: (axis: DragAxis, newPosition: number, activeAnnotation: ICommonAnnotationsData, chart: Chart, scales: IScales, xScaleID: string, yScaleID: string, metrics?: {
|
|
50
|
-
width?: number;
|
|
51
|
-
height?: number;
|
|
52
|
-
}) => void;
|
|
53
|
-
export declare const setAnnotationBorderWidth: (chart: Chart, annotationId?: string, borderWidth?: number) => void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IScales } from './annotation-dragger-plugin';
|
|
2
|
-
import { ICommonAnnotationsData } from '../../common.interface';
|
|
3
|
-
export declare const annotationLabel: (ctx: CanvasRenderingContext2D, annotations: Record<string, ICommonAnnotationsData & {
|
|
4
|
-
label: Record<string, any>;
|
|
5
|
-
}>, scales: IScales) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Scale } from 'chart.js';
|
|
2
|
-
import { IEllipsePoints } from './ellipsis-annotation-plugin.ts';
|
|
3
|
-
export declare const computeEllipseGeometry: (ellipsePoints: IEllipsePoints, xScale: Scale, yScale: Scale) => {
|
|
4
|
-
cx: number;
|
|
5
|
-
cy: number;
|
|
6
|
-
radiusX: number;
|
|
7
|
-
radiusY: number;
|
|
8
|
-
angle: number;
|
|
9
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Chart, ChartDataset, ScatterDataPoint } from 'chart.js';
|
|
2
|
-
export interface IPoint {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
export interface IEllipsePoints {
|
|
7
|
-
major: [IPoint, IPoint];
|
|
8
|
-
minor: [IPoint, IPoint];
|
|
9
|
-
}
|
|
10
|
-
export interface ICustomDataPoint extends ScatterDataPoint {
|
|
11
|
-
ellipsePoints?: IEllipsePoints;
|
|
12
|
-
}
|
|
13
|
-
export interface ICustomDataset extends ChartDataset<any, ICustomDataPoint[]> {
|
|
14
|
-
}
|
|
15
|
-
export declare const ellipsisAnnotationPlugin: {
|
|
16
|
-
id: string;
|
|
17
|
-
afterDatasetsDraw(chart: Chart<"scatter">): void;
|
|
18
|
-
};
|