@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.d.cts
CHANGED
|
@@ -2557,9 +2557,10 @@ declare function getLookupEntry(layerName: string): LookupEntry;
|
|
|
2557
2557
|
* none is supplied. It matches `custom-style.ts`'s config default.
|
|
2558
2558
|
*
|
|
2559
2559
|
* NOTE: `depareFillExpression` below deliberately does NOT use this — its
|
|
2560
|
-
* 2/5/
|
|
2561
|
-
*
|
|
2562
|
-
*
|
|
2560
|
+
* 2/5/18.2 m bands are the four-shade DEPARE ramp (see DEPARE_DEEP_CUT_M
|
|
2561
|
+
* for why the deep cut is 18.2), a separate concept from the safety
|
|
2562
|
+
* contour. Wiring those to the user's contour would change rendering for
|
|
2563
|
+
* every existing user and needs its own decision.
|
|
2563
2564
|
*/
|
|
2564
2565
|
declare const DEFAULT_SAFETY_CONTOUR_M = 10;
|
|
2565
2566
|
declare function depareColor(props: Record<string, unknown>, ct?: ColorTableName): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2557,9 +2557,10 @@ declare function getLookupEntry(layerName: string): LookupEntry;
|
|
|
2557
2557
|
* none is supplied. It matches `custom-style.ts`'s config default.
|
|
2558
2558
|
*
|
|
2559
2559
|
* NOTE: `depareFillExpression` below deliberately does NOT use this — its
|
|
2560
|
-
* 2/5/
|
|
2561
|
-
*
|
|
2562
|
-
*
|
|
2560
|
+
* 2/5/18.2 m bands are the four-shade DEPARE ramp (see DEPARE_DEEP_CUT_M
|
|
2561
|
+
* for why the deep cut is 18.2), a separate concept from the safety
|
|
2562
|
+
* contour. Wiring those to the user's contour would change rendering for
|
|
2563
|
+
* every existing user and needs its own decision.
|
|
2563
2564
|
*/
|
|
2564
2565
|
declare const DEFAULT_SAFETY_CONTOUR_M = 10;
|
|
2565
2566
|
declare function depareColor(props: Record<string, unknown>, ct?: ColorTableName): string;
|
package/dist/index.js
CHANGED
|
@@ -5270,13 +5270,14 @@ function patternSpriteId(patternName) {
|
|
|
5270
5270
|
|
|
5271
5271
|
// src/atlas/s52-conditional.ts
|
|
5272
5272
|
var DEFAULT_SAFETY_CONTOUR_M = 10;
|
|
5273
|
+
var DEPARE_DEEP_CUT_M = 18.2;
|
|
5273
5274
|
function depareColor(props, ct = "DAY") {
|
|
5274
5275
|
const drval1 = Number(props.DRVAL1 ?? props.drval1 ?? -1);
|
|
5275
5276
|
const drval2 = Number(props.DRVAL2 ?? props.drval2 ?? drval1);
|
|
5276
5277
|
if (drval1 < 0 && drval2 <= 0) return resolveColor("DEPIT", ct);
|
|
5277
5278
|
if (drval1 < 2) return resolveColor("DEPVS", ct);
|
|
5278
5279
|
if (drval1 < 5) return resolveColor("DEPMS", ct);
|
|
5279
|
-
if (drval1 <
|
|
5280
|
+
if (drval1 < DEPARE_DEEP_CUT_M) return resolveColor("DEPMD", ct);
|
|
5280
5281
|
return resolveColor("DEPDW", ct);
|
|
5281
5282
|
}
|
|
5282
5283
|
function depareFillExpression(ct = "DAY") {
|
|
@@ -5292,7 +5293,7 @@ function depareFillExpression(ct = "DAY") {
|
|
|
5292
5293
|
resolveColor("DEPVS", ct),
|
|
5293
5294
|
["<", ["coalesce", ["get", "DRVAL1"], ["get", "drval1"], -1], 5],
|
|
5294
5295
|
resolveColor("DEPMS", ct),
|
|
5295
|
-
["<", ["coalesce", ["get", "DRVAL1"], ["get", "drval1"], -1],
|
|
5296
|
+
["<", ["coalesce", ["get", "DRVAL1"], ["get", "drval1"], -1], DEPARE_DEEP_CUT_M],
|
|
5296
5297
|
resolveColor("DEPMD", ct),
|
|
5297
5298
|
resolveColor("DEPDW", ct)
|
|
5298
5299
|
];
|