@chrtco/sdk 0.10.21 → 0.10.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +50 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28844,36 +28844,60 @@ var BASE_THEMES = {
|
|
|
28844
28844
|
inlandHalo: "#B9CFDD"
|
|
28845
28845
|
},
|
|
28846
28846
|
DUSK: {
|
|
28847
|
-
//
|
|
28848
|
-
|
|
28847
|
+
// ── Re-derived 2026-09-01: the basemap sits UNDER the chart ──────────
|
|
28848
|
+
// These were the DAY tones scaled by a constant, never measured against
|
|
28849
|
+
// the DUSK chart — so `jurisdiction` came out at L=0.506 against a chart
|
|
28850
|
+
// whose own land (LANDA #8a7d5e) is L=0.209, i.e. the context layer was
|
|
28851
|
+
// 2.4x brighter than the data layer. Now capped at the chart's own land.
|
|
28852
|
+
// The rest of the block rides the same 0.666 channel factor so every
|
|
28853
|
+
// relationship the palette already chose is preserved, only moved down.
|
|
28854
|
+
// `water` is deliberately NOT scaled: it is the reference the land/sea
|
|
28855
|
+
// floor is measured against.
|
|
28856
|
+
earth: "#544E3E",
|
|
28849
28857
|
water: "#161D21",
|
|
28850
|
-
river: "#
|
|
28851
|
-
boundary: "#
|
|
28852
|
-
jurisdiction: "#
|
|
28853
|
-
inlandWater: "#
|
|
28854
|
-
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
28858
|
-
|
|
28859
|
-
|
|
28858
|
+
river: "#141B20",
|
|
28859
|
+
boundary: "#293135",
|
|
28860
|
+
jurisdiction: "#867D64",
|
|
28861
|
+
inlandWater: "#62717A",
|
|
28862
|
+
// Label stays DARK here — the halo is still mid-toned, so 3:1 is reachable
|
|
28863
|
+
// downward and a bright label would be a new light source at dusk.
|
|
28864
|
+
stateLine: "#B5A987",
|
|
28865
|
+
stateLabel: "#38342A",
|
|
28866
|
+
stateHalo: "#867D64",
|
|
28867
|
+
inlandShore: "#4D5B67",
|
|
28868
|
+
inlandLabel: "#212629",
|
|
28869
|
+
inlandHalo: "#62717A"
|
|
28860
28870
|
},
|
|
28861
28871
|
NIGHT: {
|
|
28862
|
-
//
|
|
28863
|
-
//
|
|
28864
|
-
//
|
|
28865
|
-
|
|
28872
|
+
// ── Re-derived 2026-09-01 — the owner-reported night defect ──────────
|
|
28873
|
+
// `jurisdiction` was L=0.240 against a chart whose own land (LANDA
|
|
28874
|
+
// #3a3020) is L=0.031: the world basemap was 7.7x BRIGHTER than the chart
|
|
28875
|
+
// it sits under, so at z<11 the uncharted interior read as a pale
|
|
28876
|
+
// continent-sized slab on a night chart. Capped at the chart's own land.
|
|
28877
|
+
//
|
|
28878
|
+
// ⚠ `earth` AND `jurisdiction` CONVERGE HERE, and that is forced, not
|
|
28879
|
+
// sloppy. Holding earth 2:1 above the ocean AND 2:1 below the jurisdiction
|
|
28880
|
+
// tan requires jurisdiction >= L 0.174 — 5.6x the chart's own land. At
|
|
28881
|
+
// night the range between the ocean (L 0.006) and the cap (L 0.031) is too
|
|
28882
|
+
// compressed to carry two land tones. COVERAGE IS STILL SAID, by the
|
|
28883
|
+
// `chrt:hatch-nocoverage` crosshatch, which is a stronger signal than tone
|
|
28884
|
+
// and is the one thing that cannot be lost to palette compression.
|
|
28885
|
+
//
|
|
28886
|
+
// Labels invert to light-on-dark: 3:1 downward is unreachable off a halo
|
|
28887
|
+
// this close to black, and CHRTland's own night town labels already sit at
|
|
28888
|
+
// L=0.177 for exactly this reason.
|
|
28889
|
+
earth: "#333026",
|
|
28866
28890
|
water: "#10161A",
|
|
28867
|
-
river: "#
|
|
28868
|
-
boundary: "#
|
|
28869
|
-
jurisdiction: "#
|
|
28870
|
-
inlandWater: "#
|
|
28871
|
-
stateLine: "#
|
|
28872
|
-
stateLabel: "#
|
|
28873
|
-
stateHalo: "#
|
|
28874
|
-
inlandShore: "#
|
|
28875
|
-
inlandLabel: "#
|
|
28876
|
-
inlandHalo: "#
|
|
28891
|
+
river: "#090D0F",
|
|
28892
|
+
boundary: "#131719",
|
|
28893
|
+
jurisdiction: "#353128",
|
|
28894
|
+
inlandWater: "#232A30",
|
|
28895
|
+
stateLine: "#484236",
|
|
28896
|
+
stateLabel: "#837963",
|
|
28897
|
+
stateHalo: "#353128",
|
|
28898
|
+
inlandShore: "#1C2227",
|
|
28899
|
+
inlandLabel: "#617484",
|
|
28900
|
+
inlandHalo: "#232A30"
|
|
28877
28901
|
}
|
|
28878
28902
|
};
|
|
28879
28903
|
function baseLayers(opts = {}) {
|