@dra2020/baseclient 1.0.78 → 1.0.81
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/baseclient.js +8 -1
- package/dist/baseclient.js.map +1 -1
- package/lib/colors/colors.ts +5 -1
- package/lib/poly/polypack.ts +3 -0
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -407,7 +407,10 @@ function orderedColors(palette) {
|
|
|
407
407
|
if (!OrderedColorTable[palette]) {
|
|
408
408
|
OrderedColorTable[palette] = [];
|
|
409
409
|
for (let i = 0; i < exports.MaxColors; i++) {
|
|
410
|
-
|
|
410
|
+
if (palette === 'jet_r' || palette === 'turbo_r')
|
|
411
|
+
OrderedColorTable[palette].push(colors[Math.floor(DistrictsColorOrder[i] * 2.5) + 12]);
|
|
412
|
+
else
|
|
413
|
+
OrderedColorTable[palette].push(colors[DistrictsColorOrder[i] * 3]);
|
|
411
414
|
}
|
|
412
415
|
}
|
|
413
416
|
return OrderedColorTable[palette];
|
|
@@ -457,6 +460,7 @@ function getColorTable(palette) {
|
|
|
457
460
|
ColorTable[palette].push(exports.EthnicBackgroundColor[i]);
|
|
458
461
|
return ColorTable[palette];
|
|
459
462
|
}
|
|
463
|
+
return ColorTable[palette];
|
|
460
464
|
}
|
|
461
465
|
if (allPaletteNames.includes(palette)) {
|
|
462
466
|
if (!ColorTable[palette])
|
|
@@ -8441,6 +8445,9 @@ function polyPack(coords, prepack) {
|
|
|
8441
8445
|
// Null feature?
|
|
8442
8446
|
if (coords == null || (coords.length !== undefined && coords.length == 0))
|
|
8443
8447
|
return null;
|
|
8448
|
+
// Null geometry?
|
|
8449
|
+
if (coords && coords.type === 'Feature' && coords.geometry == null)
|
|
8450
|
+
return null;
|
|
8444
8451
|
// Actually already a PolyPack?
|
|
8445
8452
|
if (coords.offset !== undefined)
|
|
8446
8453
|
return coords;
|