@tangle-network/charts 0.21.2 → 0.21.3
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/dist/react/index.js +4 -2
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -3707,7 +3707,9 @@ function FlowBody(props) {
|
|
|
3707
3707
|
const [viewport, setViewport] = useState(maxHeight);
|
|
3708
3708
|
const latest = useRef(props);
|
|
3709
3709
|
latest.current = props;
|
|
3710
|
-
const
|
|
3710
|
+
const tallest = useRef(0);
|
|
3711
|
+
if (!props.holdHeight) tallest.current = 0;
|
|
3712
|
+
const height = tallest.current = Math.max(tallest.current, Math.min(maxHeight, Math.max(rows.length, 1) * rowHeight));
|
|
3711
3713
|
const links = useMemo(() => linksFor(rows, props.byId, view), [
|
|
3712
3714
|
rows,
|
|
3713
3715
|
props.byId,
|
|
@@ -4867,7 +4869,7 @@ function FlowWaterfall({ trace, live, startedAt, label = "Trace waterfall", defa
|
|
|
4867
4869
|
cursorLine: moving,
|
|
4868
4870
|
sharedDetail,
|
|
4869
4871
|
expandedIds: view === "agents" ? /* @__PURE__ */ new Set([...openFamilies, ...openSteps]) : void 0,
|
|
4870
|
-
|
|
4872
|
+
holdHeight: isLive,
|
|
4871
4873
|
slowestId: slowest?.id ?? callouts.slowestId,
|
|
4872
4874
|
costliestId: callouts.costliestId,
|
|
4873
4875
|
activeId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/charts",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.3",
|
|
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",
|