Fly layer focus flights through the camera port

flyToBounds takes an easing, as flyTo does: in the contract, the Cesium
port and the reference recorder, pinned by a new conformance trace.

The flights of radio, awareness, CCTV, submarine cables, cyclones, the
launch preview, installations, ALPR, street-level framing, recent
imagery, weather and world focus now go through the renderer's camera
port. Street-level framing cancels its own flight handle rather than
whatever flight is current. worldFocus.js no longer reaches Cesium and
leaves the allow-list.

Layer pose reads stay for each layer's own slice. The local GeoJSON
flight stays on Cesium: gods-eye-view/infrastructure is used with plain
Cesium viewers that have no renderer bound.
This commit is contained in:
Sameh Khamis committed 2026-11-05 20:46:58 -08:00
1 parent 46a53bb49c
commit c5b716b107
31 files changed
+2349 -871

No files matched your search

+1
View File
@@ -182,6 +182,7 @@ export function createCesiumCamera({ scene, camera, report }) {
o.range ?? 0,
),
duration: options.durationS,
easingFunction: options.easing && EASINGS[options.easing],
...callbacks,
},
),
+1
View File
@@ -198,6 +198,7 @@ function cesiumDriver(clock, threshold) {
)
: undefined,
duration: options.durationS,
easingFunction: EASINGS[options.easing],
complete,
cancel,
},
+1 -2
View File
@@ -230,6 +230,5 @@
"src/ui/shareFollow.js",
"src/ui/visualEffects.js",
"src/voice/gevActions.js",
"src/voice/pointerPick.js",
"src/worldFocus.js"
"src/voice/pointerPick.js"
]
+21
View File
@@ -371,6 +371,27 @@ export const CAMERA_SCRIPTS = Object.freeze([
{ record: 'pose' },
],
},
{
name: 'flyToBounds easing',
steps: [
START,
{
do: 'flyToBounds',
args: [
{ center: { ...AUSTIN, height: 0 }, radius: 500 },
{
offset: { heading: 0.5, pitch: -0.4, range: 2500 },
durationS: 1,
easing: 'cubicInOut',
},
],
},
{ do: 'frames', count: 20 },
{ record: 'pose' },
{ do: 'frames', count: 70 },
{ record: 'pose' },
],
},
{
name: 'a cancelled flight stops where it was',
steps: [
@@ -2071,6 +2071,79 @@
}
]
},
"flyToBounds easing": {
"records": [
{
"step": 3,
"kind": "pose",
"value": {
"position": {
"x": -2267093.6902229865,
"y": -16670141.730590489,
"z": 9795550.536889307
},
"direction": {
"x": 0.13436019637409768,
"y": 0.918216318410333,
"z": -0.37259378716678554
},
"up": {
"x": 0.11222044188344235,
"y": 0.3594849211517312,
"z": 0.9263785208477249
},
"right": {
"x": 0.9845577230684848,
"y": -0.1662810394167284,
"z": -0.05474217639712155
},
"heading": 0.06349647744048603,
"pitch": -1.4221294499846318,
"roll": 6.283185231543937,
"height": 13094845.933521682,
"frameIsIdentity": true
}
},
{
"step": 5,
"kind": "pose",
"value": {
"position": {
"x": -744171.8196286416,
"y": -5464810.027402491,
"z": 3194736.500278188
},
"direction": {
"x": 0.5377602708229207,
"y": 0.6774719395626166,
"z": 0.5018422682773198
},
"up": {
"x": 0.1010227917440539,
"y": -0.6427253771880552,
"z": 0.7594066664618568
},
"right": {
"x": 0.8370234684121447,
"y": -0.35768122766471616,
"z": -0.41407227956428677
},
"heading": 0.4998993704309962,
"pitch": -0.4003616646350623,
"roll": 6.283184711710125,
"height": 973.9627016434621,
"frameIsIdentity": true
}
}
],
"flights": [
{
"step": 1,
"outcome": "complete",
"frames": 62
}
]
},
"a cancelled flight stops where it was": {
"records": [
{
+2 -2
View File
@@ -208,9 +208,9 @@ export interface CameraPort {
*/
flyToBounds(
sphere: Sphere,
options?: { offset?: HeadingPitchRange; durationS?: number } & Pick<
options?: { offset?: HeadingPitchRange } & Pick<
FlightOptions,
'onComplete' | 'onCancel'
'durationS' | 'easing' | 'onComplete' | 'onCancel'
>,
): Flight;
cancelFlight(): void;