Content-Length: 306306 | pFad | http://github.com/kieler/elkjs/issues/332

4E Support `ShapeCoords` option · Issue #332 · kieler/elkjs · GitHub
Skip to content

Support ShapeCoords option #332

Open
@peekxc

Description

@peekxc

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/kieler/elkjs/issues/332

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy