refactor(svelte/minimap): do not show hidden nodes
This commit is contained in:
@@ -76,7 +76,12 @@
|
|||||||
|
|
||||||
$: {
|
$: {
|
||||||
boundingRect =
|
boundingRect =
|
||||||
$nodeLookup.size > 0 ? getBoundsOfRects(getInternalNodesBounds($nodeLookup), viewBB) : viewBB;
|
$nodeLookup.size > 0
|
||||||
|
? getBoundsOfRects(
|
||||||
|
getInternalNodesBounds($nodeLookup, { filter: (n) => !n.hidden }),
|
||||||
|
viewBB
|
||||||
|
)
|
||||||
|
: viewBB;
|
||||||
$nodes;
|
$nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user