Repository navigation
Viewer: reload and re-diff when inputs change - #484
Merged
Merged
Conversation
Poll each loaded side's folder, zip, PDF or dropped files for size and mtime changes. After 500 ms of quiet the side is re-read and re-diffed, keeping the camera, selected layer, visibility and rulers when the layer stack is unchanged. A failed reload keeps the previous result with the error in the load banner. Native only; toggle in Settings > Input, on by default. Refs #423
The reload watcher now starts from a snapshot taken just before the load reads the files, so a re-export landing before the watcher starts is still picked up. A reload only reports a view reset when the layer stack changed, not when the camera was never fitted. The changelog and the Settings tooltip now say the view is kept only when the layers are the same.
etchy — PCB diff10 of 13 layer(s) changed · +213.2964 mm² added · −448.7004 mm² removed · 967+/863− regions
top-copper — largest changed regions (top 10)
inner-copper1 — largest changed regions (top 10)
inner-copper2 — largest changed regions (top 10)
bottom-copper — largest changed regions (top 10)
top-mask — largest changed regions (top 10)
bottom-mask — largest changed regions (top 10)
bottom-silk — largest changed regions (top 10)
bottom-paste — largest changed regions (top 10)
drill-npth — largest changed regions (top 10)
drill — largest changed regions (top 10)
drill-npth — drill table
drill — drill table
Layer images: etchy-diff-d16eda25cfccdba6 has one overlay SVG per changed layer (00-top-copper, 01-inner-copper1, 02-inner-copper2, 03-bottom-copper, 04-top-mask, 05-bottom-mask, 07-bottom-silk, 09-bottom-paste, 10-drill-npth, 11-drill) and the HTML report. Removed is red, added is green. |
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The desktop viewer now picks up a re-export without being reopened.
Tested: unit tests for the debouncer and snapshots, and app-level tests for reload, reset, failure and drop shapes. fmt, clippy, workspace tests and the wasm build pass.
Refs #423