public record SnapshotDocument
Semantic snapshot (name.approved.json next to the approved PNGs): resolution, label sizes and the elements with position and content, so a failing snapshot explains what changed ("text "FROM" moved 12 dots down", "barcode data changed") and not only how many pixels.
Constructors
| Signature | Description |
# SnapshotDocument() | |
Properties
| Property | Type | Description |
Dpi { get; init; } | int | Resolution of the render. |
Engine { get; init; } | string | zplCore version that wrote the snapshot. |
Format { get; init; } | string | Format marker ("zplcore-snapshot"). |
Labels { get; init; } | IReadOnlyList<SnapshotLabel> | The labels with their elements. |
SourceSha256 { get; init; } | string | SHA-256 of the ZPL source (informational: the snapshot compares the render, not the source). |
Version { get; init; } | int | Format version (1). |
Methods
| Method Signature | Returns | Description |
static # FromJson(string json) | SnapshotDocument | Reads a snapshot document; null when the JSON is not one. |
# ToJson() | string | Indented JSON (camelCase). |