fix(cctv): register camera point visibility capability

This commit is contained in:
brandonabyrd committed 2026-11-18 17:13:06 -06:00
1 parent 02c60c0a20
commit 28007e20ef
9 files changed
+26 -3

No files matched your search

+2 -1
View File
@@ -43,6 +43,7 @@ export function fitToProjection(sourceW, sourceH) {
}
const _scratchPoints = [];
const HORIZON_MARGIN_M = 200;
export function createFrames({ state: layerState, services, parts, source }) {
/**
@@ -267,7 +268,7 @@ export function createFrames({ state: layerState, services, parts, source }) {
if (placed?.br) points.push(placed.br);
if (placed?.bl) points.push(placed.bl);
// Unknown modes or unsupported cameras must not suppress pictures.
return camera.visiblePoints(points, 200) !== false;
return camera.visiblePoints(points, HORIZON_MARGIN_M) !== false;
}
/**