We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0bfe95 commit 5ad7299Copy full SHA for 5ad7299
1 file changed
src/components/Diagram.tsx
@@ -65,7 +65,8 @@ export class DiagramWrapper extends React.Component<DiagramProps, {}> {
65
const diagram =
66
$(go.Diagram,
67
{
68
- 'undoManager.isEnabled': true, // enable undo & redo
+ 'undoManager.isEnabled': true, // must be set to allow for model change listening
69
+ // 'undoManager.maxHistoryLength': 0, // uncomment disable undo/redo functionality
70
'clickCreatingTool.archetypeNodeData': { text: 'new node', color: 'lightblue' },
71
draggingTool: new GuidedDraggingTool(), // defined in GuidedDraggingTool.ts
72
'draggingTool.horizontalGuidelineColor': 'blue',
0 commit comments