Commit Graph
13 Commits
Author SHA1 Message Date
German Khokhlov 20647f6549 Merge origin/main into byrdit/cctv-visible-only-fetch
# Conflicts:
#	src/layers/cctv/frames.test.mjs
2026-11-20 17:33:48 +04:00
German Khokhlov 99a70a0e0c fix(cctv): keep the Context camera card's still and tidy the visibility port
The still preview gate looked only at the CCTV panel, so the Context
camera card, which reads the same frame, stopped updating while the
panel was collapsed or another phone sheet was open. A mounted card now
counts itself in the CCTV store, and the still is requested while the
panel or a card is shown; live video still follows the panel only.

Review follow-ups in the same area:
- visiblePoints is registered once, in createCesiumPorts, and drops
  checks for input that cannot happen; the contract documents
  horizonMarginM and when it answers false or null.
- The layer passes the mount and the four corners once each and asks
  findCamera for the port.
- Phone sheet names come from a shared module instead of literals.
- Layer tests cover the fetch gate; the geometry cases moved to the
  camera port tests. Comments and CURRENT-STATE match the code.
2026-11-19 18:28:51 +04:00
brandonabyrd 02c60c0a20 fix(cctv): fail open before projection geometry exists 2026-11-18 17:13:06 -06:00
brandonabyrd b98b9d390f fix(cctv): reuse renderer visibility scratch state 2026-11-18 17:13:06 -06:00
brandonabyrd c0752784d2 fix(cctv): cull frames through renderer camera port 2026-11-18 17:13:06 -06:00
brandonabyrd 5887235894 docs(cctv): describe conservative horizon geometry 2026-11-18 17:13:06 -06:00
brandonabyrd 564383e4b5 fix(cctv): retain far-side culling below ellipsoid 2026-11-18 17:13:06 -06:00
brandonabyrd b1b66e9717 fix(cctv): keep below-ellipsoid planes refreshing 2026-11-18 17:13:06 -06:00
Byrd-IT 9a3fc84935 fix(cctv): address review of #1543 (horizon test, resume guard, no per-frame allocation, mobile sheet)
- frames.test: viewerAt uses Cesium's default far (5e8) so the below-horizon
  test fails without occluder.isPointVisible
- cctvControls: install the resume observer for a still-only panel too
- cctvPresentation: panelShown also requires the Cameras sheet on phones;
  the observer watches body class/data-mobile-sheet
- frames.projectionInView: shared horizonOccluder + scratch sphere/array
2026-11-18 17:13:06 -06:00
Byrd-IT 3bda877a8a perf(cctv): fetch the active camera's pictures only while they can be seen 2026-11-18 17:13:06 -06:00
Said 5b4f5ed4a0 Fix CCTV provider cancellation and credential-safe errors 2026-10-19 23:05:37 +01:00
Said TurkseverandClaude Opus 5.5 35c612c5f6 test(cctv): lock the still draw path and fit-aware dedupe
Drive drawProjectionFrame with a fake runtime and a recording canvas:
a 640x480 still draws at its fitted rectangle over the matte, the same
pixels at the same size skip the redraw, and the same pixels at a new
aspect redraw at the new fit. The last case fails on the pixel-only
signature; the first fails if drawImage stretches to the canvas again.
Expected rectangles now read the canvas size from policy.js.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 16:50:21 +01:00
Daniel Slay 1959b33c48 fix(cctv): test the still fit, redraw on size change, share the matte color 2026-10-19 10:39:41 -04:00