@gisatcz/deckgl-geolib 1.11.0-dev.0 → 1.11.0-dev.1
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/cjs/index.js +3 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/geoimage/geoimage.ts +3 -4
package/dist/esm/index.js
CHANGED
|
@@ -15075,7 +15075,9 @@ class GeoImage {
|
|
|
15075
15075
|
}) : undefined;
|
|
15076
15076
|
for (let i = 0; i < arrayLength; i += 4) {
|
|
15077
15077
|
let pixelColor = options.nullColor;
|
|
15078
|
-
|
|
15078
|
+
// FIXME
|
|
15079
|
+
// eslint-disable-next-line max-len
|
|
15080
|
+
if ((!Number.isNaN(dataArray[pixel])) && (options.noDataValue === undefined || dataArray[pixel] !== options.noDataValue)) {
|
|
15079
15081
|
if ((options.clipLow != null && dataArray[pixel] <= options.clipLow)
|
|
15080
15082
|
|| (options.clipHigh != null && dataArray[pixel] >= options.clipHigh)) {
|
|
15081
15083
|
pixelColor = options.clippedColor;
|
|
@@ -15111,10 +15113,6 @@ class GeoImage {
|
|
|
15111
15113
|
pixelColor[3] = this.scale(dataArray[pixel], options.colorScaleValueRange[0], options.colorScaleValueRange.slice(-1)[0], 0, 255);
|
|
15112
15114
|
}
|
|
15113
15115
|
}
|
|
15114
|
-
// If pixel has null value
|
|
15115
|
-
}
|
|
15116
|
-
else if (Number.isNaN(dataArray[pixel])) {
|
|
15117
|
-
pixelColor = [0, 0, 0, 0];
|
|
15118
15116
|
}
|
|
15119
15117
|
// FIXME
|
|
15120
15118
|
// eslint-disable-next-line
|