Skip to content

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 ​

PropertyTypeDefined in
edgesTypeGraphEdge[]packages/visual-editor/src/hooks/useModelSourceSync.ts:322
inversePatchesPatchespackages/visual-editor/src/hooks/useModelSourceSync.ts:325
nodesTypeGraphNode[]packages/visual-editor/src/hooks/useModelSourceSync.ts:321
parseEpochnumberpackages/visual-editor/src/hooks/useModelSourceSync.ts:323
patchesPatchespackages/visual-editor/src/hooks/useModelSourceSync.ts:324

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.