@vitessce/ome-tiff 3.5.5 → 3.5.7

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.
@@ -2048,7 +2048,7 @@ function registerLoaders(loaders) {
2048
2048
  function getRegisteredLoaders() {
2049
2049
  return getGlobalLoaderRegistry();
2050
2050
  }
2051
- const log$5 = new Log({
2051
+ const log$6 = new Log({
2052
2052
  id: "loaders.gl"
2053
2053
  });
2054
2054
  const EXT_PATTERN = /\.([^.]+)$/;
@@ -2115,7 +2115,7 @@ function selectLoaderInternal(data, loaders, options, context) {
2115
2115
  reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
2116
2116
  if (reason) {
2117
2117
  var _loader;
2118
- log$5.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
2118
+ log$6.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
2119
2119
  }
2120
2120
  return loader;
2121
2121
  }
@@ -2840,7 +2840,7 @@ function checkWebPSupport() {
2840
2840
  return false;
2841
2841
  }
2842
2842
  }
2843
- const log$4 = new Log({
2843
+ const log$5 = new Log({
2844
2844
  id: "deck"
2845
2845
  });
2846
2846
  const logState = {
@@ -2942,13 +2942,13 @@ const getLoggers = (log3) => ({
2942
2942
  });
2943
2943
  let loggers = {};
2944
2944
  {
2945
- loggers = getLoggers(log$4);
2945
+ loggers = getLoggers(log$5);
2946
2946
  }
2947
2947
  function register(handlers) {
2948
2948
  loggers = handlers;
2949
2949
  }
2950
2950
  function debug(eventType, arg1, arg2, arg3) {
2951
- if (log$4.level > 0 && loggers[eventType]) {
2951
+ if (log$5.level > 0 && loggers[eventType]) {
2952
2952
  loggers[eventType].call(null, arg1, arg2, arg3);
2953
2953
  }
2954
2954
  }
@@ -2974,12 +2974,12 @@ if (existingVersion && existingVersion !== version) {
2974
2974
  throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion, " vs ").concat(version));
2975
2975
  }
2976
2976
  if (!existingVersion) {
2977
- log$4.log(1, "deck.gl ".concat(version))();
2977
+ log$5.log(1, "deck.gl ".concat(version))();
2978
2978
  globalThis.deck = {
2979
2979
  ...globalThis.deck,
2980
2980
  VERSION: version,
2981
2981
  version,
2982
- log: log$4,
2982
+ log: log$5,
2983
2983
  _registerLoggers: register
2984
2984
  };
2985
2985
  registerLoaders([jsonLoader, [ImageLoader, {
@@ -2989,7 +2989,7 @@ if (!existingVersion) {
2989
2989
  }]]);
2990
2990
  }
2991
2991
  const deckGlobal = globalThis.deck;
2992
- const log$3 = new Log({
2992
+ const log$4 = new Log({
2993
2993
  id: "luma.gl"
2994
2994
  });
2995
2995
  function assert$a(condition, message) {
@@ -3031,7 +3031,7 @@ function error(msg) {
3031
3031
  globalThis.console.error(msg);
3032
3032
  }
3033
3033
  }
3034
- function log$2(msg) {
3034
+ function log$3(msg) {
3035
3035
  if (globalThis.console && globalThis.console.log) {
3036
3036
  globalThis.console.log(msg);
3037
3037
  }
@@ -3172,7 +3172,7 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
3172
3172
  }
3173
3173
  if (gl.canvas) {
3174
3174
  gl.canvas.addEventListener("webglcontextrestored", () => {
3175
- log$2("OESVertexArrayObject emulation library context restored");
3175
+ log$3("OESVertexArrayObject emulation library context restored");
3176
3176
  self2.reset_();
3177
3177
  }, true);
3178
3178
  }
@@ -4281,16 +4281,16 @@ function instrumentGLContext(gl) {
4281
4281
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4282
4282
  args[_key] = arguments[_key];
4283
4283
  }
4284
- return log$3.log(1, ...args)();
4284
+ return log$4.log(1, ...args)();
4285
4285
  }
4286
4286
  });
4287
4287
  }
4288
4288
  if (isBrowser && debug2) {
4289
4289
  if (!globalThis.makeDebugContext) {
4290
- log$3.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
4290
+ log$4.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
4291
4291
  } else {
4292
4292
  gl = globalThis.makeDebugContext(gl, options);
4293
- log$3.level = Math.max(log$3.level, 1);
4293
+ log$4.level = Math.max(log$4.level, 1);
4294
4294
  }
4295
4295
  }
4296
4296
  gl._instrumented = true;
@@ -4385,7 +4385,7 @@ function logInfo(gl) {
4385
4385
  const info = getContextDebugInfo(gl);
4386
4386
  const driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : "";
4387
4387
  const debug2 = gl.debug ? " debug" : "";
4388
- log$3.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
4388
+ log$4.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
4389
4389
  }
4390
4390
  function getVersion(gl) {
4391
4391
  if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) {
@@ -4397,7 +4397,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
4397
4397
  let clientWidth = "width" in options ? options.width : gl.canvas.clientWidth;
4398
4398
  let clientHeight = "height" in options ? options.height : gl.canvas.clientHeight;
4399
4399
  if (!clientWidth || !clientHeight) {
4400
- log$3.log(1, "Canvas clientWidth/clientHeight is 0")();
4400
+ log$4.log(1, "Canvas clientWidth/clientHeight is 0")();
4401
4401
  devicePixelRatio = 1;
4402
4402
  clientWidth = gl.canvas.width || 1;
4403
4403
  clientHeight = gl.canvas.height || 1;
@@ -4412,7 +4412,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
4412
4412
  gl.canvas.width = canvasWidth;
4413
4413
  gl.canvas.height = canvasHeight;
4414
4414
  if (gl.drawingBufferWidth !== canvasWidth || gl.drawingBufferHeight !== canvasHeight) {
4415
- log$3.warn("Device pixel ratio clamped")();
4415
+ log$4.warn("Device pixel ratio clamped")();
4416
4416
  clampedPixelRatio = Math.min(gl.drawingBufferWidth / clientWidth, gl.drawingBufferHeight / clientHeight);
4417
4417
  gl.canvas.width = Math.floor(clientWidth * clampedPixelRatio);
4418
4418
  gl.canvas.height = Math.floor(clientHeight * clampedPixelRatio);
@@ -4445,12 +4445,12 @@ if (globalThis.luma && globalThis.luma.VERSION !== VERSION$7) {
4445
4445
  }
4446
4446
  if (!globalThis.luma) {
4447
4447
  if (isBrowser$1()) {
4448
- log$3.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
4448
+ log$4.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
4449
4449
  }
4450
4450
  globalThis.luma = globalThis.luma || {
4451
4451
  VERSION: VERSION$7,
4452
4452
  version: VERSION$7,
4453
- log: log$3,
4453
+ log: log$4,
4454
4454
  stats: lumaStats,
4455
4455
  globals: {
4456
4456
  modules: {},
@@ -4518,7 +4518,7 @@ function stubRemovedMethods(instance, className, version2, methodNames) {
4518
4518
  return;
4519
4519
  }
4520
4520
  prototype[methodName] = () => {
4521
- log$3.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
4521
+ log$4.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
4522
4522
  throw new Error(methodName);
4523
4523
  };
4524
4524
  });
@@ -4819,20 +4819,20 @@ function checkProps(className, props, propChecks) {
4819
4819
  if (propName in props) {
4820
4820
  const replacementProp = removedProps[propName];
4821
4821
  const replacement = replacementProp ? "".concat(className, ".").concat(removedProps[propName]) : "N/A";
4822
- log$3.removed("".concat(className, ".").concat(propName), replacement)();
4822
+ log$4.removed("".concat(className, ".").concat(propName), replacement)();
4823
4823
  }
4824
4824
  }
4825
4825
  for (const propName in deprecatedProps) {
4826
4826
  if (propName in props) {
4827
4827
  const replacementProp = deprecatedProps[propName];
4828
- log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4828
+ log$4.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4829
4829
  }
4830
4830
  }
4831
4831
  let newProps = null;
4832
4832
  for (const propName in replacedProps) {
4833
4833
  if (propName in props) {
4834
4834
  const replacementProp = replacedProps[propName];
4835
- log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4835
+ log$4.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4836
4836
  newProps = newProps || Object.assign({}, props);
4837
4837
  newProps[replacementProp] = props[propName];
4838
4838
  delete newProps[propName];
@@ -5217,19 +5217,19 @@ let Buffer$2 = class Buffer2 extends Resource$1 {
5217
5217
  return value;
5218
5218
  }
5219
5219
  get type() {
5220
- log$3.deprecated("Buffer.type", "Buffer.accessor.type")();
5220
+ log$4.deprecated("Buffer.type", "Buffer.accessor.type")();
5221
5221
  return this.accessor.type;
5222
5222
  }
5223
5223
  get bytes() {
5224
- log$3.deprecated("Buffer.bytes", "Buffer.byteLength")();
5224
+ log$4.deprecated("Buffer.bytes", "Buffer.byteLength")();
5225
5225
  return this.byteLength;
5226
5226
  }
5227
5227
  setByteLength(byteLength) {
5228
- log$3.deprecated("setByteLength", "reallocate")();
5228
+ log$4.deprecated("setByteLength", "reallocate")();
5229
5229
  return this.reallocate(byteLength);
5230
5230
  }
5231
5231
  updateAccessor(opts) {
5232
- log$3.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
5232
+ log$4.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
5233
5233
  this.accessor = new Accessor(this.accessor, opts);
5234
5234
  return this;
5235
5235
  }
@@ -5436,7 +5436,7 @@ class Texture extends Resource$1 {
5436
5436
  this.gl.bindTexture(this.target, this.handle);
5437
5437
  }
5438
5438
  if (mipmaps && this._isNPOT()) {
5439
- log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5439
+ log$4.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5440
5440
  mipmaps = false;
5441
5441
  this._updateForNPOT(parameters);
5442
5442
  }
@@ -5512,7 +5512,7 @@ class Texture extends Resource$1 {
5512
5512
  generateMipmap() {
5513
5513
  let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5514
5514
  if (this._isNPOT()) {
5515
- log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5515
+ log$4.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5516
5516
  return this;
5517
5517
  }
5518
5518
  this.mipmaps = true;
@@ -5686,7 +5686,7 @@ class Texture extends Resource$1 {
5686
5686
  this.gl.bindTexture(this.target, null);
5687
5687
  }
5688
5688
  copyFramebuffer() {
5689
- log$3.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
5689
+ log$4.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
5690
5690
  return null;
5691
5691
  }
5692
5692
  getActiveUnit() {
@@ -6017,7 +6017,7 @@ class TextureCube extends Texture {
6017
6017
  this.bind();
6018
6018
  FACES.forEach((face, index2) => {
6019
6019
  if (resolvedFaces[index2].length > 1 && this.opts.mipmaps !== false) {
6020
- log$3.warn("".concat(this.id, " has mipmap and multiple LODs."))();
6020
+ log$4.warn("".concat(this.id, " has mipmap and multiple LODs."))();
6021
6021
  }
6022
6022
  resolvedFaces[index2].forEach((image, lodLevel) => {
6023
6023
  if (width && height) {
@@ -6793,7 +6793,7 @@ function isFeatureSupported(gl, cap) {
6793
6793
  gl.luma.caps[cap] = queryFeature(gl, cap);
6794
6794
  }
6795
6795
  if (!gl.luma.caps[cap]) {
6796
- log$3.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
6796
+ log$4.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
6797
6797
  }
6798
6798
  return gl.luma.caps[cap];
6799
6799
  }
@@ -6967,7 +6967,7 @@ class Framebuffer extends Resource$1 {
6967
6967
  height = this.gl.drawingBufferHeight;
6968
6968
  }
6969
6969
  if (width !== this.width && height !== this.height) {
6970
- log$3.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
6970
+ log$4.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
6971
6971
  }
6972
6972
  for (const attachmentPoint in this.attachments) {
6973
6973
  this.attachments[attachmentPoint].resize({
@@ -7076,27 +7076,27 @@ class Framebuffer extends Resource$1 {
7076
7076
  return this;
7077
7077
  }
7078
7078
  readPixels() {
7079
- log$3.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
7079
+ log$4.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
7080
7080
  return null;
7081
7081
  }
7082
7082
  readPixelsToBuffer() {
7083
- log$3.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
7083
+ log$4.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
7084
7084
  return null;
7085
7085
  }
7086
7086
  copyToDataUrl() {
7087
- log$3.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
7087
+ log$4.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
7088
7088
  return null;
7089
7089
  }
7090
7090
  copyToImage() {
7091
- log$3.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
7091
+ log$4.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
7092
7092
  return null;
7093
7093
  }
7094
7094
  copyToTexture() {
7095
- log$3.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
7095
+ log$4.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
7096
7096
  return null;
7097
7097
  }
7098
7098
  blit() {
7099
- log$3.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
7099
+ log$4.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
7100
7100
  return null;
7101
7101
  }
7102
7102
  invalidate(_ref3) {
@@ -7161,14 +7161,14 @@ class Framebuffer extends Resource$1 {
7161
7161
  log() {
7162
7162
  let logLevel = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
7163
7163
  let message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
7164
- if (logLevel > log$3.level || typeof window === "undefined") {
7164
+ if (logLevel > log$4.level || typeof window === "undefined") {
7165
7165
  return this;
7166
7166
  }
7167
7167
  message = message || "Framebuffer ".concat(this.id);
7168
7168
  const image = copyToDataUrl(this, {
7169
7169
  targetMaxHeight: 100
7170
7170
  });
7171
- log$3.image({
7171
+ log$4.image({
7172
7172
  logLevel,
7173
7173
  message,
7174
7174
  image
@@ -7558,8 +7558,8 @@ class Shader extends Resource$1 {
7558
7558
  errors,
7559
7559
  warnings
7560
7560
  } = parseGLSLCompilerError(infoLog, this.source, this.shaderType, this.id);
7561
- log$3.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
7562
- log$3.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
7561
+ log$4.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
7562
+ log$4.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
7563
7563
  throw new Error("GLSL compilation errors in ".concat(shaderName));
7564
7564
  }
7565
7565
  }
@@ -7667,7 +7667,7 @@ function toTypedArray$1(value, uniformLength, Type2, cache2) {
7667
7667
  }
7668
7668
  const length2 = value.length;
7669
7669
  if (length2 % uniformLength) {
7670
- log$3.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
7670
+ log$4.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
7671
7671
  }
7672
7672
  if (value instanceof Type2) {
7673
7673
  return value;
@@ -8132,13 +8132,13 @@ class Program extends Resource$1 {
8132
8132
  samplers
8133
8133
  } = _ref;
8134
8134
  if (uniforms || samplers) {
8135
- log$3.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
8135
+ log$4.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
8136
8136
  this.setUniforms(uniforms || {});
8137
8137
  }
8138
- if (log$3.priority >= logPriority) {
8138
+ if (log$4.priority >= logPriority) {
8139
8139
  const fb = framebuffer ? framebuffer.id : "default";
8140
8140
  const message = "mode=".concat(getKey(this.gl, drawMode), " verts=").concat(vertexCount, " ") + "instances=".concat(instanceCount, " indexType=").concat(getKey(this.gl, indexType), " ") + "isInstanced=".concat(isInstanced, " isIndexed=").concat(isIndexed, " ") + "Framebuffer=".concat(fb);
8141
- log$3.log(logPriority, message)();
8141
+ log$4.log(logPriority, message)();
8142
8142
  }
8143
8143
  assert$9(vertexArray);
8144
8144
  this.gl.useProgram(this.handle);
@@ -8177,7 +8177,7 @@ class Program extends Resource$1 {
8177
8177
  }
8178
8178
  setUniforms() {
8179
8179
  let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8180
- if (log$3.priority >= 2) {
8180
+ if (log$4.priority >= 2) {
8181
8181
  checkUniformValues(uniforms, this.id, this._uniformSetters);
8182
8182
  }
8183
8183
  this.gl.useProgram(this.handle);
@@ -8278,10 +8278,10 @@ class Program extends Resource$1 {
8278
8278
  } = this;
8279
8279
  gl.attachShader(this.handle, this.vs.handle);
8280
8280
  gl.attachShader(this.handle, this.fs.handle);
8281
- log$3.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8281
+ log$4.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8282
8282
  gl.linkProgram(this.handle);
8283
- log$3.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8284
- if (gl.debug || log$3.level > 0) {
8283
+ log$4.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8284
+ if (gl.debug || log$4.level > 0) {
8285
8285
  const linked = gl.getProgramParameter(this.handle, 35714);
8286
8286
  if (!linked) {
8287
8287
  throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));
@@ -8504,7 +8504,7 @@ class TransformFeedback extends Resource$1 {
8504
8504
  } = this._getBufferParams(bufferOrParams);
8505
8505
  if (location < 0) {
8506
8506
  this.unused[locationOrName] = buffer2;
8507
- log$3.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
8507
+ log$4.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
8508
8508
  return this;
8509
8509
  }
8510
8510
  this.buffers[location] = bufferOrParams;
@@ -9053,7 +9053,7 @@ class VertexArray {
9053
9053
  } = this._getAttributeIndex(locationOrName);
9054
9054
  if (!Number.isFinite(location) || location < 0) {
9055
9055
  this.unused[locationOrName] = value;
9056
- log$3.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
9056
+ log$4.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
9057
9057
  return INVALID_RESULT;
9058
9058
  }
9059
9059
  const accessInfo = this._getAttributeInfo(name2 || location);
@@ -9191,7 +9191,7 @@ class VertexArray {
9191
9191
  setElements() {
9192
9192
  let elementBuffer = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
9193
9193
  let accessor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9194
- log$3.deprecated("setElements", "setElementBuffer")();
9194
+ log$4.deprecated("setElements", "setElementBuffer")();
9195
9195
  return this.setElementBuffer(elementBuffer, accessor);
9196
9196
  }
9197
9197
  }
@@ -9485,7 +9485,7 @@ class AnimationLoop {
9485
9485
  useDevicePixels = true
9486
9486
  } = props;
9487
9487
  if ("useDevicePixelRatio" in props) {
9488
- log$3.deprecated("useDevicePixelRatio", "useDevicePixels")();
9488
+ log$4.deprecated("useDevicePixelRatio", "useDevicePixels")();
9489
9489
  useDevicePixels = props.useDevicePixelRatio;
9490
9490
  }
9491
9491
  this.props = {
@@ -9651,7 +9651,7 @@ class AnimationLoop {
9651
9651
  return element ? Number(element.value) : defaultValue2;
9652
9652
  }
9653
9653
  setViewParameters() {
9654
- log$3.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
9654
+ log$4.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
9655
9655
  return this;
9656
9656
  }
9657
9657
  _startLoop() {
@@ -14960,7 +14960,7 @@ class Model {
14960
14960
  this.updateModuleSettings(moduleSettings);
14961
14961
  this.setUniforms(uniforms);
14962
14962
  let logPriority;
14963
- if (log$3.priority >= LOG_DRAW_PRIORITY) {
14963
+ if (log$4.priority >= LOG_DRAW_PRIORITY) {
14964
14964
  logPriority = this._logDrawCallStart(LOG_DRAW_PRIORITY);
14965
14965
  }
14966
14966
  const drawParams = this.vertexArray.getDrawParams();
@@ -14971,7 +14971,7 @@ class Model {
14971
14971
  vertexArrayInstanced = drawParams.isInstanced
14972
14972
  } = this.props;
14973
14973
  if (vertexArrayInstanced && !this.isInstanced) {
14974
- log$3.warn("Found instanced attributes on non-instanced model", this.id)();
14974
+ log$4.warn("Found instanced attributes on non-instanced model", this.id)();
14975
14975
  }
14976
14976
  const {
14977
14977
  isInstanced,
@@ -14999,7 +14999,7 @@ class Model {
14999
14999
  offset: isIndexed ? indexOffset : 0
15000
15000
  }));
15001
15001
  onAfterRender();
15002
- if (log$3.priority >= LOG_DRAW_PRIORITY) {
15002
+ if (log$4.priority >= LOG_DRAW_PRIORITY) {
15003
15003
  this._logDrawCallEnd(logPriority, vertexArray, framebuffer);
15004
15004
  }
15005
15005
  return didDraw;
@@ -15034,7 +15034,7 @@ class Model {
15034
15034
  }
15035
15035
  render() {
15036
15036
  let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
15037
- log$3.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
15037
+ log$4.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
15038
15038
  return this.setUniforms(uniforms).draw();
15039
15039
  }
15040
15040
  _setModelProps(props) {
@@ -15146,8 +15146,8 @@ class Model {
15146
15146
  return void 0;
15147
15147
  }
15148
15148
  this.lastLogTime = Date.now();
15149
- log$3.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
15150
- collapsed: log$3.level <= 2
15149
+ log$4.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
15150
+ collapsed: log$4.level <= 2
15151
15151
  })();
15152
15152
  return logLevel;
15153
15153
  }
@@ -15179,22 +15179,22 @@ class Model {
15179
15179
  undefinedOnly: true
15180
15180
  });
15181
15181
  if (missingCount > 0) {
15182
- log$3.log("MISSING UNIFORMS", Object.keys(missingTable))();
15182
+ log$4.log("MISSING UNIFORMS", Object.keys(missingTable))();
15183
15183
  }
15184
15184
  if (unusedCount > 0) {
15185
- log$3.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
15185
+ log$4.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
15186
15186
  }
15187
15187
  const configTable = getDebugTableForProgramConfiguration(this.vertexArray.configuration);
15188
- log$3.table(logLevel, attributeTable)();
15189
- log$3.table(logLevel, uniformTable)();
15190
- log$3.table(logLevel + 1, configTable)();
15188
+ log$4.table(logLevel, attributeTable)();
15189
+ log$4.table(logLevel, uniformTable)();
15190
+ log$4.table(logLevel + 1, configTable)();
15191
15191
  if (framebuffer) {
15192
15192
  framebuffer.log({
15193
15193
  logLevel: LOG_DRAW_PRIORITY,
15194
15194
  message: "Rendered to ".concat(framebuffer.id)
15195
15195
  });
15196
15196
  }
15197
- log$3.groupEnd(LOG_DRAW_PRIORITY)();
15197
+ log$4.groupEnd(LOG_DRAW_PRIORITY)();
15198
15198
  }
15199
15199
  }
15200
15200
  class BufferTransform {
@@ -16885,7 +16885,7 @@ const esm$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
16885
16885
  instrumentGLContext,
16886
16886
  isWebGL,
16887
16887
  isWebGL2: isWebGL2$1,
16888
- log: log$3,
16888
+ log: log$4,
16889
16889
  lumaStats,
16890
16890
  normalizeShaderModule,
16891
16891
  pbr,
@@ -16916,7 +16916,7 @@ const COORDINATE_SYSTEM = {
16916
16916
  };
16917
16917
  Object.defineProperty(COORDINATE_SYSTEM, "IDENTITY", {
16918
16918
  get: () => {
16919
- log$4.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
16919
+ log$5.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
16920
16920
  return 0;
16921
16921
  }
16922
16922
  });
@@ -18918,7 +18918,7 @@ class Viewport {
18918
18918
  this.pixelProjectionMatrix = pixelProjectionMatrix;
18919
18919
  this.pixelUnprojectionMatrix = invert$1(createMat4(), this.pixelProjectionMatrix);
18920
18920
  if (!this.pixelUnprojectionMatrix) {
18921
- log$4.warn("Pixel project matrix not invertible")();
18921
+ log$5.warn("Pixel project matrix not invertible")();
18922
18922
  }
18923
18923
  }
18924
18924
  }
@@ -19867,7 +19867,7 @@ class LayerManager {
19867
19867
  const oldLayerMap = {};
19868
19868
  for (const oldLayer of oldLayers) {
19869
19869
  if (oldLayerMap[oldLayer.id]) {
19870
- log$4.warn("Multiple old layers with same id ".concat(oldLayer.id))();
19870
+ log$5.warn("Multiple old layers with same id ".concat(oldLayer.id))();
19871
19871
  } else {
19872
19872
  oldLayerMap[oldLayer.id] = oldLayer;
19873
19873
  }
@@ -19890,7 +19890,7 @@ class LayerManager {
19890
19890
  newLayer.context = this.context;
19891
19891
  const oldLayer = oldLayerMap[newLayer.id];
19892
19892
  if (oldLayer === null) {
19893
- log$4.warn("Multiple new layers with same id ".concat(newLayer.id))();
19893
+ log$5.warn("Multiple new layers with same id ".concat(newLayer.id))();
19894
19894
  }
19895
19895
  oldLayerMap[newLayer.id] = null;
19896
19896
  let sublayers = null;
@@ -20126,7 +20126,7 @@ class ViewManager {
20126
20126
  }
20127
20127
  this.viewState = viewState;
20128
20128
  } else {
20129
- log$4.warn("missing `viewState` or `initialViewState`")();
20129
+ log$5.warn("missing `viewState` or `initialViewState`")();
20130
20130
  }
20131
20131
  }
20132
20132
  _onViewStateChange(viewId, event) {
@@ -22429,7 +22429,7 @@ class MaskEffect {
22429
22429
  let channelInfo = channelMap[id];
22430
22430
  if (!channelInfo) {
22431
22431
  if (++channelCount > 4) {
22432
- log$4.warn("Too many mask layers. The max supported is 4")();
22432
+ log$5.warn("Too many mask layers. The max supported is 4")();
22433
22433
  continue;
22434
22434
  }
22435
22435
  channelInfo = {
@@ -22654,7 +22654,7 @@ function encodeColor(encoded, layer, viewport) {
22654
22654
  byLayer.set(layer, entry);
22655
22655
  byAlpha[a2] = entry;
22656
22656
  } else {
22657
- log$4.warn("Too many pickable layers, only picking the first 255")();
22657
+ log$5.warn("Too many pickable layers, only picking the first 255")();
22658
22658
  a2 = 0;
22659
22659
  }
22660
22660
  }
@@ -22825,7 +22825,7 @@ function getClosestObject({
22825
22825
  pickedY: y2 + dy
22826
22826
  };
22827
22827
  }
22828
- log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
22828
+ log$5.error("Picked non-existent layer. Is picking buffer corrupt?")();
22829
22829
  }
22830
22830
  return NO_PICKED_OBJECT;
22831
22831
  }
@@ -22848,7 +22848,7 @@ function getUniqueObjects({
22848
22848
  color: pickedColor
22849
22849
  });
22850
22850
  } else {
22851
- log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
22851
+ log$5.error("Picked non-existent layer. Is picking buffer corrupt?")();
22852
22852
  }
22853
22853
  }
22854
22854
  }
@@ -26107,7 +26107,7 @@ const defaultProps$M = {
26107
26107
  onBeforeRender: noop$2,
26108
26108
  onAfterRender: noop$2,
26109
26109
  onLoad: noop$2,
26110
- onError: (error2) => log$4.error(error2.message)(),
26110
+ onError: (error2) => log$5.error(error2.message)(),
26111
26111
  onHover: null,
26112
26112
  onClick: null,
26113
26113
  onDragStart: null,
@@ -26222,10 +26222,10 @@ class Deck {
26222
26222
  isDragging: false
26223
26223
  };
26224
26224
  if (props.viewState && props.initialViewState) {
26225
- log$4.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
26225
+ log$5.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
26226
26226
  }
26227
26227
  if (getBrowser() === "IE") {
26228
- log$4.warn("IE 11 is not supported")();
26228
+ log$5.warn("IE 11 is not supported")();
26229
26229
  }
26230
26230
  this.viewState = props.initialViewState;
26231
26231
  if (!props.gl) {
@@ -26288,10 +26288,10 @@ class Deck {
26288
26288
  setProps(props) {
26289
26289
  this.stats.get("setProps Time").timeStart();
26290
26290
  if ("onLayerHover" in props) {
26291
- log$4.removed("onLayerHover", "onHover")();
26291
+ log$5.removed("onLayerHover", "onHover")();
26292
26292
  }
26293
26293
  if ("onLayerClick" in props) {
26294
- log$4.removed("onLayerClick", "onClick")();
26294
+ log$5.removed("onLayerClick", "onClick")();
26295
26295
  }
26296
26296
  if (props.initialViewState && !deepEqual$2(this.props.initialViewState, props.initialViewState)) {
26297
26297
  this.viewState = props.initialViewState;
@@ -26638,7 +26638,7 @@ class Deck {
26638
26638
  if (this._metricsCounter++ % 60 === 0) {
26639
26639
  this._getMetrics();
26640
26640
  this.stats.reset();
26641
- log$4.table(4, this.metrics)();
26641
+ log$5.table(4, this.metrics)();
26642
26642
  if (this.props._onMetrics) {
26643
26643
  this.props._onMetrics(this.metrics);
26644
26644
  }
@@ -26778,7 +26778,7 @@ function getStride(accessor) {
26778
26778
  }
26779
26779
  function resolveShaderAttribute(baseAccessor, shaderAttributeOptions) {
26780
26780
  if (shaderAttributeOptions.offset) {
26781
- log$4.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
26781
+ log$5.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
26782
26782
  }
26783
26783
  const stride = getStride(baseAccessor);
26784
26784
  const vertexOffset = shaderAttributeOptions.vertexOffset !== void 0 ? shaderAttributeOptions.vertexOffset : baseAccessor.vertexOffset || 0;
@@ -27093,7 +27093,7 @@ class DataColumn {
27093
27093
  throw new Error("Attribute ".concat(this.id, " does not support ").concat(value.constructor.name));
27094
27094
  }
27095
27095
  if (!(value instanceof ArrayType) && this.settings.normalized && !("normalized" in opts)) {
27096
- log$4.warn("Attribute ".concat(this.id, " is normalized"))();
27096
+ log$5.warn("Attribute ".concat(this.id, " is normalized"))();
27097
27097
  }
27098
27098
  }
27099
27099
  normalizeConstant(value) {
@@ -28151,7 +28151,7 @@ class AttributeTransitionManager {
28151
28151
  let isNew = !transition || transition.type !== settings.type;
28152
28152
  if (isNew) {
28153
28153
  if (!this.isSupported) {
28154
- log$4.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
28154
+ log$5.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
28155
28155
  return;
28156
28156
  }
28157
28157
  if (transition) {
@@ -28165,7 +28165,7 @@ class AttributeTransitionManager {
28165
28165
  gl: this.gl
28166
28166
  });
28167
28167
  } else {
28168
- log$4.error("unsupported transition type '".concat(settings.type, "'"))();
28168
+ log$5.error("unsupported transition type '".concat(settings.type, "'"))();
28169
28169
  isNew = false;
28170
28170
  }
28171
28171
  }
@@ -28270,7 +28270,7 @@ class AttributeManager {
28270
28270
  attribute.startIndices = startIndices;
28271
28271
  attribute.numInstances = numInstances;
28272
28272
  if (props[attributeName]) {
28273
- log$4.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
28273
+ log$5.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
28274
28274
  }
28275
28275
  if (attribute.setExternalBuffer(buffers[attributeName]))
28276
28276
  ;
@@ -28511,7 +28511,7 @@ class UniformTransitionManager {
28511
28511
  }
28512
28512
  const TransitionType = TRANSITION_TYPES[settings.type];
28513
28513
  if (!TransitionType) {
28514
- log$4.error("unsupported transition type '".concat(settings.type, "'"))();
28514
+ log$5.error("unsupported transition type '".concat(settings.type, "'"))();
28515
28515
  return;
28516
28516
  }
28517
28517
  const transition = new TransitionType(this.timeline);
@@ -29107,7 +29107,7 @@ function addDeprecatedPropsToPropPrototype(defaultProps2, deprecatedProps) {
29107
29107
  this[newPropName] = newValue;
29108
29108
  }
29109
29109
  }
29110
- log$4.deprecated(nameStr, deprecatedProps[propName].join("/"))();
29110
+ log$5.deprecated(nameStr, deprecatedProps[propName].join("/"))();
29111
29111
  }
29112
29112
  });
29113
29113
  }
@@ -29166,7 +29166,7 @@ function getOwnProperty(object2, prop) {
29166
29166
  function getComponentName(componentClass) {
29167
29167
  const componentName = getOwnProperty(componentClass, "layerName") || getOwnProperty(componentClass, "componentName");
29168
29168
  if (!componentName) {
29169
- log$4.once(0, "".concat(componentClass.name, ".componentName not specified"))();
29169
+ log$5.once(0, "".concat(componentClass.name, ".componentName not specified"))();
29170
29170
  }
29171
29171
  return componentName || componentClass.name;
29172
29172
  }
@@ -29995,7 +29995,7 @@ class Layer extends Component {
29995
29995
  this.internalState.usesPickingColorCache = true;
29996
29996
  if (cacheSize < numInstances) {
29997
29997
  if (numInstances > MAX_PICKING_COLOR_CACHE_SIZE) {
29998
- log$4.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
29998
+ log$5.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
29999
29999
  }
30000
30000
  pickingColorCache = defaultTypedArrayManager.allocate(pickingColorCache, numInstances, {
30001
30001
  size: 3,
@@ -30077,7 +30077,7 @@ class Layer extends Component {
30077
30077
  this.state = {};
30078
30078
  Object.defineProperty(this.state, "attributeManager", {
30079
30079
  get: () => {
30080
- log$4.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
30080
+ log$5.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
30081
30081
  return attributeManager;
30082
30082
  }
30083
30083
  });
@@ -31376,7 +31376,7 @@ const esm$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
31376
31376
  createIterable,
31377
31377
  fp64LowPart,
31378
31378
  gouraudLighting,
31379
- log: log$4,
31379
+ log: log$5,
31380
31380
  phongLighting,
31381
31381
  picking,
31382
31382
  project: project$1,
@@ -32437,7 +32437,7 @@ class IconLayer extends Layer {
32437
32437
  if (onIconError) {
32438
32438
  onIconError(evt);
32439
32439
  } else {
32440
- log$4.error(evt.error.message)();
32440
+ log$5.error(evt.error.message)();
32441
32441
  }
32442
32442
  }
32443
32443
  getInstanceOffset(icon) {
@@ -33854,7 +33854,7 @@ function tesselateColumn(props) {
33854
33854
  vertices
33855
33855
  } = props;
33856
33856
  if (vertices) {
33857
- log$4.assert(vertices.length >= nradial);
33857
+ log$5.assert(vertices.length >= nradial);
33858
33858
  vertices = vertices.flatMap((v) => [v[0], v[1]]);
33859
33859
  modifyPolygonWindingDirection(vertices, WINDING.COUNTER_CLOCKWISE);
33860
33860
  }
@@ -35861,7 +35861,7 @@ class PolygonLayer extends CompositeLayer {
35861
35861
  paths: []
35862
35862
  };
35863
35863
  if (this.props.getLineDashArray) {
35864
- log$4.removed("getLineDashArray", "PathStyleExtension")();
35864
+ log$5.removed("getLineDashArray", "PathStyleExtension")();
35865
35865
  }
35866
35866
  }
35867
35867
  updateState({
@@ -36133,7 +36133,7 @@ class MultiIconLayer extends IconLayer {
36133
36133
  });
36134
36134
  }
36135
36135
  if (!props.sdf && props.outlineWidth) {
36136
- log$4.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
36136
+ log$5.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
36137
36137
  }
36138
36138
  }
36139
36139
  draw(params) {
@@ -36436,7 +36436,7 @@ function transformRow(line, startIndex, endIndex, iconMapping, leftOffsets, rowS
36436
36436
  leftOffsets[i2] = x2 + frame.width / 2;
36437
36437
  x2 += frame.width;
36438
36438
  } else {
36439
- log$4.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
36439
+ log$5.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
36440
36440
  leftOffsets[i2] = x2;
36441
36441
  x2 += MISSING_CHAR_WIDTH;
36442
36442
  }
@@ -36630,7 +36630,7 @@ function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
36630
36630
  ctx.textAlign = "left";
36631
36631
  }
36632
36632
  function setFontAtlasCacheLimit(limit) {
36633
- log$4.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
36633
+ log$5.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
36634
36634
  cache = new LRUCache(limit);
36635
36635
  }
36636
36636
  class FontAtlasManager {
@@ -37452,12 +37452,12 @@ function getGeojsonFeatures(geojson) {
37452
37452
  if (Array.isArray(geojson)) {
37453
37453
  return geojson;
37454
37454
  }
37455
- log$4.assert(geojson.type, "GeoJSON does not have type");
37455
+ log$5.assert(geojson.type, "GeoJSON does not have type");
37456
37456
  switch (geojson.type) {
37457
37457
  case "Feature":
37458
37458
  return [geojson];
37459
37459
  case "FeatureCollection":
37460
- log$4.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
37460
+ log$5.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
37461
37461
  return geojson.features;
37462
37462
  default:
37463
37463
  return [{
@@ -37485,7 +37485,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
37485
37485
  continue;
37486
37486
  }
37487
37487
  if (geometry2.type === "GeometryCollection") {
37488
- log$4.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
37488
+ log$5.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
37489
37489
  const {
37490
37490
  geometries
37491
37491
  } = geometry2;
@@ -37511,7 +37511,7 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
37511
37511
  polygonOutlineFeatures
37512
37512
  } = separated;
37513
37513
  if (!validateGeometry(type2, coordinates2)) {
37514
- log$4.warn("".concat(type2, " coordinates are malformed"))();
37514
+ log$5.warn("".concat(type2, " coordinates are malformed"))();
37515
37515
  return;
37516
37516
  }
37517
37517
  switch (type2) {
@@ -37588,7 +37588,7 @@ const COORDINATE_NEST_LEVEL = {
37588
37588
  };
37589
37589
  function validateGeometry(type2, coordinates2) {
37590
37590
  let nestLevel = COORDINATE_NEST_LEVEL[type2];
37591
- log$4.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
37591
+ log$5.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
37592
37592
  while (coordinates2 && --nestLevel > 0) {
37593
37593
  coordinates2 = coordinates2[0];
37594
37594
  }
@@ -38856,7 +38856,7 @@ class Tile2DHeader {
38856
38856
  get byteLength() {
38857
38857
  const result = this.content ? this.content.byteLength : 0;
38858
38858
  if (!Number.isFinite(result)) {
38859
- log$4.error("byteLength not defined in tile data")();
38859
+ log$5.error("byteLength not defined in tile data")();
38860
38860
  }
38861
38861
  return result;
38862
38862
  }
@@ -52651,7 +52651,7 @@ function validateGeometryAttributes$1(attributes, useMeshColors) {
52651
52651
  value: new Float32Array([1, 1, 1])
52652
52652
  };
52653
52653
  }
52654
- log$4.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
52654
+ log$5.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
52655
52655
  }
52656
52656
  function getGeometry(data, useMeshColors) {
52657
52657
  if (data.attributes) {
@@ -52993,7 +52993,7 @@ class GroupNode extends ScenegraphNode {
52993
52993
  const {
52994
52994
  children = []
52995
52995
  } = props;
52996
- log$3.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
52996
+ log$4.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
52997
52997
  super(props);
52998
52998
  this.children = children;
52999
52999
  }
@@ -53185,7 +53185,7 @@ function interpolate$1(time, _ref2, target, path) {
53185
53185
  target[path] = [1, 1, 1];
53186
53186
  break;
53187
53187
  default:
53188
- log$3.warn("Bad animation path ".concat(path))();
53188
+ log$4.warn("Bad animation path ".concat(path))();
53189
53189
  }
53190
53190
  }
53191
53191
  assert$9(target[path].length === output[previousIndex].length);
@@ -53220,7 +53220,7 @@ function interpolate$1(time, _ref2, target, path) {
53220
53220
  }
53221
53221
  break;
53222
53222
  default:
53223
- log$3.warn("Interpolation ".concat(interpolation, " not supported"))();
53223
+ log$4.warn("Interpolation ".concat(interpolation, " not supported"))();
53224
53224
  break;
53225
53225
  }
53226
53226
  }
@@ -53466,7 +53466,7 @@ class GLTFMaterialParser {
53466
53466
  this.defines.ALPHA_CUTOFF = 1;
53467
53467
  this.uniforms.u_AlphaCutoff = alphaCutoff;
53468
53468
  } else if (material.alphaMode === "BLEND") {
53469
- log$3.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
53469
+ log$4.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
53470
53470
  Object.assign(this.parameters, {
53471
53471
  blend: true,
53472
53472
  blendEquation: this.gl.FUNC_ADD,
@@ -53495,7 +53495,7 @@ function createGLTFModel(gl, options) {
53495
53495
  modelOptions
53496
53496
  } = options;
53497
53497
  const materialParser = new GLTFMaterialParser(gl, options);
53498
- log$3.info(4, "createGLTFModel defines: ", materialParser.defines)();
53498
+ log$4.info(4, "createGLTFModel defines: ", materialParser.defines)();
53499
53499
  const managedResources = [];
53500
53500
  managedResources.push(...materialParser.generatedTextures);
53501
53501
  managedResources.push(...Object.values(attributes).map((attribute) => attribute.buffer));
@@ -53605,7 +53605,7 @@ class GLTFInstantiator {
53605
53605
  return gltfMesh._mesh;
53606
53606
  }
53607
53607
  getVertexCount(attributes) {
53608
- log$3.warn("getVertexCount() not found")();
53608
+ log$4.warn("getVertexCount() not found")();
53609
53609
  }
53610
53610
  createPrimitive(gltfPrimitive, i2, gltfMesh) {
53611
53611
  const model = createGLTFModel(this.gl, Object.assign({
@@ -53626,7 +53626,7 @@ class GLTFInstantiator {
53626
53626
  if (indices) {
53627
53627
  loadedAttributes.indices = this.createAccessor(indices, this.createBuffer(indices, this.gl.ELEMENT_ARRAY_BUFFER));
53628
53628
  }
53629
- log$3.info(4, "glTF Attributes", {
53629
+ log$4.info(4, "glTF Attributes", {
53630
53630
  attributes,
53631
53631
  indices,
53632
53632
  generated: loadedAttributes
@@ -56952,7 +56952,7 @@ class ScenegraphLayer extends Layer {
56952
56952
  };
56953
56953
  waitForGLTFAssets(gltfObjects).then(() => this.setNeedsRedraw());
56954
56954
  } else if (props.scenegraph) {
56955
- log$4.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
56955
+ log$5.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
56956
56956
  scenegraphData = props.scenegraph;
56957
56957
  }
56958
56958
  const options = {
@@ -56970,7 +56970,7 @@ class ScenegraphLayer extends Layer {
56970
56970
  animator
56971
56971
  });
56972
56972
  } else if (scenegraph !== null) {
56973
- log$4.warn("invalid scenegraph:", scenegraph)();
56973
+ log$5.warn("invalid scenegraph:", scenegraph)();
56974
56974
  }
56975
56975
  }
56976
56976
  _applyAllAttributes(scenegraph) {
@@ -56997,7 +56997,7 @@ class ScenegraphLayer extends Layer {
56997
56997
  if (number2 >= 0 && number2 < animations.length) {
56998
56998
  Object.assign(animations[number2], value);
56999
56999
  } else {
57000
- log$4.warn("animation ".concat(key, " not found"))();
57000
+ log$5.warn("animation ".concat(key, " not found"))();
57001
57001
  }
57002
57002
  } else {
57003
57003
  const findResult = animations.find(({
@@ -57006,7 +57006,7 @@ class ScenegraphLayer extends Layer {
57006
57006
  if (findResult) {
57007
57007
  Object.assign(findResult, value);
57008
57008
  } else {
57009
- log$4.warn("animation ".concat(key, " not found"))();
57009
+ log$5.warn("animation ".concat(key, " not found"))();
57010
57010
  }
57011
57011
  }
57012
57012
  });
@@ -61477,7 +61477,7 @@ class Tile3DLayer extends CompositeLayer {
61477
61477
  }
61478
61478
  initializeState() {
61479
61479
  if ("onTileLoadFail" in this.props) {
61480
- log$4.removed("onTileLoadFail", "onTileError")();
61480
+ log$5.removed("onTileLoadFail", "onTileError")();
61481
61481
  }
61482
61482
  this.state = {
61483
61483
  layerMap: {},
@@ -62647,7 +62647,7 @@ class TerrainLayer extends CompositeLayer {
62647
62647
  });
62648
62648
  }
62649
62649
  if (props.workerUrl) {
62650
- log$4.removed("workerUrl", "loadOptions.terrain.workerUrl")();
62650
+ log$5.removed("workerUrl", "loadOptions.terrain.workerUrl")();
62651
62651
  }
62652
62652
  }
62653
62653
  loadTerrain({
@@ -65097,7 +65097,7 @@ class MVTLayer extends TileLayer {
65097
65097
  }
65098
65098
  const subLayers = super.renderSubLayers(props);
65099
65099
  if (this.state.binary && !(subLayers instanceof GeoJsonLayer)) {
65100
- log$4.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
65100
+ log$5.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
65101
65101
  }
65102
65102
  return subLayers;
65103
65103
  }
@@ -80278,7 +80278,7 @@ var atan2$1 = Math.atan2;
80278
80278
  var cos$1 = Math.cos;
80279
80279
  var ceil$2 = Math.ceil;
80280
80280
  var exp$1 = Math.exp;
80281
- var log$1 = Math.log;
80281
+ var log$2 = Math.log;
80282
80282
  var pow$2 = Math.pow;
80283
80283
  var sin$1 = Math.sin;
80284
80284
  var sign$1 = Math.sign || function(x2) {
@@ -82374,7 +82374,7 @@ function azimuthalEquidistant() {
82374
82374
  return projection(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180 - 1e-3);
82375
82375
  }
82376
82376
  function mercatorRaw(lambda, phi) {
82377
- return [lambda, log$1(tan$1((halfPi + phi) / 2))];
82377
+ return [lambda, log$2(tan$1((halfPi + phi) / 2))];
82378
82378
  }
82379
82379
  mercatorRaw.invert = function(x2, y2) {
82380
82380
  return [x2, 2 * atan$1(exp$1(y2)) - halfPi];
@@ -82406,7 +82406,7 @@ function tany(y2) {
82406
82406
  return tan$1((halfPi + y2) / 2);
82407
82407
  }
82408
82408
  function conicConformalRaw(y02, y12) {
82409
- var cy0 = cos$1(y02), n3 = y02 === y12 ? sin$1(y02) : log$1(cy0 / cos$1(y12)) / log$1(tany(y12) / tany(y02)), f2 = cy0 * pow$2(tany(y02), n3) / n3;
82409
+ var cy0 = cos$1(y02), n3 = y02 === y12 ? sin$1(y02) : log$2(cy0 / cos$1(y12)) / log$2(tany(y12) / tany(y02)), f2 = cy0 * pow$2(tany(y02), n3) / n3;
82410
82410
  if (!n3)
82411
82411
  return mercatorRaw;
82412
82412
  function project2(x2, y2) {
@@ -82540,7 +82540,7 @@ function stereographic() {
82540
82540
  return projection(stereographicRaw).scale(250).clipAngle(142);
82541
82541
  }
82542
82542
  function transverseMercatorRaw(lambda, phi) {
82543
- return [log$1(tan$1((halfPi + phi) / 2)), -lambda];
82543
+ return [log$2(tan$1((halfPi + phi) / 2)), -lambda];
82544
82544
  }
82545
82545
  transverseMercatorRaw.invert = function(x2, y2) {
82546
82546
  return [-y2, 2 * atan$1(exp$1(x2)) - halfPi];
@@ -103681,16 +103681,16 @@ async function getDecoder(fileDirectory) {
103681
103681
  const Decoder = await importFn();
103682
103682
  return new Decoder(fileDirectory);
103683
103683
  }
103684
- addDecoder([void 0, 1], () => import("./raw-7ef75647.js").then((m) => m.default));
103685
- addDecoder(5, () => import("./lzw-d4b8181c.js").then((m) => m.default));
103684
+ addDecoder([void 0, 1], () => import("./raw-bb122dd6.js").then((m) => m.default));
103685
+ addDecoder(5, () => import("./lzw-2c4560f4.js").then((m) => m.default));
103686
103686
  addDecoder(6, () => {
103687
103687
  throw new Error("old style JPEG compression is not supported.");
103688
103688
  });
103689
- addDecoder(7, () => import("./jpeg-99d7b315.js").then((m) => m.default));
103690
- addDecoder([8, 32946], () => import("./deflate-5158a038.js").then((m) => m.default));
103691
- addDecoder(32773, () => import("./packbits-4ae9e6b5.js").then((m) => m.default));
103692
- addDecoder(34887, () => import("./lerc-d7d1e916.js").then((m) => m.default));
103693
- addDecoder(50001, () => import("./webimage-cce70aeb.js").then((m) => m.default));
103689
+ addDecoder(7, () => import("./jpeg-4f2c0af3.js").then((m) => m.default));
103690
+ addDecoder([8, 32946], () => import("./deflate-114cf681.js").then((m) => m.default));
103691
+ addDecoder(32773, () => import("./packbits-4d63c121.js").then((m) => m.default));
103692
+ addDecoder(34887, () => import("./lerc-d9206621.js").then((m) => m.default));
103693
+ addDecoder(50001, () => import("./webimage-8772cda0.js").then((m) => m.default));
103694
103694
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
103695
103695
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
103696
103696
  }
@@ -121341,6 +121341,258 @@ function max$1(values2, valueof) {
121341
121341
  }
121342
121342
  return max2;
121343
121343
  }
121344
+ var loglevel = { exports: {} };
121345
+ (function(module2) {
121346
+ (function(root2, definition) {
121347
+ if (module2.exports) {
121348
+ module2.exports = definition();
121349
+ } else {
121350
+ root2.log = definition();
121351
+ }
121352
+ })(commonjsGlobal, function() {
121353
+ var noop2 = function() {
121354
+ };
121355
+ var undefinedType = "undefined";
121356
+ var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
121357
+ var logMethods = [
121358
+ "trace",
121359
+ "debug",
121360
+ "info",
121361
+ "warn",
121362
+ "error"
121363
+ ];
121364
+ var _loggersByName = {};
121365
+ var defaultLogger = null;
121366
+ function bindMethod(obj, methodName) {
121367
+ var method = obj[methodName];
121368
+ if (typeof method.bind === "function") {
121369
+ return method.bind(obj);
121370
+ } else {
121371
+ try {
121372
+ return Function.prototype.bind.call(method, obj);
121373
+ } catch (e2) {
121374
+ return function() {
121375
+ return Function.prototype.apply.apply(method, [obj, arguments]);
121376
+ };
121377
+ }
121378
+ }
121379
+ }
121380
+ function traceForIE() {
121381
+ if (console.log) {
121382
+ if (console.log.apply) {
121383
+ console.log.apply(console, arguments);
121384
+ } else {
121385
+ Function.prototype.apply.apply(console.log, [console, arguments]);
121386
+ }
121387
+ }
121388
+ if (console.trace)
121389
+ console.trace();
121390
+ }
121391
+ function realMethod(methodName) {
121392
+ if (methodName === "debug") {
121393
+ methodName = "log";
121394
+ }
121395
+ if (typeof console === undefinedType) {
121396
+ return false;
121397
+ } else if (methodName === "trace" && isIE) {
121398
+ return traceForIE;
121399
+ } else if (console[methodName] !== void 0) {
121400
+ return bindMethod(console, methodName);
121401
+ } else if (console.log !== void 0) {
121402
+ return bindMethod(console, "log");
121403
+ } else {
121404
+ return noop2;
121405
+ }
121406
+ }
121407
+ function replaceLoggingMethods() {
121408
+ var level = this.getLevel();
121409
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
121410
+ var methodName = logMethods[i2];
121411
+ this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
121412
+ }
121413
+ this.log = this.debug;
121414
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
121415
+ return "No console available for logging";
121416
+ }
121417
+ }
121418
+ function enableLoggingWhenConsoleArrives(methodName) {
121419
+ return function() {
121420
+ if (typeof console !== undefinedType) {
121421
+ replaceLoggingMethods.call(this);
121422
+ this[methodName].apply(this, arguments);
121423
+ }
121424
+ };
121425
+ }
121426
+ function defaultMethodFactory(methodName, _level, _loggerName) {
121427
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
121428
+ }
121429
+ function Logger(name2, factory2) {
121430
+ var self2 = this;
121431
+ var inheritedLevel;
121432
+ var defaultLevel;
121433
+ var userLevel;
121434
+ var storageKey = "loglevel";
121435
+ if (typeof name2 === "string") {
121436
+ storageKey += ":" + name2;
121437
+ } else if (typeof name2 === "symbol") {
121438
+ storageKey = void 0;
121439
+ }
121440
+ function persistLevelIfPossible(levelNum) {
121441
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
121442
+ if (typeof window === undefinedType || !storageKey)
121443
+ return;
121444
+ try {
121445
+ window.localStorage[storageKey] = levelName;
121446
+ return;
121447
+ } catch (ignore) {
121448
+ }
121449
+ try {
121450
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
121451
+ } catch (ignore) {
121452
+ }
121453
+ }
121454
+ function getPersistedLevel() {
121455
+ var storedLevel;
121456
+ if (typeof window === undefinedType || !storageKey)
121457
+ return;
121458
+ try {
121459
+ storedLevel = window.localStorage[storageKey];
121460
+ } catch (ignore) {
121461
+ }
121462
+ if (typeof storedLevel === undefinedType) {
121463
+ try {
121464
+ var cookie = window.document.cookie;
121465
+ var cookieName = encodeURIComponent(storageKey);
121466
+ var location = cookie.indexOf(cookieName + "=");
121467
+ if (location !== -1) {
121468
+ storedLevel = /^([^;]+)/.exec(
121469
+ cookie.slice(location + cookieName.length + 1)
121470
+ )[1];
121471
+ }
121472
+ } catch (ignore) {
121473
+ }
121474
+ }
121475
+ if (self2.levels[storedLevel] === void 0) {
121476
+ storedLevel = void 0;
121477
+ }
121478
+ return storedLevel;
121479
+ }
121480
+ function clearPersistedLevel() {
121481
+ if (typeof window === undefinedType || !storageKey)
121482
+ return;
121483
+ try {
121484
+ window.localStorage.removeItem(storageKey);
121485
+ } catch (ignore) {
121486
+ }
121487
+ try {
121488
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
121489
+ } catch (ignore) {
121490
+ }
121491
+ }
121492
+ function normalizeLevel(input) {
121493
+ var level = input;
121494
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
121495
+ level = self2.levels[level.toUpperCase()];
121496
+ }
121497
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
121498
+ return level;
121499
+ } else {
121500
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
121501
+ }
121502
+ }
121503
+ self2.name = name2;
121504
+ self2.levels = {
121505
+ "TRACE": 0,
121506
+ "DEBUG": 1,
121507
+ "INFO": 2,
121508
+ "WARN": 3,
121509
+ "ERROR": 4,
121510
+ "SILENT": 5
121511
+ };
121512
+ self2.methodFactory = factory2 || defaultMethodFactory;
121513
+ self2.getLevel = function() {
121514
+ if (userLevel != null) {
121515
+ return userLevel;
121516
+ } else if (defaultLevel != null) {
121517
+ return defaultLevel;
121518
+ } else {
121519
+ return inheritedLevel;
121520
+ }
121521
+ };
121522
+ self2.setLevel = function(level, persist) {
121523
+ userLevel = normalizeLevel(level);
121524
+ if (persist !== false) {
121525
+ persistLevelIfPossible(userLevel);
121526
+ }
121527
+ return replaceLoggingMethods.call(self2);
121528
+ };
121529
+ self2.setDefaultLevel = function(level) {
121530
+ defaultLevel = normalizeLevel(level);
121531
+ if (!getPersistedLevel()) {
121532
+ self2.setLevel(level, false);
121533
+ }
121534
+ };
121535
+ self2.resetLevel = function() {
121536
+ userLevel = null;
121537
+ clearPersistedLevel();
121538
+ replaceLoggingMethods.call(self2);
121539
+ };
121540
+ self2.enableAll = function(persist) {
121541
+ self2.setLevel(self2.levels.TRACE, persist);
121542
+ };
121543
+ self2.disableAll = function(persist) {
121544
+ self2.setLevel(self2.levels.SILENT, persist);
121545
+ };
121546
+ self2.rebuild = function() {
121547
+ if (defaultLogger !== self2) {
121548
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
121549
+ }
121550
+ replaceLoggingMethods.call(self2);
121551
+ if (defaultLogger === self2) {
121552
+ for (var childName in _loggersByName) {
121553
+ _loggersByName[childName].rebuild();
121554
+ }
121555
+ }
121556
+ };
121557
+ inheritedLevel = normalizeLevel(
121558
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
121559
+ );
121560
+ var initialLevel = getPersistedLevel();
121561
+ if (initialLevel != null) {
121562
+ userLevel = normalizeLevel(initialLevel);
121563
+ }
121564
+ replaceLoggingMethods.call(self2);
121565
+ }
121566
+ defaultLogger = new Logger();
121567
+ defaultLogger.getLogger = function getLogger(name2) {
121568
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
121569
+ throw new TypeError("You must supply a name when creating a logger.");
121570
+ }
121571
+ var logger = _loggersByName[name2];
121572
+ if (!logger) {
121573
+ logger = _loggersByName[name2] = new Logger(
121574
+ name2,
121575
+ defaultLogger.methodFactory
121576
+ );
121577
+ }
121578
+ return logger;
121579
+ };
121580
+ var _log = typeof window !== undefinedType ? window.log : void 0;
121581
+ defaultLogger.noConflict = function() {
121582
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
121583
+ window.log = _log;
121584
+ }
121585
+ return defaultLogger;
121586
+ };
121587
+ defaultLogger.getLoggers = function getLoggers2() {
121588
+ return _loggersByName;
121589
+ };
121590
+ defaultLogger["default"] = defaultLogger;
121591
+ return defaultLogger;
121592
+ });
121593
+ })(loglevel);
121594
+ var loglevelExports = loglevel.exports;
121595
+ const log$1 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
121344
121596
  function normalize(arr) {
121345
121597
  const [min2, max2] = extent(arr);
121346
121598
  const ratio = 255 / (max2 - min2);
@@ -121362,10 +121614,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
121362
121614
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
121363
121615
  const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
121364
121616
  if (valueTexHeight > texSize) {
121365
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121617
+ log$1.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121366
121618
  }
121367
121619
  if (colorTexHeight > texSize) {
121368
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121620
+ log$1.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121369
121621
  }
121370
121622
  const totalData = new Uint8Array(texSize * valueTexHeight);
121371
121623
  const totalColors = new Uint8Array(texSize * colorTexHeight);
@@ -137612,7 +137864,7 @@ class ImageWrapper {
137612
137864
  const channelNames = this.getChannelNames();
137613
137865
  const channelIndex = channelNames.indexOf(channelSpecifier);
137614
137866
  if (channelIndex === -1) {
137615
- console.error(`Channel ${channelSpecifier} not found in image.`);
137867
+ log$1.error(`Channel ${channelSpecifier} not found in image.`);
137616
137868
  }
137617
137869
  return channelIndex;
137618
137870
  }