| Age | Commit message (Collapse) | Author |
|
The desktop lays out labels in alpha-descending order (the C
pointer-array sort), which on screen means right to left — so the
leftmost peak of a collision cluster ends up on top of the stack.
The web port sorted by screen x ascending, inverting every stack and
making labels look assigned to the wrong peaks. Sort descending; the
break-early scan in layout_label_y stays valid because it only relies
on monotonic x, and labels extend rightward just like in C.
Verified against the desktop rendering of the same panorama photo and
a right-to-left replay of the layout in the label simulator.
|
|
The C++ original draws a cross + vertical + horizontal leader for
every labeled peak, not just marked ones. Without them, collision-
pushed peak labels float unattached and it is impossible to tell
which dot they belong to (verified by replaying layout_label_y on a
synthetic ridge scene). Peak leaders use the muted pale green of the
label text; marker leaders stay yellow with the small cross.
|
|
Display > 'Show peak labels' toggle (off by default): every visible
peak gets its name drawn next to its guide dot, like the desktop
version. Labels join one combined collision-avoidance layout pass with
the marker labels (same layout_label_y), so marker labels keep
priority and nothing overlaps. Unmarked labels are tinted pale green;
hidden peaks and already-marked peaks get no duplicate label.
Candidates now carry name + marked flag (DotView), markers carry the
hill index (MarkerView::hill) for the dedup.
|
|
The fit at load time (and the 120 ms nudge) could still run before the
canvas had a valid layout size, leaving the first image invisible until
'Fit to window' was pressed. A ResizeObserver attached when the first
bitmap arrives fires once with the element's real size immediately
after observing, then on every later resize; it re-fits automatically
unless the user has panned or zoomed by hand since the last load
(user_moved flag, reset on each image load). Window resizes now
re-fit the image as well instead of only redrawing it.
|
|
'gipfel web' is taken by an existing related project. The browser app
is now wipfel — web based gipfel photogrammetry for mountain images:
crate gipfel-web -> wipfel, updated titles, docs, plan and dev script.
The shared engine crate stays gipfel-core.
|