Settle a line outline's width as the whole outline, half on each side

A solid line's outline.widthPx is the outline in all, half on each side and
inside the line's width, as Cesium draws it. The range ring's pulse fronts
pass their halo width whole again, so they keep main's look, and the
conformance check draw.lines.outline pins the width. The lines scene's
outlined line keeps its 2 px edge each side and its references are
re-recorded.
This commit is contained in:
Sameh Khamis committed 2026-11-10 08:59:36 -08:00
1 parent 94138d9698
commit 149f8aad4d
12 files changed
+94 -16

No files matched your search

+5 -3
View File
@@ -196,9 +196,11 @@ export type LineStyle =
kind: 'solid';
color: Color;
/**
* A band `widthPx` wide each side, inside the line's width, drawn in
* the same pass as the line: a translucent halo that does not darken
* where it meets the line. Its colour changes in place.
* An edge `widthPx` wide in all, half of it on each side, inside the
* line's width (a line 8 px wide with an outline of 4 has 2 px of
* outline each side and 4 px of `color` between), drawn in the same
* pass as the line: a translucent edge does not darken where it meets
* the line. Its colour changes in place.
*/
outline?: { color: Color; widthPx: number };
}