Commit 7fa7492
Fix restart revision bump and separator DPR scaling
Two small correctness fixes from PR review:
- When the simulation restarts (totalFrames drops), bump the revision
counter immediately so React re-renders to pick up the empty store.
Previously the bump only happened when subsequent fetched frames
were pushed, so a cancelled/empty follow-up fetch left the chart
displaying stale pre-restart data.
- In the drawClear hook, scale the separator line's width and its
sub-pixel offset by devicePixelRatio. uPlot's canvas uses physical
pixels, so the previous hardcoded 1/0.5 values rendered at 0.5/0.25
CSS pixels on HiDPI displays — thinner than uPlot's own grid lines.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 05d278e commit 7fa7492
1 file changed
Lines changed: 5 additions & 3 deletions
File tree
- libs/@hashintel/petrinaut/src/views/Editor/panels/BottomPanel/subviews
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| 684 | + | |
683 | 685 | | |
684 | 686 | | |
685 | | - | |
| 687 | + | |
686 | 688 | | |
687 | | - | |
688 | | - | |
| 689 | + | |
| 690 | + | |
689 | 691 | | |
690 | 692 | | |
691 | 693 | | |
| |||
0 commit comments