Commit 7bbd005
Add hover tooltip and Logic Pro-style ruler to simulation timeline
- Hover tooltip: imperative DOM mounted in u.over (no React renders per
mousemove). Run mode uses uPlot's nearest-series focus; stacked mode
walks cumulative bands at the cursor's y to find the hit. Edge-clamps
and flips above/below the cursor so it always fits in the chart area.
- Top x-axis rendered as a Logic Pro-style ruler with a separator line.
Playhead is a rounded-top "pin" with a triangular tip and white
border, drawn in physical pixels with dpr-correct sizes.
- Ruler scrubbing: clicks/drags on the axis area scrub the playhead
via native pointer events with setPointerCapture.
- Cursor unlocks (lock: false) so the dotted crosshair only shows on
hover.
- Add SubView.noPadding flag and move BottomPanel padding from the
outer container into the header and the padded content variant, so
noPadding subviews are truly full-bleed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f7eb5d7 commit 7bbd005
4 files changed
Lines changed: 348 additions & 30 deletions
File tree
- libs/@hashintel/petrinaut/src
- components/sub-view
- horizontal
- views/Editor/panels/BottomPanel
- subviews
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
125 | | - | |
| 135 | + | |
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
| |||
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
199 | | - | |
| 209 | + | |
200 | 210 | | |
201 | 211 | | |
202 | 212 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
0 commit comments