@gisatcz/deckgl-geolib 1.2.0 → 1.2.1-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 +2 -2
- 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/cjs/types/cogbitmaplayer/CogBitmapLayer.d.ts +1 -4
- package/dist/cjs/types/cogterrainlayer/CogTerrainLayer.d.ts +1 -4
- package/dist/esm/index.js +2 -2
- 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/dist/esm/types/cogbitmaplayer/CogBitmapLayer.d.ts +1 -4
- package/dist/esm/types/cogterrainlayer/CogTerrainLayer.d.ts +1 -4
- package/package.json +3 -4
- package/rollup.config.mjs +7 -4
- package/src/geoimage/geoimage.ts +2 -2
- package/tsconfig.json +3 -0
package/dist/cjs/index.js
CHANGED
|
@@ -95741,7 +95741,7 @@ class GeoImage {
|
|
|
95741
95741
|
let maxValue = options.maxValue ? options.maxValue : Number.MIN_VALUE;
|
|
95742
95742
|
let minValue = options.minValue ? options.minValue : Number.MAX_VALUE;
|
|
95743
95743
|
for (let idx = 0; idx < array.length; idx += 1) {
|
|
95744
|
-
if (
|
|
95744
|
+
if (options.noDataValue === undefined || array[idx] !== options.noDataValue) {
|
|
95745
95745
|
if (array[idx] > maxValue)
|
|
95746
95746
|
maxValue = array[idx];
|
|
95747
95747
|
if (array[idx] < minValue)
|
|
@@ -95759,7 +95759,7 @@ class GeoImage {
|
|
|
95759
95759
|
const colorValues = options.colorsBasedOnValues ? options.colorsBasedOnValues.map(([, second]) => [...chroma(second).rgb(), 255]) : undefined;
|
|
95760
95760
|
for (let i = 0; i < arrayLength; i += 4) {
|
|
95761
95761
|
let pixelColor = options.nullColor;
|
|
95762
|
-
if (
|
|
95762
|
+
if (options.noDataValue === undefined || dataArray[pixel] !== options.noDataValue) {
|
|
95763
95763
|
if ((options.clipLow != null && dataArray[pixel] <= options.clipLow)
|
|
95764
95764
|
|| (options.clipHigh != null && dataArray[pixel] >= options.clipHigh)) {
|
|
95765
95765
|
pixelColor = options.clippedColor;
|