mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
94138d9698
commit
149f8aad4d
12 files changed
+94
-16
No files matched your search
Vendored
+5
-3
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user