@Shawn wrote:
We are currently working on a new web application to replace a legacy .NET application that used GoDiagram for it’s canvas functions. Our goal is to keep the two application compatible until all the old application functionality is transitioned to the new application. This application keeps the location of nodes in our own custom canvas object. When we load diagrams created with GoDiagram on the web canvas, all nodes are in same position as it was saved on the .NET app. I have set up two-way binding on the location of nodes in the templates. The problem is once a node is moved by few pixels (using mouse), the location is updated on the node, however there is a large difference between the original point and updated point values. For example, a node location maybe 50,100 but when its moved, the location point x/y values are in thousands. In some instances, the values are negative.
Are there any guidelines/suggestoins as to how we can convert the original locations to new coordinates for the GoJS and if there is a way to convert the updated values in GoJS back to coordinates compatible with GoDiagram?
Posts: 4
Participants: 2