@tangle-network/charts 2.0.11 → 2.0.12

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.
@@ -9216,8 +9216,8 @@ function FlowWaterfall({ trace, live, startedAt, label = "Trace waterfall", defa
9216
9216
  if (view !== "agents" || resized.current || !root.current) return;
9217
9217
  let widest = 0;
9218
9218
  for (const text of root.current.querySelectorAll(".fw-view-agents .fw-row:not(.fw-sticky-row) .fw-name-text")) {
9219
- const label = text.closest(".fw-label");
9220
- if (label) widest = Math.max(widest, text.scrollWidth + label.clientWidth - text.clientWidth);
9219
+ const label = text.closest(".fw-label"), name = text.parentElement;
9220
+ if (label) widest = Math.max(widest, name.getBoundingClientRect().right - label.getBoundingClientRect().left + text.scrollWidth - text.clientWidth);
9221
9221
  }
9222
9222
  if (widest > 0) setNameWidth(Math.max(140, Math.min(560, Math.ceil(widest) + 16)));
9223
9223
  }, [view, agents]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/charts",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Static SVG and HTML figures for benchmarks and operational timing. Draws from producer data and refuses what it cannot draw honestly.",
5
5
  "type": "module",
6
6
  "license": "MIT",