@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.cjs
CHANGED
|
@@ -28637,6 +28637,9 @@ function bandVariantMinzoom(layer, B) {
|
|
|
28637
28637
|
if (isExemptOpaqueFill(layer) && FILL_FLOOR_FREE_BANDS.has(B)) {
|
|
28638
28638
|
return classMinzoom;
|
|
28639
28639
|
}
|
|
28640
|
+
if (isExemptOpaqueFill(layer)) {
|
|
28641
|
+
return BAND_PRIORITY_RANGES[B].minzoom;
|
|
28642
|
+
}
|
|
28640
28643
|
return Math.max(classMinzoom, BAND_PRIORITY_RANGES[B].minzoom);
|
|
28641
28644
|
}
|
|
28642
28645
|
var GENERALISED_AREA_FILL_CLASSES = /* @__PURE__ */ new Set([
|
|
@@ -30037,7 +30040,9 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
30037
30040
|
}
|
|
30038
30041
|
}
|
|
30039
30042
|
{
|
|
30040
|
-
const TERMINAL_FILL_RE =
|
|
30043
|
+
const TERMINAL_FILL_RE = new RegExp(
|
|
30044
|
+
`^s52-(?:${[...DOMINANCE_EXEMPT_FILL_CLASSES].join("|")})-fill-band[456]$`
|
|
30045
|
+
);
|
|
30041
30046
|
for (const l of layers) {
|
|
30042
30047
|
const lay = l;
|
|
30043
30048
|
if (!TERMINAL_FILL_RE.test(lay.id)) continue;
|
|
@@ -30175,7 +30180,7 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
30175
30180
|
)) {
|
|
30176
30181
|
const src = l;
|
|
30177
30182
|
const landClone = {
|
|
30178
|
-
...l,
|
|
30183
|
+
...asBaseTan(l),
|
|
30179
30184
|
id: `${src.id}-overpair`,
|
|
30180
30185
|
metadata: { ...src.metadata ?? {}, "chrt:role": "charted-land-repaint" }
|
|
30181
30186
|
};
|
|
@@ -30211,6 +30216,21 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
30211
30216
|
...restAbove.slice(pairAt + 1)
|
|
30212
30217
|
];
|
|
30213
30218
|
}
|
|
30219
|
+
{
|
|
30220
|
+
const hsAt = restFinal.findIndex(
|
|
30221
|
+
(l) => l.type === "hillshade"
|
|
30222
|
+
);
|
|
30223
|
+
let lastRepaint = -1;
|
|
30224
|
+
restFinal.forEach((l, i) => {
|
|
30225
|
+
if (/-overpair(-|$)/.test(l.id)) lastRepaint = i;
|
|
30226
|
+
});
|
|
30227
|
+
if (hsAt !== -1 && lastRepaint > hsAt) {
|
|
30228
|
+
const reordered = [...restFinal];
|
|
30229
|
+
const [hs] = reordered.splice(hsAt, 1);
|
|
30230
|
+
reordered.splice(lastRepaint, 0, hs);
|
|
30231
|
+
restFinal = reordered;
|
|
30232
|
+
}
|
|
30233
|
+
}
|
|
30214
30234
|
return [restFinal[0], ...baseBlock, ...seaare, ...ordered, ...restFinal.slice(1)];
|
|
30215
30235
|
})() : layers;
|
|
30216
30236
|
for (const id of [
|