Skip to main content

emit_diff

Function emit_diff 

Source
pub fn emit_diff(graph: &SceneGraph, prev: &GraphSnapshot) -> String
Expand description

Emit the diff between the current graph and a previous snapshot.

Output format:

  • + node/edge block: added (not in snapshot)
  • ~ node/edge block: modified (hash differs)
  • - @id: removed (in snapshot but not in current graph)