mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Move only the anchor's height when the floor height arrives
- The first height that replaces the entry frame's now moves only the anchor's height. The anchor keeps its place and its eased lift, so the camera no longer jumps to a corrected fix or steps back. - A detail line is measured with the title's glyph widths. They are a little wide for its smaller type, so a long detail line is no longer clipped. - The first aircraft update is checked in the existing test, and the copy is removed; test fixtures are simpler. - Comments, the release note and CURRENT-STATE match the code.
This commit is contained in:
1 parent
c190e662bc
commit
83081730c0
9 files changed
+176
-138
No files matched your search
+32
-31
@@ -2742,38 +2742,39 @@ priority; one first seen together with a built-in subject comes after it. The
|
||||
first in that order decides alone: when its gate is shut there is no entry
|
||||
rather than the next subject's.
|
||||
|
||||
A frame places the eye `eye.upM` above `heightM` (the shared floor where the
|
||||
frame gives none, or, while that floor is cold, the last height the eye stood
|
||||
at, a frame's or the floor's, at first the entry frame's; with neither, the camera stays where it is and the HUD reads ACQUIRING SURFACE for
|
||||
at most `COCKPIT_GROUND_WAIT_TIMEOUT_MS`, after which the view ends and the
|
||||
subject is released: no height stands in for a floor never read), slews toward `headingDeg` at the provider's rate, and may
|
||||
turn off the floor clamps (`groundClamp: false`, for a subject inside a
|
||||
structure) or keep the anchor exactly on the subject (`anchor: 'exact'`, for a
|
||||
layer that already moves it smoothly; a frame with no `speedMps` is always
|
||||
exact, since an inertial anchor runs on at the frame's speed); `cameraIntervalMs: 0` updates the
|
||||
camera every rendered frame. Each update turns the view, eases its lift and
|
||||
moves an inertial anchor by the time since the last one, at most a second past
|
||||
the interval (`cockpitSubjectStepSec`); an exact anchor stands where the frame
|
||||
is. The first update after entry (after any floor wait) stands its anchor on
|
||||
the subject, as does the first to replace the entry frame's height with
|
||||
another. A frame that is null, malformed or for another
|
||||
subject ends the view (`restoreTracking: false`), as an aircraft tracked
|
||||
meanwhile and the provider's layer turning off do; the exit control asks the
|
||||
provider to restore its subject. The generic HUD shows the provider's kicker,
|
||||
title, meta line, speed with its unit and tag, readout cards, always-visible
|
||||
source rows, banner, route card and Live Signals rows (each changes in place,
|
||||
its tone included, and keeps its time while it stays listed; one pushed off
|
||||
comes back as the newest row; rows the view no longer lists leave before new
|
||||
ones come in), a veil that darkens the
|
||||
A frame places the eye `eye.upM` above `heightM`. With no `heightM` the eye
|
||||
stands on the shared floor; while that floor is cold, at the last height it
|
||||
stood at (at first the entry frame's). With neither, the camera stays where it
|
||||
is and the HUD reads ACQUIRING SURFACE for at most
|
||||
`COCKPIT_GROUND_WAIT_TIMEOUT_MS`, after which the view ends and the subject is
|
||||
released: no height stands in for a floor never read. The view slews toward
|
||||
`headingDeg` at the provider's rate. A frame may turn off the floor clamps
|
||||
(`groundClamp: false`, for a subject inside a structure) or keep the anchor
|
||||
exactly on the subject (`anchor: 'exact'`, for a layer that already moves it
|
||||
smoothly; a frame with no `speedMps` is always exact, since an inertial anchor
|
||||
runs on at the frame's speed); `cameraIntervalMs: 0` updates the camera every
|
||||
rendered frame. Each update turns the view, eases its lift and moves an inertial
|
||||
anchor by the time since the last one, at most a second past the interval
|
||||
(`cockpitSubjectStepSec`); an exact anchor stands where the frame is. The first
|
||||
update after entry (after any floor wait) stands its anchor on the subject; the
|
||||
first height to replace the entry frame's moves the anchor to that height where
|
||||
it stands. A frame that is null, malformed or for another subject ends the view
|
||||
(`restoreTracking: false`), as an aircraft tracked meanwhile and the provider's
|
||||
layer turning off do; the exit control asks the provider to restore its subject.
|
||||
The generic HUD shows the provider's kicker, title, meta line, speed with its
|
||||
unit and tag, readout cards, always-visible source rows, banner, route card and
|
||||
Live Signals rows (each changes in place, its tone included, and keeps its time
|
||||
while it stays listed; one pushed off comes back as the newest row; rows the
|
||||
view no longer lists leave before new ones come in), a veil that darkens the
|
||||
picture under the HUD (with passing light streaks, which stand still under
|
||||
reduced motion), arrow-key look-around when the provider asks for it, and a progress
|
||||
line along the bottom edge (`src/cockpitProgress.js`: close ticks merge,
|
||||
labels never overlap and are sized for CJK, kana and Hangul). Core translates none of the provider's text: a host
|
||||
words it for the page's language (`gods-eye-view/i18n`:
|
||||
`getLocale`, `onLocaleChange`). Its entry face, labels and look may be
|
||||
functions, read again when they are shown and on a change of language, as the
|
||||
HUD view is; a read that throws or is malformed keeps the last good words, at
|
||||
first those checked when the provider was registered.
|
||||
reduced motion), arrow-key look-around when the provider asks for it, and a
|
||||
progress line along the bottom edge (`src/cockpitProgress.js`: close ticks
|
||||
merge, labels never overlap and are sized for CJK, kana and Hangul). Core
|
||||
translates none of the provider's text: a host words it for the page's language
|
||||
(`gods-eye-view/i18n`: `getLocale`, `onLocaleChange`). Its entry face, labels
|
||||
and look may be functions, read again when they are shown and on a change of
|
||||
language, as the HUD view is; a read that throws or is malformed keeps the last
|
||||
good words, at first those checked when the provider was registered.
|
||||
|
||||
The Rail layer offers a read API for such a view: `getSelectedTrain()` and
|
||||
`getCockpitSubject()` (a snapshot of the train: where it is along its line,
|
||||
|
||||
Reference in new issue
Block a user