@oliasoft-open-source/charts-library 5.18.0 → 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.
@@ -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, }: IUseBarChartOptionsProps) => {
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, }: ControlsPortalProps) => import("react/jsx-runtime").JSX.Element;
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, } from './plugins/annotation-dragger-plugin/enums';
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, }: ContainerProps): import("react/jsx-runtime").JSX.Element;
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, }: IGetAnnotationsProps) => ICommonAnnotationElement[] | Record<string, any>[];
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, }: ILegendItem) => import("react/jsx-runtime").JSX.Element;
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, }: ILegendProviderProps) => import("react/jsx-runtime").JSX.Element;
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, }, }: IDragOptions): ({
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, }: IUseChartFunctions) => {
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, }: IUseChartState) => void;
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, }: TDrawLineArgs) => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "5.18.0",
3
+ "version": "5.18.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
  "bugs": {