Fly the remaining flights through the camera port, on any viewer

The embed view, the celestial-ring focus, the ground-guard lift, the
Bhote Koshi approach and orbit, launch selection and replay flights, and
the cockpit's view and takeover now drive the renderer's camera port.
The contract gains a sineInOut easing, pinned by a conformance trace.

A viewer with no renderer bound, such as one a caller of a public
export brings, now gets a camera port too, as it already got an input
port: cameraOf builds one over the viewer's own Cesium camera and keeps
it for the viewer's life, until a renderer is bound. The Cesium adapter
provides the factory as it loads; code that reaches Cesium takes cameraOf
from the adapter so the factory comes with it, and findCamera answers
null where a missing camera is not an error (HUD, share link, world
focus, Recent Imagery's ZOOM IN). A test walks every package export and
fails one that can reach the bridge without loading the factory.

A destroyed viewer gets no camera and lets go of a built one, and the
application renderer stays bound until its viewer is destroyed.
This commit is contained in:
Sameh Khamis committed 2026-11-06 08:21:57 -08:00
1 parent c5b716b107
commit 1d4e4ebe90
44 files changed
+1167 -344

No files matched your search

+104
View File
@@ -2144,6 +2144,110 @@
}
]
},
"flyTo sineInOut": {
"records": [
{
"step": 3,
"kind": "pose",
"value": {
"position": {
"x": -2264202.3786493177,
"y": -16652052.298267456,
"z": 9785772.494992554
},
"direction": {
"x": 0.1297004555930398,
"y": 0.9146885584650551,
"z": -0.38278274886948277
},
"up": {
"x": 0.08931821646822154,
"y": 0.3736965407891975,
"z": 0.9232405708205872
},
"right": {
"x": 0.9875221759666432,
"y": -0.1539341950812336,
"z": -0.0332297390720854
},
"heading": 0.03852827617838983,
"pitch": -1.433276538096362,
"roll": 6.283185307179586,
"height": 13074099.901429506,
"frameIsIdentity": true
}
},
{
"step": 5,
"kind": "pose",
"value": {
"position": {
"x": -1031979.3952742261,
"y": -7589681.480280083,
"z": 4448442.5808664905
},
"direction": {
"x": 0.31556045134531424,
"y": 0.8875905643040791,
"z": 0.33556607651118137
},
"up": {
"x": 0.10445908107755925,
"y": -0.38397902960887687,
"z": 0.9174139770033249
},
"right": {
"x": 0.9431383259772522,
"y": -0.254446644660509,
"z": -0.21388549061082934
},
"heading": 0.25036959095382905,
"pitch": -0.6771468656798949,
"roll": 6.283185307179586,
"height": 2484858.7135209497,
"frameIsIdentity": true
}
},
{
"step": 7,
"kind": "pose",
"value": {
"position": {
"x": -743292.8811925538,
"y": -5466539.584651379,
"z": 3198007.239048282
},
"direction": {
"x": 0.36970163659367444,
"y": 0.7940777354746522,
"z": 0.48245336554262613
},
"up": {
"x": 0.0693712174939781,
"y": -0.5413817815775576,
"z": 0.8379101388331048
},
"right": {
"x": 0.9265572481413991,
"y": -0.2763083722932726,
"z": -0.2552358699659599
},
"heading": 0.2999999999999998,
"pitch": -0.5,
"roll": 6.283185307179586,
"height": 3999.9999999988663,
"frameIsIdentity": true
}
}
],
"flights": [
{
"step": 1,
"outcome": "complete",
"frames": 62
}
]
},
"a cancelled flight stops where it was": {
"records": [
{