fix: export all edges via links array — clusterR/clusterL reserved for cluster-type edges only

This commit is contained in:
Pouzor
2026-03-24 01:25:26 +01:00
parent f469d6c744
commit a43ffb813e
5 changed files with 112 additions and 29 deletions
+11
View File
@@ -131,6 +131,17 @@ export function parseYamlToCanvas(
}
}
if (yn.links) {
for (const link of yn.links) {
const targetId = labelToId.get(link.label)
if (!targetId) {
console.warn(`[importYaml] links label not found: "${link.label}" — skipping`)
} else {
addEdgeIfNew(node.id, targetId, link)
}
}
}
if (yn.clusterR) {
const targetId = labelToId.get(yn.clusterR.label)
if (!targetId) {