@widergy/energy-ui 3.130.1 → 3.131.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [3.131.0](https://github.com/widergy/energy-ui/compare/v3.130.1...v3.131.0) (2026-01-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * adjust height ([#750](https://github.com/widergy/energy-ui/issues/750)) ([b1732b7](https://github.com/widergy/energy-ui/commit/b1732b75e1f4b2025567a4594641a3f84089341b))
7
+
1
8
  ## [3.130.1](https://github.com/widergy/energy-ui/compare/v3.130.0...v3.130.1) (2026-01-19)
2
9
 
3
10
 
@@ -91,7 +91,7 @@ const Bars = _ref => {
91
91
  return /*#__PURE__*/_react.default.createElement("g", null, (highlighted || selected) && /*#__PURE__*/_react.default.createElement(_Bar.default, {
92
92
  bar: bar,
93
93
  width: barWidth + 2 * highlightSpacing,
94
- height: graphYStart - (highlighted ? yAxis(maxBarValue) : yInitialPosition) + highlightSpacing,
94
+ height: Math.max(0, Math.min(graphYStart - (highlighted ? yAxis(maxBarValue) : yInitialPosition) + highlightSpacing, graphYStart - graphYEnd + highlightSpacing)),
95
95
  color: highlightColor,
96
96
  x: xInitialPosition - highlightSpacing,
97
97
  y: graphYStart - offset,
@@ -106,7 +106,7 @@ const Bars = _ref => {
106
106
  bar: bar,
107
107
  onClick: onClick,
108
108
  width: barWidth,
109
- height: graphYStart - yInitialPosition,
109
+ height: Math.max(0, Math.min(graphYStart - yInitialPosition, graphYStart - graphYEnd)),
110
110
  color: color,
111
111
  gradient: gradient,
112
112
  x: xInitialPosition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.130.1",
3
+ "version": "3.131.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",