@chrtco/sdk 0.10.22 → 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.cjs
CHANGED
|
@@ -29066,36 +29066,60 @@ var BASE_THEMES = {
|
|
|
29066
29066
|
inlandHalo: "#B9CFDD"
|
|
29067
29067
|
},
|
|
29068
29068
|
DUSK: {
|
|
29069
|
-
//
|
|
29070
|
-
|
|
29069
|
+
// ── Re-derived 2026-09-01: the basemap sits UNDER the chart ──────────
|
|
29070
|
+
// These were the DAY tones scaled by a constant, never measured against
|
|
29071
|
+
// the DUSK chart — so `jurisdiction` came out at L=0.506 against a chart
|
|
29072
|
+
// whose own land (LANDA #8a7d5e) is L=0.209, i.e. the context layer was
|
|
29073
|
+
// 2.4x brighter than the data layer. Now capped at the chart's own land.
|
|
29074
|
+
// The rest of the block rides the same 0.666 channel factor so every
|
|
29075
|
+
// relationship the palette already chose is preserved, only moved down.
|
|
29076
|
+
// `water` is deliberately NOT scaled: it is the reference the land/sea
|
|
29077
|
+
// floor is measured against.
|
|
29078
|
+
earth: "#544E3E",
|
|
29071
29079
|
water: "#161D21",
|
|
29072
|
-
river: "#
|
|
29073
|
-
boundary: "#
|
|
29074
|
-
jurisdiction: "#
|
|
29075
|
-
inlandWater: "#
|
|
29076
|
-
|
|
29077
|
-
|
|
29078
|
-
|
|
29079
|
-
|
|
29080
|
-
|
|
29081
|
-
|
|
29080
|
+
river: "#141B20",
|
|
29081
|
+
boundary: "#293135",
|
|
29082
|
+
jurisdiction: "#867D64",
|
|
29083
|
+
inlandWater: "#62717A",
|
|
29084
|
+
// Label stays DARK here — the halo is still mid-toned, so 3:1 is reachable
|
|
29085
|
+
// downward and a bright label would be a new light source at dusk.
|
|
29086
|
+
stateLine: "#B5A987",
|
|
29087
|
+
stateLabel: "#38342A",
|
|
29088
|
+
stateHalo: "#867D64",
|
|
29089
|
+
inlandShore: "#4D5B67",
|
|
29090
|
+
inlandLabel: "#212629",
|
|
29091
|
+
inlandHalo: "#62717A"
|
|
29082
29092
|
},
|
|
29083
29093
|
NIGHT: {
|
|
29084
|
-
//
|
|
29085
|
-
//
|
|
29086
|
-
//
|
|
29087
|
-
|
|
29094
|
+
// ── Re-derived 2026-09-01 — the owner-reported night defect ──────────
|
|
29095
|
+
// `jurisdiction` was L=0.240 against a chart whose own land (LANDA
|
|
29096
|
+
// #3a3020) is L=0.031: the world basemap was 7.7x BRIGHTER than the chart
|
|
29097
|
+
// it sits under, so at z<11 the uncharted interior read as a pale
|
|
29098
|
+
// continent-sized slab on a night chart. Capped at the chart's own land.
|
|
29099
|
+
//
|
|
29100
|
+
// ⚠ `earth` AND `jurisdiction` CONVERGE HERE, and that is forced, not
|
|
29101
|
+
// sloppy. Holding earth 2:1 above the ocean AND 2:1 below the jurisdiction
|
|
29102
|
+
// tan requires jurisdiction >= L 0.174 — 5.6x the chart's own land. At
|
|
29103
|
+
// night the range between the ocean (L 0.006) and the cap (L 0.031) is too
|
|
29104
|
+
// compressed to carry two land tones. COVERAGE IS STILL SAID, by the
|
|
29105
|
+
// `chrt:hatch-nocoverage` crosshatch, which is a stronger signal than tone
|
|
29106
|
+
// and is the one thing that cannot be lost to palette compression.
|
|
29107
|
+
//
|
|
29108
|
+
// Labels invert to light-on-dark: 3:1 downward is unreachable off a halo
|
|
29109
|
+
// this close to black, and CHRTland's own night town labels already sit at
|
|
29110
|
+
// L=0.177 for exactly this reason.
|
|
29111
|
+
earth: "#333026",
|
|
29088
29112
|
water: "#10161A",
|
|
29089
|
-
river: "#
|
|
29090
|
-
boundary: "#
|
|
29091
|
-
jurisdiction: "#
|
|
29092
|
-
inlandWater: "#
|
|
29093
|
-
stateLine: "#
|
|
29094
|
-
stateLabel: "#
|
|
29095
|
-
stateHalo: "#
|
|
29096
|
-
inlandShore: "#
|
|
29097
|
-
inlandLabel: "#
|
|
29098
|
-
inlandHalo: "#
|
|
29113
|
+
river: "#090D0F",
|
|
29114
|
+
boundary: "#131719",
|
|
29115
|
+
jurisdiction: "#353128",
|
|
29116
|
+
inlandWater: "#232A30",
|
|
29117
|
+
stateLine: "#484236",
|
|
29118
|
+
stateLabel: "#837963",
|
|
29119
|
+
stateHalo: "#353128",
|
|
29120
|
+
inlandShore: "#1C2227",
|
|
29121
|
+
inlandLabel: "#617484",
|
|
29122
|
+
inlandHalo: "#232A30"
|
|
29099
29123
|
}
|
|
29100
29124
|
};
|
|
29101
29125
|
function baseLayers(opts = {}) {
|