rune-langium / visual-editor/src / SourceSyncSnapshot
Interface: SourceSyncSnapshot
Defined in: packages/visual-editor/src/hooks/useModelSourceSync.ts:320
Fires onModelChanged (serialized source keyed by namespace name) whenever nodes or edges change in content — independent of which visual pane is currently mounted.
Param
nodes
Current nodes from the editor store.
Param
edges
Current edges from the editor store.
Param
onModelChanged
Callback invoked with a Map<namespace, serializedText> on each content change after the initial mount.
Properties
| Property | Type | Defined in |
|---|---|---|
edges | TypeGraphEdge[] | packages/visual-editor/src/hooks/useModelSourceSync.ts:322 |
inversePatches | Patches | packages/visual-editor/src/hooks/useModelSourceSync.ts:325 |
nodes | TypeGraphNode[] | packages/visual-editor/src/hooks/useModelSourceSync.ts:321 |
parseEpoch | number | packages/visual-editor/src/hooks/useModelSourceSync.ts:323 |
patches | Patches | packages/visual-editor/src/hooks/useModelSourceSync.ts:324 |