diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-08-30 02:31:49 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-08-30 02:36:21 +0200 |
commit | 1d9057f2d9cb39d8f3ffd3403aee3f0588fb1f27 (patch) | |
tree | 4dc6cdf86b823ad301658e24c962e13ee9e4ee2c /subprojects/frontend/src/graph/postProcessSVG.ts | |
parent | feat(frontend): projection dialog (diff) | |
download | refinery-1d9057f2d9cb39d8f3ffd3403aee3f0588fb1f27.tar.gz refinery-1d9057f2d9cb39d8f3ffd3403aee3f0588fb1f27.tar.zst refinery-1d9057f2d9cb39d8f3ffd3403aee3f0588fb1f27.zip |
feat(frontend): hide isolated nodes
Diffstat (limited to 'subprojects/frontend/src/graph/postProcessSVG.ts')
-rw-r--r-- | subprojects/frontend/src/graph/postProcessSVG.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subprojects/frontend/src/graph/postProcessSVG.ts b/subprojects/frontend/src/graph/postProcessSVG.ts index 13e4eb29..a580f5c6 100644 --- a/subprojects/frontend/src/graph/postProcessSVG.ts +++ b/subprojects/frontend/src/graph/postProcessSVG.ts | |||
@@ -62,7 +62,9 @@ function clipCompartmentBackground(node: SVGGElement) { | |||
62 | modifyAttribute(compartment, 'y', -5); | 62 | modifyAttribute(compartment, 'y', -5); |
63 | modifyAttribute(compartment, 'x', -5); | 63 | modifyAttribute(compartment, 'x', -5); |
64 | modifyAttribute(compartment, 'width', 10); | 64 | modifyAttribute(compartment, 'width', 10); |
65 | modifyAttribute(compartment, 'height', 5); | 65 | const isEmpty = node.classList.contains('node-empty'); |
66 | // Make sure that empty nodes are fully filled. | ||
67 | modifyAttribute(compartment, 'height', isEmpty ? 10 : 5); | ||
66 | if (node.classList.contains('node-equalsSelf-UNKNOWN')) { | 68 | if (node.classList.contains('node-equalsSelf-UNKNOWN')) { |
67 | addShadow(node, container, 6); | 69 | addShadow(node, container, 6); |
68 | } | 70 | } |