@gisatcz/deckgl-geolib 1.2.0 → 1.2.1-dev.0

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 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 (!options.noDataValue || array[idx] !== options.noDataValue) {
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 (!options.noDataValue || dataArray[pixel] !== options.noDataValue) {
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;