Open
Description
Currently, the exported layout format assigns node/edges coordinates using relative/inherited parent coordinate system (well, allegedly, basic examples suggest this isn't even true).
It would be nice to support exporting coordinates to their global/absolute values, which [seems already supported by ELK](org.eclipse.elk.json.shapeCoords and org.eclipse.elk.json.edgeCoords). I've tried specifying these options with elkjs
but to no avail:
const elk = new ELK(defaultLayoutOptions = { "shapeCoords": "ROOT" });
const graph = JSON.parse(data.toString());
const options = {
"shapeCoords": "ROOT",
"org.eclipse.elk.json.shapeCoords": "ROOT"
};
elk.layout(graph, layoutOptions = options).then(...)
I've also verified these options are not listed in the layout options:
elk.knownLayoutOptions().then(console.log)
But maybe that's to be expected.
Metadata
Metadata
Assignees
Labels
No labels