refactor(svelte/minimap): do not show hidden nodes

This commit is contained in:
moklick
2025-03-18 09:11:29 +01:00
parent 254800ab9b
commit 3ae66142be
@@ -76,7 +76,12 @@
$: {
boundingRect =
$nodeLookup.size > 0 ? getBoundsOfRects(getInternalNodesBounds($nodeLookup), viewBB) : viewBB;
$nodeLookup.size > 0
? getBoundsOfRects(
getInternalNodesBounds($nodeLookup, { filter: (n) => !n.hidden }),
viewBB
)
: viewBB;
$nodes;
}