Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Interface. Commit Model Action

sprotty / CommitModelAction

Interface: CommitModelAction

Defined in: packages/sprotty/src/model-source/commit-model.ts:33

Commit the current SModel back to the model source.

The SModel (AKA internal model) contains a lot of dirty/transitional state, such as intermediate move postions or handles. When a user interaction that spans multiple commands finishes, it fires a CommitModelAction to write the final changes back to the model source.

Extends

  • Action

Properties

kind

kind: "commitModel"

Defined in: packages/sprotty/src/model-source/commit-model.ts:34

Overrides

Action.kind