aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph/postProcessSVG.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/graph/postProcessSVG.ts')
-rw-r--r--subprojects/frontend/src/graph/postProcessSVG.ts4
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 }