@oliasoft-open-source/charts-library 5.5.0-beta-4 → 5.5.0-beta-5
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/assets/{Color-AVL7NMMY-DB8voPdP.js → Color-AVL7NMMY-m0fFC0hS.js} +1 -1
- package/dist/assets/{DocsRenderer-PQXLIZUC-CWuZxtoZ.js → DocsRenderer-PQXLIZUC-BhZrnj-x.js} +2 -2
- package/dist/assets/bar-chart.stories-BFArxuxM.js +145 -0
- package/dist/assets/client-SlPkUNtY.js +1 -0
- package/dist/assets/{components-BwNWVdRX.js → components-Bt9IMQSt.js} +1 -1
- package/dist/assets/{get-draggableData-CG9u-xeK.js → get-draggableData-ByrVhmD5.js} +2 -2
- package/dist/assets/{iframe-TRNtfMMN.js → iframe-DW2UQNc3.js} +5 -5
- package/dist/assets/{legend-BO8_aHZh.js → legend-C6YWwRpu.js} +7 -7
- package/dist/assets/{legend-context-Tl0ViHug.js → legend-context-C2Dt3PJx.js} +3 -3
- package/dist/assets/line-chart-CNmqtXk-.js +1 -0
- package/dist/assets/{line-chart.stories-CkbY_fTm.js → line-chart.stories-Cnj5uyTo.js} +1 -1
- package/dist/assets/line-chart.test-case.stories-ClCgTJUJ.js +1545 -0
- package/dist/assets/pie-chart.stories-BVUTCp0_.js +45 -0
- package/dist/assets/{react-18-DVrlKjcp.js → react-18-CFvwF0kt.js} +1 -1
- package/dist/assets/{react-GjZNITzd.js → react-BLWr6Eyx.js} +1 -1
- package/dist/assets/scatter-chart.stories-CZod9JAT.js +41 -0
- package/dist/common/helpers/get-chart-from-ctx.d.ts +1 -0
- package/dist/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +7 -0
- package/dist/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +1 -1
- package/dist/iframe.html +1 -1
- package/dist/index.js +61 -9
- package/dist/index.json +1 -1
- package/dist/line-chart/hooks/use-chart-options.d.ts +4 -1
- package/dist/project.json +1 -1
- package/dist/src/components/common/helpers/get-chart-from-ctx.d.ts +1 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +7 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +1 -1
- package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +4 -1
- package/package.json +1 -1
- package/dist/assets/bar-chart.stories-BPH3B8bc.js +0 -145
- package/dist/assets/client-C-GN6l4V.js +0 -1
- package/dist/assets/line-chart-D8s6WXhp.js +0 -1
- package/dist/assets/line-chart.test-case.stories-Cxx6mHBO.js +0 -430
- package/dist/assets/pie-chart.stories-CnxljEPV.js +0 -45
- package/dist/assets/scatter-chart.stories-CBtI1oXF.js +0 -41
|
@@ -8,9 +8,12 @@ interface IUseChartOptions {
|
|
|
8
8
|
options: ILineChartOptions;
|
|
9
9
|
dispatch: Dispatch<any>;
|
|
10
10
|
generatedDatasets: TGeneratedLineChartDatasets;
|
|
11
|
+
persistenceId?: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Custom hook to generate chart options.
|
|
14
15
|
*/
|
|
15
|
-
export declare const useChartOptions: ({ chartRef, state, options, dispatch, generatedDatasets, }: IUseChartOptions) => ChartOptions<"line"
|
|
16
|
+
export declare const useChartOptions: ({ chartRef, state, options, dispatch, generatedDatasets, persistenceId, }: IUseChartOptions) => ChartOptions<"line"> & {
|
|
17
|
+
persistenceId?: string;
|
|
18
|
+
};
|
|
16
19
|
export {};
|
package/dist/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1764327847102,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@storybook/testing-library":"0.2.2","eslint-plugin-vitest":"0.5.4","eslint-plugin-vitest-globals":"1.5.0","vitest":"4.0.4"},"hasRouterPackage":false,"packageManager":{"type":"yarn","agent":"yarn","nodeLinker":"undefined"},"typescriptOptions":{"reactDocgen":"react-docgen"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"9.1.16","language":"javascript","storybookPackages":{"@storybook/react-vite":{"version":"9.1.16"},"@storybook/testing-library":{"version":"0.2.2"},"eslint-plugin-storybook":{"version":"9.1.16"},"storybook":{"version":"9.1.16"}},"addons":{"@storybook/addon-themes":{"version":"9.1.16"},"@storybook/addon-docs":{"version":"9.1.16"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getChartFromCtx: (ctx: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -3,4 +3,4 @@ import { IScales } from './annotation-dragger-plugin';
|
|
|
3
3
|
import { ICommonAnnotationsData } from '../../common.interface';
|
|
4
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
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) => 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;
|
|
@@ -8,9 +8,12 @@ interface IUseChartOptions {
|
|
|
8
8
|
options: ILineChartOptions;
|
|
9
9
|
dispatch: Dispatch<any>;
|
|
10
10
|
generatedDatasets: TGeneratedLineChartDatasets;
|
|
11
|
+
persistenceId?: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Custom hook to generate chart options.
|
|
14
15
|
*/
|
|
15
|
-
export declare const useChartOptions: ({ chartRef, state, options, dispatch, generatedDatasets, }: IUseChartOptions) => ChartOptions<"line"
|
|
16
|
+
export declare const useChartOptions: ({ chartRef, state, options, dispatch, generatedDatasets, persistenceId, }: IUseChartOptions) => ChartOptions<"line"> & {
|
|
17
|
+
persistenceId?: string;
|
|
18
|
+
};
|
|
16
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "5.5.0-beta-
|
|
3
|
+
"version": "5.5.0-beta-5",
|
|
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": {
|