@oliasoft-open-source/charts-library 3.7.1 → 3.7.2
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.
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Dispatch, RefObject } from 'react';
|
|
2
2
|
import { Chart } from 'chart.js';
|
|
3
3
|
import { IState } from '../state/state.interfaces';
|
|
4
|
-
import { ILineChartOptions } from '../line-chart.interface';
|
|
4
|
+
import { ILineChartDataset, ILineChartOptions } from '../line-chart.interface';
|
|
5
5
|
interface IUseChartState {
|
|
6
6
|
chartRef: RefObject<Chart>;
|
|
7
7
|
options: ILineChartOptions;
|
|
8
8
|
state: IState;
|
|
9
9
|
dispatch: Dispatch<any>;
|
|
10
10
|
persistenceId?: string;
|
|
11
|
+
generatedDatasets: ILineChartDataset[];
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Hook for managing the state of the chart.
|
|
@@ -15,9 +16,9 @@ interface IUseChartState {
|
|
|
15
16
|
* @param chartRef - The reference to the chart.
|
|
16
17
|
* @param options - The chart options.
|
|
17
18
|
* @param state - The chart state.
|
|
18
|
-
* @param {Array} generatedDatasets - An array of generated datasets for the chart.
|
|
19
19
|
* @param dispatch - The dispatch function for state management.
|
|
20
20
|
* @param persistenceId - The chart persistenceId.
|
|
21
|
+
* @param {ILineChartDataset[]} generatedDatasets - An array of generated datasets for the chart.
|
|
21
22
|
*/
|
|
22
|
-
export declare const useChartState: ({ chartRef, options, state, dispatch, persistenceId, }: IUseChartState) => void;
|
|
23
|
+
export declare const useChartState: ({ chartRef, options, state, dispatch, persistenceId, generatedDatasets, }: IUseChartState) => void;
|
|
23
24
|
export {};
|
|
@@ -1075,6 +1075,7 @@ export namespace CombiningTypes {
|
|
|
1075
1075
|
export { args_39 as args };
|
|
1076
1076
|
}
|
|
1077
1077
|
export function ExternalSelect(): import("react/jsx-runtime").JSX.Element;
|
|
1078
|
+
export function SetDSDynamically(): import("react/jsx-runtime").JSX.Element;
|
|
1078
1079
|
import { LineChart } from './line-chart';
|
|
1079
1080
|
declare namespace basicChart { }
|
|
1080
1081
|
declare const customLegendContainerID: "custom-legend-container";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
5
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
6
|
"resolutions": {
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"chartjs-plugin-datalabels": "^2.1.0",
|
|
48
48
|
"chartjs-plugin-dragdata": "^2.2.5",
|
|
49
49
|
"chartjs-plugin-zoom": "^2.0.1",
|
|
50
|
+
"fast-deep-equal": "^3.1.3",
|
|
50
51
|
"html-to-image": "^1.11.11",
|
|
51
52
|
"react-base64-downloader": "^2.1.7",
|
|
52
53
|
"react-chartjs-2": "^5.2.0",
|