Keep shape radii, rim gradients, depth-fail looks, sweep cadence and step camera moves out of the renderer contract

Shapes take their radii in metres; the world annotation ring follows the
camera height itself (ringRadiusAt), resizing on preRender. The radial rim
preset and depthBias go: the launch pad zone draws a canvas image fill made
by the layer. Solid and dashed lines take one depthFail look (solid or
dash) in place of depthFailColor and depthFailDash. sonarCadenceHz goes from
the quality settings: nothing set it, and the sweep moves every 80 ms.

Camera move, look, rotateAround and zoom leave the camera port: the app's pans,
in-place turns, globe turns and zooms are setView views summed over the pose
(geo/eyeMoves), and the Cesium port places a view by direction and up
exactly rather than through heading, pitch and roll. The conformance driver
runs those script steps through setView; the lookAt script turns in place
where it turned about the frame-local axis, and its reference is recorded
again.
This commit is contained in:
Sameh Khamis committed 2026-11-10 04:08:41 -08:00
1 parent 7a376ebefc
commit c8346c9fda
44 files changed
+810 -799

No files matched your search

+4 -2
View File
@@ -32,7 +32,9 @@ function lineItemOf(handle) {
style: handle.dashed
? { kind: 'dash', color, length: 16, pattern16: 255 }
: { kind: 'solid', color },
depthFailColor: handle.depthFailColor ?? null,
depthFail: handle.depthFailColor
? { kind: 'solid', color: handle.depthFailColor }
: null,
meta: { cameraId: handle.cameraId },
show: handle.show !== false,
};
@@ -45,7 +47,7 @@ const lineKey = (item) =>
item.widthPx,
item.style.kind,
item.style.color.join(','),
item.depthFailColor ? item.depthFailColor.join(',') : '',
item.depthFail ? item.depthFail.color.join(',') : '',
item.show,
].join('|');
+2 -2
View File
@@ -39,7 +39,7 @@ test('lines are written as they change, and drawn as their handles say', () => {
widthPx: 1.2,
mode: 'geodesic',
style: { kind: 'solid', color: a.color },
depthFailColor: null,
depthFail: null,
meta: { cameraId: 'cam' },
show: true,
});
@@ -58,7 +58,7 @@ test('lines are written as they change, and drawn as their handles say', () => {
length: 16,
pattern16: 255,
});
assert.deepEqual(cap.depthFailColor, [1, 1, 1, 0.2]);
assert.deepEqual(cap.depthFail, { kind: 'solid', color: [1, 1, 1, 0.2] });
assert.equal(drawSets.roleOfSet(coverage.spec.id), 'coverage');
assert.equal(drawSets.roleOfSet('other:1:lines'), null);