SemanticDiff
public static class SemanticDiffElement-level diff of two renders (used by snapshots and by zplcore check --baseline).
Methods
| Method Signature | Returns | Description |
|---|---|---|
static # Compare(SnapshotDocument before, SnapshotDocument after, int toleranceDots = 0) | IReadOnlyList<ElementChange> | Compares two semantic snapshots label by label (a label count change is reported as added/removed elements). |
static # Compare(IReadOnlyList<SnapshotElement> before, IReadOnlyList<SnapshotElement> after, int labelIndex = 0, int dpi = 203, int toleranceDots = 0) | IReadOnlyList<ElementChange> | Compares the elements of two versions of one label. Moves of up to toleranceDots are ignored. |

