cytoscapeneo4j icon indicating copy to clipboard operation
cytoscapeneo4j copied to clipboard

Save Position Update on export

Open eperry opened this issue 3 years ago • 2 comments

I am new to Cytoscape but this plugin while perfect for the purpose I need it for. I just hoping for 1 more feature (or If I am missing how to do it, let me know)

Saving the current style position.

For example. In NEO4J I can set a value of X, Y, and Z and then in the "Cystoscrape" I can use it to override and map the imported data in any position I want on the Viewer.

But when I export back to NEO4J it does not seem to save that piece of information.

As an example, when I use the "Export as Webpage" and look at the data there. I see in a separate block "Position"

 {
      "data" : {
        "id" : "6450",
        "_cytoscape_network" : "neo4j",
        "degree_layout" : 3,
        "_neo4j_labels" : [ "Application" ],
        "isExcludedFromPaths" : false,
        "shared_name" : "EDW",
        "name" : "EDW",
        "x" : "0",
        "isInPath" : false,
        "y" : "0",
        "SUID" : 6450,
        "z" : "0",
        "refid" : 508,
        "selected" : false,
        "connections" : [ "{ node: \"Some Node\", type: \"FLOW\" }" ]
      },
      "position" : {
        "x" : -971.9155760651538,
        "y" : -366.9311824308694
      },
      "selected" : false
    },```

eperry avatar Oct 13 '21 18:10 eperry