@graphty/graphty-element / commands / COMMANDS
Variable: COMMANDS ​
constCOMMANDS:Readonly<{algo.legacy: {undo:"undoable"; };algo.remove: {undo:"undoable"; };algo.run: {undo:"undoable"; };batch: {undo:"undoable"; };config.set: {undo:"undoable"; };data.apply: {undo:"undoable"; };data.declare: {undo:"undoable"; };data.expand: {undo:"undoable"; };data.import: {undo:"undoable"; };data.setSource: {undo:"undoable"; };layout.scope: {undo:"undoable"; };layout.set: {undo:"undoable"; };layout.transport: {reason:"A moving layout is in-flight computation; where it comes to rest is sealed into the step on top.";undo:"exempt"; };note.add: {undo:"undoable"; };note.merge: {undo:"undoable"; };note.remove: {undo:"undoable"; };note.update: {undo:"undoable"; };positions.pin: {undo:"undoable"; };positions.set: {undo:"undoable"; };set.create: {undo:"undoable"; };set.members: {undo:"undoable"; };set.redefine: {undo:"undoable"; };set.remove: {undo:"undoable"; };set.rename: {undo:"undoable"; };set.restore: {undo:"undoable"; };style.encode: {undo:"undoable"; };style.patch: {undo:"undoable"; };style.template: {undo:"undoable"; };view.camera: {reason:"Where the camera is looking is view state, not saved in a project file.";undo:"exempt"; };view.dimension: {undo:"undoable"; };view.immersive: {reason:"Entering or leaving VR or AR is a device session, not the document.";undo:"exempt"; };view.remove: {undo:"undoable"; };view.save: {undo:"undoable"; };visibility.context: {undo:"undoable"; };visibility.set: {undo:"undoable"; };visibility.window: {undo:"undoable"; }; }>
Defined in: graphty-element/commands.ts:37
Every op in the vocabulary, and how it behaves under undo. An op missing here, or declaring neither, is a compile error.