Access Node Externally


Is it possible to access a Node from an external Javascript and change its Text, Stroke, etc?


What do you mean by “external Javascript”? GoJS is implemented entirely in JavaScript, so you can manipulate any GraphObject in a Diagram. Or you can modify the Model.

Can you give me a simple example of how to change the text from a Node?
I would expect something like:

myDiagram.findNodeForKey(‘mynode’).text = ‘New text’;

Thanks again, Walter!


Thank you again, Walter.

The shiftNode() example gave me a better idea.