I am not defined any layout in template,
while moving the top node to bottom, other node should remains in the same place but for me other nodes are moved to top. Same as right side also, while moving the right node to left ,other nodes or moved to right side
The nodes are not being moved – if you looked at their Node.locations you would see that they had not changed. (Other than for the node that the user is moving manually.)
Instead, the diagram is automatically scrolled, because the policy is to always have the area of the viewport be covered by as much of the document as is available at the current scale. This prevents the viewport from accidentally being far away from the contents and only showing a blank area, which can be disconcerting to users. The same or similar policy is used in document editors and in web browsers. For example, the user cannot scroll the web page so the start of the page is at the bottom of the window or completely out of the window.
In this image viewport coordinates start from (300,250) in document coordinates but what i need is ,viewport should start from (0,0) document coordinates
It is unclear to me what the problem is and how to reproduce it. Are you talking about the behavior in most any sample?
So let’s try Minimal GoJS Sample. Select the “Alpha” node and drag it out of the viewport a short distance to the left. When the user drops the node, the diagram automatically scrolls to fit as much of the whole document into the viewport as possible. Is this behavior what you do not want? Do you want the moved node to remain outside of the viewport?
Node shouldn’t go out of the view port in left and top side ,but in the right and bottom it can move out of the view port means it should enable the vertical and horizontal scroll bar