Skip to content

Commit accf9d8

Browse files
Fix port port spacing
eclipse-elk/elk#1068 (comment)
1 parent 37fd0db commit accf9d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Visualizer.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ function toELKNode(
194194
data: { color: typeToColor.get(class_data[id]?.type)!, port: `port-${id}`, id },
195195
type: "class" as const,
196196
layoutOptions: {
197-
"elk.spacing.nodeNode": nodePadding,
197+
"elk.spacing.nodeNode": nodePadding.toString(),
198198
"elk.padding": `[top=${nodePadding},left=${nodePadding},bottom=${nodePadding},right=${nodePadding}]`,
199+
"elk.spacing.portPort": "0",
199200
},
200201
children: nodes.map(([id, node]) => {
201202
// compute the size of the text by setting a dummy node element then measureing it

0 commit comments

Comments
 (0)