zplCore.comzplCore.com

SemanticDiff

public static class SemanticDiff

Element-level diff of two renders (used by snapshots and by zplcore check --baseline).

Methods

Method SignatureReturnsDescription
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.