<script src="go-debug.js"></script>
<script src="https://unpkg.com/gojs/release/go-debug.js"></script>
<script>
const myDiagram =
new go.Diagram("myDiagramDiv",
{ // enable Ctrl-Z to undo and Ctrl-Y to redo
"undoManager.isEnabled": true
});
myDiagram.model = new go.Model(
[ // for each object in this Array, the Diagram creates a Node to represent it
{ key: "Alpha" },
{ key: "Beta" },
{ key: "Gamma" }
]);
</script>
------------------------------------------------------------------------------------------------------------------------------------
Mon code ci-dessus ne fonctionne pas ! Comment commencer avec GoJS ? un simple exemple en html qui fonctionne.
Merci d'avance
Why are you loading the library twice? Delete this line:
<script src="go-debug.js"></script>
Where is the myDiagramDiv
HTMLDivElement defined?
Hello,
i saw my error. It’s works now. Thank for help.