关于 gojs 的绘制流程图 输出的json数据
{ "class": "go.GraphLinksModel",
"linkFromPortIdProperty": "fromPort",
"linkToPortIdProperty": "toPort",
"nodeDataArray": [
{"category":"Start", "text":"Start", "key":-1, "loc":"-139 -261"},
{"category":"End", "text":"End", "key":-4, "loc":"36 -259"}
],
"linkDataArray": [ {"from":-1, "to":-4, "fromPort":"R", "toPort":"L", "points":[-113.79069767441861,-261,-103.79069767441861,-261,-49.31976744186047,-261,-49.31976744186047,-259,5.1511627906976685,-259,15.151162790697668,-259]} ]}
key是负值 , 怎么改成正值呢, 是否需要对json数据二次处理, 有没有更简单的方法?
左边选择后, 从左边拖放到右边的节点 的生产的json数据中的
key值是负的
失去价值失去价值