mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Draw wildfire perimeters through the renderer's draw port
Perimeter fills are clamped polygon fills with their holes, and fire lines are draped lines along each outer ring, in two draw sets per layer (fire-perimeters:N:fills and :lines). Clicks read the draw hit and match the layer's own set and item ids. Colours, alphas, widths and clamping are unchanged. The layer no longer imports Cesium, so it leaves the allow-list and joins the entries whose callers load the unbound draw factory. Hex palette colours become renderer colours through a small shared helper.
This commit is contained in:
1 parent
d30b89ac8e
commit
3f9089eccb
8 files changed
+282
-125
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { hexColor } from './color.js';
|
||||
|
||||
test('hex colours become renderer colours at the given alpha', () => {
|
||||
assert.deepEqual(hexColor('#ff8000'), [1, 128 / 255, 0, 1]);
|
||||
assert.deepEqual(hexColor('#000000', 0.25), [0, 0, 0, 0.25]);
|
||||
});
|
||||
Reference in new issue
Block a user