@oliasoft-open-source/charts-library 5.18.1 → 5.18.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.
- package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +1 -1
- package/dist/src/components/common/controls-portal.d.ts +1 -1
- package/dist/src/components/common/enums.d.ts +1 -1
- package/dist/src/components/common/helpers/container.d.ts +1 -1
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +1 -1
- package/dist/src/components/common/legend-component/legend-item/legend-item.d.ts +1 -1
- package/dist/src/components/common/legend-component/state/legend-context.d.ts +1 -1
- package/dist/src/components/line-chart/controls/drag-options.d.ts +1 -1
- package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +1 -1
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +1 -1
- package/dist/src/components/line-chart/plugins/line-markers-plugin/draw.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export interface IUseBarChartOptionsProps {
|
|
|
7
7
|
chartRef: MutableRefObject<Chart | null>;
|
|
8
8
|
}
|
|
9
9
|
export declare const getBarChartAnimation: (performanceMode?: boolean) => false | Partial<AnimationSpec<"bar">>;
|
|
10
|
-
export declare const useBarChartOptions: ({ chart, chartRef
|
|
10
|
+
export declare const useBarChartOptions: ({ chart, chartRef }: IUseBarChartOptionsProps) => {
|
|
11
11
|
onClick: (_evt: import('chart.js').ChartEvent, _elements: import('chart.js').ActiveElement[], chartInstance: Chart) => void;
|
|
12
12
|
onHover: (evt: import('chart.js').ChartEvent, hoveredItems: import('../../common/common.interface').ICommonHoveredItems[]) => void;
|
|
13
13
|
indexAxis: AxisType;
|
|
@@ -3,5 +3,5 @@ interface ControlsPortalProps {
|
|
|
3
3
|
children: ReactElement;
|
|
4
4
|
controlsPortalId: string;
|
|
5
5
|
}
|
|
6
|
-
declare const ControlsPortal: ({ children, controlsPortalId
|
|
6
|
+
declare const ControlsPortal: ({ children, controlsPortalId }: ControlsPortalProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default ControlsPortal;
|
|
@@ -85,5 +85,5 @@ export declare enum Events {
|
|
|
85
85
|
Touchmove = "touchmove",
|
|
86
86
|
Dblclick = "dblclick"
|
|
87
87
|
}
|
|
88
|
-
export { AnnotationType as DraggableAnnotationType, DragAxis
|
|
88
|
+
export { AnnotationType as DraggableAnnotationType, DragAxis } from './plugins/annotation-dragger-plugin/enums';
|
|
89
89
|
export { GradientDirection } from './plugins/gradient-background-plugin/enums';
|
|
@@ -7,7 +7,7 @@ interface ContainerProps {
|
|
|
7
7
|
warningMessage?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const Container: {
|
|
10
|
-
({ style, children, margin, deprecatedMessage, warningMessage
|
|
10
|
+
({ style, children, margin, deprecatedMessage, warningMessage }: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
defaultProps: {
|
|
12
12
|
style: {};
|
|
13
13
|
margin: boolean;
|
|
@@ -135,5 +135,5 @@ export declare const generateAnn: (ann: ICommonAnnotationsData, index: number) =
|
|
|
135
135
|
yScaleID?: string;
|
|
136
136
|
opacity?: number;
|
|
137
137
|
};
|
|
138
|
-
export declare const getAnnotation: ({ showAnnotations, annotationsData
|
|
138
|
+
export declare const getAnnotation: ({ showAnnotations, annotationsData }: IGetAnnotationsProps) => ICommonAnnotationElement[] | Record<string, any>[];
|
|
139
139
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILegendItem } from '../legend-interface';
|
|
2
|
-
declare const LegendItem: ({ hidden, dataset, handleClick, chartType, index
|
|
2
|
+
declare const LegendItem: ({ hidden, dataset, handleClick, chartType, index }: ILegendItem) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LegendItem;
|
|
@@ -11,4 +11,4 @@ export interface ILegendProviderProps {
|
|
|
11
11
|
options: TChartsOption;
|
|
12
12
|
datasets?: ICommonDataset[];
|
|
13
13
|
}
|
|
14
|
-
export declare const LegendProvider: ({ children, options, datasets
|
|
14
|
+
export declare const LegendProvider: ({ children, options, datasets }: ILegendProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IMenuSection } from '@oliasoft-open-source/react-ui-library';
|
|
2
2
|
import { IDragOptions } from './drag-options-interfaces';
|
|
3
|
-
export declare function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, enableDragAnnotation, isDragDataAllowed, isDragAnnotationAllowed, onToggleDragAnnotation, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, dragToMovePoints, dragDisabled, dragToMoveAnnotation
|
|
3
|
+
export declare function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, enableDragAnnotation, isDragDataAllowed, isDragAnnotationAllowed, onToggleDragAnnotation, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, dragToMovePoints, dragDisabled, dragToMoveAnnotation }, }: IDragOptions): ({
|
|
4
4
|
label: string;
|
|
5
5
|
description: string;
|
|
6
6
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,7 +12,7 @@ interface IUseChartFunctions {
|
|
|
12
12
|
/**
|
|
13
13
|
* Custom hook that encapsulates the chart-related functions and their dependencies
|
|
14
14
|
*/
|
|
15
|
-
export declare const useChartFunctions: ({ chartRef, state, options, dispatch
|
|
15
|
+
export declare const useChartFunctions: ({ chartRef, state, options, dispatch }: IUseChartFunctions) => {
|
|
16
16
|
resetZoom: () => void;
|
|
17
17
|
onHover: (hoveredPoint: ICommonDataValue | null, setHoveredPoint: Dispatch<SetStateAction<ICommonDataValue | null>>, datasets: TGeneratedLineChartDatasets) => (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
|
|
18
18
|
handleDownload: () => void;
|
|
@@ -8,5 +8,5 @@ interface IUseChartState {
|
|
|
8
8
|
/**
|
|
9
9
|
* Hook for managing the state of the chart.
|
|
10
10
|
*/
|
|
11
|
-
export declare const useChartState: ({ options, state, persistenceId
|
|
11
|
+
export declare const useChartState: ({ options, state, persistenceId }: IUseChartState) => void;
|
|
12
12
|
export {};
|
|
@@ -11,7 +11,7 @@ export type TDrawLineArgs = {
|
|
|
11
11
|
lineWidth: number;
|
|
12
12
|
lineDash: number[];
|
|
13
13
|
};
|
|
14
|
-
export declare const drawLineSegment: ({ chart, x1, y1, x2, y2, color, opacity, lineWidth, lineDash
|
|
14
|
+
export declare const drawLineSegment: ({ chart, x1, y1, x2, y2, color, opacity, lineWidth, lineDash }: TDrawLineArgs) => {
|
|
15
15
|
x1: number;
|
|
16
16
|
y1: number;
|
|
17
17
|
x2: number;
|
package/package.json
CHANGED