onesight-charts 0.2.8 → 0.2.9

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.
@@ -4,15 +4,15 @@ import React, { useEffect, useRef } from 'react';
4
4
  import { createCustomTooltip } from "./tooltipConfig";
5
5
  import "./style.scss";
6
6
  function WordCloud(props) {
7
- var _props$width = props.width,
8
- width = _props$width === void 0 ? '100%' : _props$width,
9
- _props$height = props.height,
10
- height = _props$height === void 0 ? '312px' : _props$height,
11
- data = props.data,
7
+ var data = props.data,
12
8
  _props$smallSize = props.smallSize,
13
9
  smallSize = _props$smallSize === void 0 ? false : _props$smallSize,
14
10
  _props$tooltipShow = props.tooltipShow,
15
11
  tooltipShow = _props$tooltipShow === void 0 ? true : _props$tooltipShow,
12
+ _props$width = props.width,
13
+ width = _props$width === void 0 ? '100%' : _props$width,
14
+ _props$height = props.height,
15
+ height = _props$height === void 0 ? '312px' : _props$height,
16
16
  _props$tooltipName = props.tooltipName,
17
17
  tooltipName = _props$tooltipName === void 0 ? '提及数' : _props$tooltipName,
18
18
  _props$color = props.color,
@@ -39,11 +39,11 @@ var import_tooltipConfig = require("./tooltipConfig");
39
39
  var import_style = require("./style.scss");
40
40
  function WordCloud(props) {
41
41
  const {
42
- width = "100%",
43
- height = "312px",
44
42
  data,
45
43
  smallSize = false,
46
44
  tooltipShow = true,
45
+ width = "100%",
46
+ height = "312px",
47
47
  tooltipName = "提及数",
48
48
  color = "#1DA9A0",
49
49
  onClick = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onesight-charts",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "private": false,
5
5
  "description": "OneSight前端图表公共组件库",
6
6
  "license": "MIT",
@@ -75,7 +75,6 @@
75
75
  "stylelint": "^14.9.1"
76
76
  },
77
77
  "peerDependencies": {
78
- "echarts-wordcloud": "^2.1.0",
79
78
  "react": ">=16.9.0",
80
79
  "react-dom": ">=16.9.0"
81
80
  },