@rpg-engine/long-bow 0.8.88 → 0.8.90

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.
@@ -36050,8 +36050,6 @@ var ProgressBar$1 = function ProgressBar(_ref) {
36050
36050
  minWidth = _ref$minWidth === void 0 ? 100 : _ref$minWidth,
36051
36051
  style = _ref.style,
36052
36052
  mobileScale = _ref.mobileScale;
36053
- value = Math.round(value);
36054
- max = Math.round(max);
36055
36053
  var calculatePercentageValue = function calculatePercentageValue(max, value) {
36056
36054
  if (value > max) {
36057
36055
  value = max;
@@ -36059,6 +36057,9 @@ var ProgressBar$1 = function ProgressBar(_ref) {
36059
36057
  var percentage = value * 100 / max;
36060
36058
  return Math.min(99.99, percentage);
36061
36059
  };
36060
+ // Round only for display, not for calculation
36061
+ var displayValue = Math.round(value);
36062
+ var displayMax = Math.round(max);
36062
36063
  return React__default.createElement(Container$B, {
36063
36064
  className: "rpgui-progress",
36064
36065
  "data-value": calculatePercentageValue(max, value) / 100,
@@ -36067,7 +36068,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
36067
36068
  minWidth: minWidth,
36068
36069
  style: style,
36069
36070
  mobileScale: mobileScale
36070
- }, displayText && React__default.createElement(TextOverlay$1, null, React__default.createElement(ProgressBarText, null, value, "/", max)), React__default.createElement("div", {
36071
+ }, displayText && React__default.createElement(TextOverlay$1, null, React__default.createElement(ProgressBarText, null, displayValue, "/", displayMax)), React__default.createElement("div", {
36071
36072
  className: " rpgui-progress-track"
36072
36073
  }, React__default.createElement("div", {
36073
36074
  className: "rpgui-progress-fill " + color + " ",