@easyv/charts 1.7.27 → 1.7.28

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.
@@ -26,6 +26,7 @@ var defaultFont = {
26
26
  };
27
27
  var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref) {
28
28
  var series = _ref.series,
29
+ height = _ref.height,
29
30
  config = _ref.config,
30
31
  _ref$config = _ref.config,
31
32
  show = _ref$config.show,
@@ -121,13 +122,14 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
121
122
  d.percent = 0;
122
123
  });
123
124
  }
125
+ console.log("height", height);
124
126
  return /*#__PURE__*/_react["default"].createElement("div", {
125
127
  className: "__easyv-legend-wrapper",
126
128
  style: _objectSpread(_objectSpread({
127
129
  position: 'absolute',
128
130
  display: 'flex'
129
131
  }, getPosition(position, _alignment, x, y)), {}, {
130
- height: loop.show ? loop.height : 'auto',
132
+ height: loop.show ? height : 'auto',
131
133
  overflowY: loop.show ? 'scroll' : 'auto'
132
134
  }),
133
135
  ref: ref_container
@@ -611,6 +611,7 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
611
611
  },
612
612
  mousePos: mousePos
613
613
  }), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
614
+ height: chartHeight,
614
615
  series: _arcs.map(function (arc) {
615
616
  return _objectSpread(_objectSpread({}, arc), {}, {
616
617
  percent: arc.percent.toFixed(legendPrecision)
@@ -769,6 +770,7 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
769
770
  },
770
771
  mousePos: mousePos
771
772
  }), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
773
+ height: chartHeight,
772
774
  series: _arcs.map(function (arc) {
773
775
  return _objectSpread(_objectSpread({}, arc), {}, {
774
776
  percent: arc.percent.toFixed(legendPrecision)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.7.27",
3
+ "version": "1.7.28",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -13,6 +13,7 @@ const defaultFont = {
13
13
  export default memo(
14
14
  ({
15
15
  series,
16
+ height,
16
17
  config,
17
18
  config: {
18
19
  show,
@@ -105,7 +106,7 @@ export default memo(
105
106
  position: 'absolute',
106
107
  display: 'flex',
107
108
  ...getPosition(position, _alignment, x, y),
108
- height: loop.show ? loop.height : 'auto',
109
+ height: loop.show ? height : 'auto',
109
110
  overflowY: loop.show ? 'scroll' : 'auto',
110
111
  }}
111
112
  ref={ref_container}
@@ -628,6 +628,7 @@ const Component = memo(
628
628
  )}
629
629
  <Legend
630
630
  {...legend}
631
+ height={chartHeight}
631
632
  series={_arcs.map((arc) => ({
632
633
  ...arc,
633
634
  percent: arc.percent.toFixed(legendPrecision),
@@ -871,6 +872,7 @@ const Component = memo(
871
872
  )}
872
873
  <Legend
873
874
  {...legend}
875
+ height={chartHeight}
874
876
  series={_arcs.map((arc) => ({
875
877
  ...arc,
876
878
  percent: arc.percent.toFixed(legendPrecision),