@oliasoft-open-source/charts-library 4.7.9 → 4.8.0-beta-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,11 +1,14 @@
1
- import { RefObject } from 'react';
2
- import { Chart } from 'chart.js';
3
- import { ILineChartOptions, TGeneratedLineChartDatasets } from '../../line-chart.interface';
1
+ import { ICommonScales } from '../../../common/common.interface';
2
+ import { ILineChartOptions } from '../../line-chart.interface';
4
3
  import { IState } from '../../state/state.interfaces';
4
+ interface IScales {
5
+ [key: string]: ICommonScales;
6
+ }
5
7
  /**
6
8
  * Auto scales axis ranges (mix, max) if no explicit range is set
7
9
  * - overrides some edge cases not handled well by default chart.js
8
10
  * - supports optional padding when `autoAxisPadding` is set
9
11
  * - otherwise does not set min/max (falls back to chart.js default)
10
12
  */
11
- export declare const autoScale: (options: ILineChartOptions, state: IState, generatedDatasets: TGeneratedLineChartDatasets, chartRef: RefObject<Chart>) => {};
13
+ export declare const autoScale: (options: ILineChartOptions, state: IState) => IScales;
14
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "4.7.9",
3
+ "version": "4.8.0-beta-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": {
@@ -59,7 +59,7 @@
59
59
  "react-use": "^17.4.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@oliasoft-open-source/react-ui-library": "^4.18.3",
62
+ "@oliasoft-open-source/react-ui-library": "^4.20.8",
63
63
  "@oliasoft-open-source/units": "^4.2.2",
64
64
  "@storybook/addon-actions": "^7.0.18",
65
65
  "@storybook/addon-docs": "^7.0.18",