@react-fabric/chart 1.0.0-beta.13 → 1.0.0-beta.15

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,8 +1,8 @@
1
1
  import { type EChartOption, type EChartsType } from "echarts";
2
- import { type FC, type RefObject } from "react";
2
+ import { type FC, type Ref } from "react";
3
3
  import { type BaseChart } from "../types";
4
4
  export interface GenericProps extends BaseChart {
5
- chartRef?: RefObject<EChartsType>;
5
+ chartRef?: Ref<EChartsType>;
6
6
  legend?: EChartOption["legend"];
7
7
  toolbox?: EChartOption["toolbox"];
8
8
  tooltip?: EChartOption["tooltip"];
@@ -1,6 +1,6 @@
1
1
  import { type EChartOption, type EChartsType } from "echarts";
2
2
  import "echarts-wordcloud";
3
- import { type RefObject } from "react";
3
+ import { type Ref } from "react";
4
4
  import { type Theme } from "../types";
5
5
  export declare const ChartContainer: import("react").MemoExoticComponent<({ theme, title, options, children, onResize, onClick, onExport, isEmpty, emptyIcon, chartRef: _ref, dataTableRenderer, }: {
6
6
  title?: string;
@@ -9,7 +9,7 @@ export declare const ChartContainer: import("react").MemoExoticComponent<({ them
9
9
  emptyIcon?: string;
10
10
  options: EChartOption;
11
11
  children?: AnyObject;
12
- chartRef?: RefObject<EChartsType>;
12
+ chartRef?: Ref<EChartsType>;
13
13
  onClick?: (event: AnyObject) => void;
14
14
  onExport?: (event: AnyObject) => void;
15
15
  dataTableRenderer?: (opt: KeyValue) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/chart",
3
- "version": "1.0.0-beta.13",
3
+ "version": "1.0.0-beta.15",
4
4
  "description": "RUF: Charting package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "watch": "npm-run-all -p watch:rollup watch:dts"
34
34
  },
35
35
  "dependencies": {
36
- "@react-fabric/core": "^1.0.0-beta.13",
37
- "@react-fabric/utilities": "^1.0.0-beta.13",
36
+ "@react-fabric/core": "^1.0.0-beta.15",
37
+ "@react-fabric/utilities": "^1.0.0-beta.15",
38
38
  "classnames": "^2.5.1",
39
39
  "color": "^4.2.3",
40
40
  "date-fns": "^4.0.0",
@@ -54,5 +54,5 @@
54
54
  "node": ">=18.12.0",
55
55
  "npm": ">=8.19.0"
56
56
  },
57
- "gitHead": "ffc2d8712be19f7a829b87e868ec2488eda6f887"
57
+ "gitHead": "d6c7e122b74bf8b0511ef4fb8a99931458a37b3a"
58
58
  }
@@ -28,14 +28,14 @@ import {
28
28
  useImperativeHandle,
29
29
  useRef,
30
30
  type FC,
31
- type RefObject,
31
+ type Ref,
32
32
  } from "react";
33
33
  import { type BaseChart } from "../types";
34
34
  import { ChartContainer } from "../wrapper/ChartContainer";
35
35
  import { ChartWrapper } from "../wrapper/ChartWrapper";
36
36
 
37
37
  export interface GenericProps extends BaseChart {
38
- chartRef?: RefObject<EChartsType>;
38
+ chartRef?: Ref<EChartsType>;
39
39
 
40
40
  legend?: EChartOption["legend"];
41
41
  toolbox?: EChartOption["toolbox"];
@@ -41,7 +41,7 @@ import {
41
41
  useImperativeHandle,
42
42
  useMemo,
43
43
  useState,
44
- type RefObject,
44
+ type Ref,
45
45
  } from "react";
46
46
  import { type Theme } from "../types";
47
47
  import echarts from "../types/charts";
@@ -100,7 +100,7 @@ export const ChartContainer = memo(
100
100
  emptyIcon?: string;
101
101
  options: EChartOption;
102
102
  children?: AnyObject;
103
- chartRef?: RefObject<EChartsType>;
103
+ chartRef?: Ref<EChartsType>;
104
104
  onClick?: (event: AnyObject) => void;
105
105
  onExport?: (event: AnyObject) => void;
106
106
  dataTableRenderer?: (opt: KeyValue) => string;