@chrtco/sdk 0.10.9 → 0.10.10
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5476,13 +5476,14 @@ function patternSpriteId(patternName) {
|
|
|
5476
5476
|
|
|
5477
5477
|
// src/atlas/s52-conditional.ts
|
|
5478
5478
|
var DEFAULT_SAFETY_CONTOUR_M = 10;
|
|
5479
|
+
var DEPARE_DEEP_CUT_M = 18.2;
|
|
5479
5480
|
function depareColor(props, ct = "DAY") {
|
|
5480
5481
|
const drval1 = Number(props.DRVAL1 ?? props.drval1 ?? -1);
|
|
5481
5482
|
const drval2 = Number(props.DRVAL2 ?? props.drval2 ?? drval1);
|
|
5482
5483
|
if (drval1 < 0 && drval2 <= 0) return resolveColor("DEPIT", ct);
|
|
5483
5484
|
if (drval1 < 2) return resolveColor("DEPVS", ct);
|
|
5484
5485
|
if (drval1 < 5) return resolveColor("DEPMS", ct);
|
|
5485
|
-
if (drval1 <
|
|
5486
|
+
if (drval1 < DEPARE_DEEP_CUT_M) return resolveColor("DEPMD", ct);
|
|
5486
5487
|
return resolveColor("DEPDW", ct);
|
|
5487
5488
|
}
|
|
5488
5489
|
function depareFillExpression(ct = "DAY") {
|
|
@@ -5498,7 +5499,7 @@ function depareFillExpression(ct = "DAY") {
|
|
|
5498
5499
|
resolveColor("DEPVS", ct),
|
|
5499
5500
|
["<", ["coalesce", ["get", "DRVAL1"], ["get", "drval1"], -1], 5],
|
|
5500
5501
|
resolveColor("DEPMS", ct),
|
|
5501
|
-
["<", ["coalesce", ["get", "DRVAL1"], ["get", "drval1"], -1],
|
|
5502
|
+
["<", ["coalesce", ["get", "DRVAL1"], ["get", "drval1"], -1], DEPARE_DEEP_CUT_M],
|
|
5502
5503
|
resolveColor("DEPMD", ct),
|
|
5503
5504
|
resolveColor("DEPDW", ct)
|
|
5504
5505
|
];
|