@chrtco/sdk 0.10.25 → 0.10.26
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 +22 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28415,6 +28415,9 @@ function bandVariantMinzoom(layer, B) {
|
|
|
28415
28415
|
if (isExemptOpaqueFill(layer) && FILL_FLOOR_FREE_BANDS.has(B)) {
|
|
28416
28416
|
return classMinzoom;
|
|
28417
28417
|
}
|
|
28418
|
+
if (isExemptOpaqueFill(layer)) {
|
|
28419
|
+
return BAND_PRIORITY_RANGES[B].minzoom;
|
|
28420
|
+
}
|
|
28418
28421
|
return Math.max(classMinzoom, BAND_PRIORITY_RANGES[B].minzoom);
|
|
28419
28422
|
}
|
|
28420
28423
|
var GENERALISED_AREA_FILL_CLASSES = /* @__PURE__ */ new Set([
|
|
@@ -29815,7 +29818,9 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
29815
29818
|
}
|
|
29816
29819
|
}
|
|
29817
29820
|
{
|
|
29818
|
-
const TERMINAL_FILL_RE =
|
|
29821
|
+
const TERMINAL_FILL_RE = new RegExp(
|
|
29822
|
+
`^s52-(?:${[...DOMINANCE_EXEMPT_FILL_CLASSES].join("|")})-fill-band[456]$`
|
|
29823
|
+
);
|
|
29819
29824
|
for (const l of layers) {
|
|
29820
29825
|
const lay = l;
|
|
29821
29826
|
if (!TERMINAL_FILL_RE.test(lay.id)) continue;
|
|
@@ -29953,7 +29958,7 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
29953
29958
|
)) {
|
|
29954
29959
|
const src = l;
|
|
29955
29960
|
const landClone = {
|
|
29956
|
-
...l,
|
|
29961
|
+
...asBaseTan(l),
|
|
29957
29962
|
id: `${src.id}-overpair`,
|
|
29958
29963
|
metadata: { ...src.metadata ?? {}, "chrt:role": "charted-land-repaint" }
|
|
29959
29964
|
};
|
|
@@ -29989,6 +29994,21 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
29989
29994
|
...restAbove.slice(pairAt + 1)
|
|
29990
29995
|
];
|
|
29991
29996
|
}
|
|
29997
|
+
{
|
|
29998
|
+
const hsAt = restFinal.findIndex(
|
|
29999
|
+
(l) => l.type === "hillshade"
|
|
30000
|
+
);
|
|
30001
|
+
let lastRepaint = -1;
|
|
30002
|
+
restFinal.forEach((l, i) => {
|
|
30003
|
+
if (/-overpair(-|$)/.test(l.id)) lastRepaint = i;
|
|
30004
|
+
});
|
|
30005
|
+
if (hsAt !== -1 && lastRepaint > hsAt) {
|
|
30006
|
+
const reordered = [...restFinal];
|
|
30007
|
+
const [hs] = reordered.splice(hsAt, 1);
|
|
30008
|
+
reordered.splice(lastRepaint, 0, hs);
|
|
30009
|
+
restFinal = reordered;
|
|
30010
|
+
}
|
|
30011
|
+
}
|
|
29992
30012
|
return [restFinal[0], ...baseBlock, ...seaare, ...ordered, ...restFinal.slice(1)];
|
|
29993
30013
|
})() : layers;
|
|
29994
30014
|
for (const id of [
|