@vitessce/scatterplot 3.5.6 → 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.
@@ -4511,7 +4511,7 @@ function registerLoaders(loaders) {
4511
4511
  function getRegisteredLoaders() {
4512
4512
  return getGlobalLoaderRegistry();
4513
4513
  }
4514
- const log$4 = new Log({
4514
+ const log$5 = new Log({
4515
4515
  id: "loaders.gl"
4516
4516
  });
4517
4517
  const EXT_PATTERN = /\.([^.]+)$/;
@@ -4578,7 +4578,7 @@ function selectLoaderInternal(data, loaders, options, context) {
4578
4578
  reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
4579
4579
  if (reason) {
4580
4580
  var _loader;
4581
- log$4.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
4581
+ log$5.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
4582
4582
  }
4583
4583
  return loader;
4584
4584
  }
@@ -5303,7 +5303,7 @@ function checkWebPSupport() {
5303
5303
  return false;
5304
5304
  }
5305
5305
  }
5306
- const log$3 = new Log({
5306
+ const log$4 = new Log({
5307
5307
  id: "deck"
5308
5308
  });
5309
5309
  const logState = {
@@ -5405,13 +5405,13 @@ const getLoggers = (log3) => ({
5405
5405
  });
5406
5406
  let loggers = {};
5407
5407
  {
5408
- loggers = getLoggers(log$3);
5408
+ loggers = getLoggers(log$4);
5409
5409
  }
5410
5410
  function register(handlers) {
5411
5411
  loggers = handlers;
5412
5412
  }
5413
5413
  function debug(eventType, arg1, arg2, arg3) {
5414
- if (log$3.level > 0 && loggers[eventType]) {
5414
+ if (log$4.level > 0 && loggers[eventType]) {
5415
5415
  loggers[eventType].call(null, arg1, arg2, arg3);
5416
5416
  }
5417
5417
  }
@@ -5437,12 +5437,12 @@ if (existingVersion && existingVersion !== version) {
5437
5437
  throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion, " vs ").concat(version));
5438
5438
  }
5439
5439
  if (!existingVersion) {
5440
- log$3.log(1, "deck.gl ".concat(version))();
5440
+ log$4.log(1, "deck.gl ".concat(version))();
5441
5441
  globalThis.deck = {
5442
5442
  ...globalThis.deck,
5443
5443
  VERSION: version,
5444
5444
  version,
5445
- log: log$3,
5445
+ log: log$4,
5446
5446
  _registerLoggers: register
5447
5447
  };
5448
5448
  registerLoaders([jsonLoader, [ImageLoader, {
@@ -5452,7 +5452,7 @@ if (!existingVersion) {
5452
5452
  }]]);
5453
5453
  }
5454
5454
  const deckGlobal = globalThis.deck;
5455
- const log$2 = new Log({
5455
+ const log$3 = new Log({
5456
5456
  id: "luma.gl"
5457
5457
  });
5458
5458
  function assert$9(condition, message) {
@@ -5494,7 +5494,7 @@ function error(msg) {
5494
5494
  globalThis.console.error(msg);
5495
5495
  }
5496
5496
  }
5497
- function log$1(msg) {
5497
+ function log$2(msg) {
5498
5498
  if (globalThis.console && globalThis.console.log) {
5499
5499
  globalThis.console.log(msg);
5500
5500
  }
@@ -5635,7 +5635,7 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
5635
5635
  }
5636
5636
  if (gl.canvas) {
5637
5637
  gl.canvas.addEventListener("webglcontextrestored", () => {
5638
- log$1("OESVertexArrayObject emulation library context restored");
5638
+ log$2("OESVertexArrayObject emulation library context restored");
5639
5639
  self2.reset_();
5640
5640
  }, true);
5641
5641
  }
@@ -6744,16 +6744,16 @@ function instrumentGLContext(gl) {
6744
6744
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
6745
6745
  args[_key] = arguments[_key];
6746
6746
  }
6747
- return log$2.log(1, ...args)();
6747
+ return log$3.log(1, ...args)();
6748
6748
  }
6749
6749
  });
6750
6750
  }
6751
6751
  if (isBrowser$2 && debug2) {
6752
6752
  if (!globalThis.makeDebugContext) {
6753
- log$2.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
6753
+ log$3.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
6754
6754
  } else {
6755
6755
  gl = globalThis.makeDebugContext(gl, options);
6756
- log$2.level = Math.max(log$2.level, 1);
6756
+ log$3.level = Math.max(log$3.level, 1);
6757
6757
  }
6758
6758
  }
6759
6759
  gl._instrumented = true;
@@ -6848,7 +6848,7 @@ function logInfo(gl) {
6848
6848
  const info = getContextDebugInfo(gl);
6849
6849
  const driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : "";
6850
6850
  const debug2 = gl.debug ? " debug" : "";
6851
- log$2.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
6851
+ log$3.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
6852
6852
  }
6853
6853
  function getVersion(gl) {
6854
6854
  if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) {
@@ -6860,7 +6860,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
6860
6860
  let clientWidth = "width" in options ? options.width : gl.canvas.clientWidth;
6861
6861
  let clientHeight = "height" in options ? options.height : gl.canvas.clientHeight;
6862
6862
  if (!clientWidth || !clientHeight) {
6863
- log$2.log(1, "Canvas clientWidth/clientHeight is 0")();
6863
+ log$3.log(1, "Canvas clientWidth/clientHeight is 0")();
6864
6864
  devicePixelRatio = 1;
6865
6865
  clientWidth = gl.canvas.width || 1;
6866
6866
  clientHeight = gl.canvas.height || 1;
@@ -6875,7 +6875,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
6875
6875
  gl.canvas.width = canvasWidth;
6876
6876
  gl.canvas.height = canvasHeight;
6877
6877
  if (gl.drawingBufferWidth !== canvasWidth || gl.drawingBufferHeight !== canvasHeight) {
6878
- log$2.warn("Device pixel ratio clamped")();
6878
+ log$3.warn("Device pixel ratio clamped")();
6879
6879
  clampedPixelRatio = Math.min(gl.drawingBufferWidth / clientWidth, gl.drawingBufferHeight / clientHeight);
6880
6880
  gl.canvas.width = Math.floor(clientWidth * clampedPixelRatio);
6881
6881
  gl.canvas.height = Math.floor(clientHeight * clampedPixelRatio);
@@ -6908,12 +6908,12 @@ if (globalThis.luma && globalThis.luma.VERSION !== VERSION$7) {
6908
6908
  }
6909
6909
  if (!globalThis.luma) {
6910
6910
  if (isBrowser$3()) {
6911
- log$2.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
6911
+ log$3.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
6912
6912
  }
6913
6913
  globalThis.luma = globalThis.luma || {
6914
6914
  VERSION: VERSION$7,
6915
6915
  version: VERSION$7,
6916
- log: log$2,
6916
+ log: log$3,
6917
6917
  stats: lumaStats,
6918
6918
  globals: {
6919
6919
  modules: {},
@@ -6981,7 +6981,7 @@ function stubRemovedMethods(instance, className, version2, methodNames) {
6981
6981
  return;
6982
6982
  }
6983
6983
  prototype[methodName] = () => {
6984
- log$2.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
6984
+ log$3.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
6985
6985
  throw new Error(methodName);
6986
6986
  };
6987
6987
  });
@@ -7282,20 +7282,20 @@ function checkProps(className, props, propChecks) {
7282
7282
  if (propName in props) {
7283
7283
  const replacementProp = removedProps[propName];
7284
7284
  const replacement = replacementProp ? "".concat(className, ".").concat(removedProps[propName]) : "N/A";
7285
- log$2.removed("".concat(className, ".").concat(propName), replacement)();
7285
+ log$3.removed("".concat(className, ".").concat(propName), replacement)();
7286
7286
  }
7287
7287
  }
7288
7288
  for (const propName in deprecatedProps) {
7289
7289
  if (propName in props) {
7290
7290
  const replacementProp = deprecatedProps[propName];
7291
- log$2.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
7291
+ log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
7292
7292
  }
7293
7293
  }
7294
7294
  let newProps = null;
7295
7295
  for (const propName in replacedProps) {
7296
7296
  if (propName in props) {
7297
7297
  const replacementProp = replacedProps[propName];
7298
- log$2.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
7298
+ log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
7299
7299
  newProps = newProps || Object.assign({}, props);
7300
7300
  newProps[replacementProp] = props[propName];
7301
7301
  delete newProps[propName];
@@ -7680,19 +7680,19 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
7680
7680
  return value;
7681
7681
  }
7682
7682
  get type() {
7683
- log$2.deprecated("Buffer.type", "Buffer.accessor.type")();
7683
+ log$3.deprecated("Buffer.type", "Buffer.accessor.type")();
7684
7684
  return this.accessor.type;
7685
7685
  }
7686
7686
  get bytes() {
7687
- log$2.deprecated("Buffer.bytes", "Buffer.byteLength")();
7687
+ log$3.deprecated("Buffer.bytes", "Buffer.byteLength")();
7688
7688
  return this.byteLength;
7689
7689
  }
7690
7690
  setByteLength(byteLength) {
7691
- log$2.deprecated("setByteLength", "reallocate")();
7691
+ log$3.deprecated("setByteLength", "reallocate")();
7692
7692
  return this.reallocate(byteLength);
7693
7693
  }
7694
7694
  updateAccessor(opts) {
7695
- log$2.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
7695
+ log$3.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
7696
7696
  this.accessor = new Accessor(this.accessor, opts);
7697
7697
  return this;
7698
7698
  }
@@ -7899,7 +7899,7 @@ class Texture extends Resource$1 {
7899
7899
  this.gl.bindTexture(this.target, this.handle);
7900
7900
  }
7901
7901
  if (mipmaps && this._isNPOT()) {
7902
- log$2.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
7902
+ log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
7903
7903
  mipmaps = false;
7904
7904
  this._updateForNPOT(parameters);
7905
7905
  }
@@ -7975,7 +7975,7 @@ class Texture extends Resource$1 {
7975
7975
  generateMipmap() {
7976
7976
  let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7977
7977
  if (this._isNPOT()) {
7978
- log$2.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
7978
+ log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
7979
7979
  return this;
7980
7980
  }
7981
7981
  this.mipmaps = true;
@@ -8149,7 +8149,7 @@ class Texture extends Resource$1 {
8149
8149
  this.gl.bindTexture(this.target, null);
8150
8150
  }
8151
8151
  copyFramebuffer() {
8152
- log$2.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
8152
+ log$3.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
8153
8153
  return null;
8154
8154
  }
8155
8155
  getActiveUnit() {
@@ -8480,7 +8480,7 @@ class TextureCube extends Texture {
8480
8480
  this.bind();
8481
8481
  FACES.forEach((face, index2) => {
8482
8482
  if (resolvedFaces[index2].length > 1 && this.opts.mipmaps !== false) {
8483
- log$2.warn("".concat(this.id, " has mipmap and multiple LODs."))();
8483
+ log$3.warn("".concat(this.id, " has mipmap and multiple LODs."))();
8484
8484
  }
8485
8485
  resolvedFaces[index2].forEach((image, lodLevel) => {
8486
8486
  if (width && height) {
@@ -9256,7 +9256,7 @@ function isFeatureSupported(gl, cap) {
9256
9256
  gl.luma.caps[cap] = queryFeature(gl, cap);
9257
9257
  }
9258
9258
  if (!gl.luma.caps[cap]) {
9259
- log$2.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
9259
+ log$3.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
9260
9260
  }
9261
9261
  return gl.luma.caps[cap];
9262
9262
  }
@@ -9430,7 +9430,7 @@ class Framebuffer extends Resource$1 {
9430
9430
  height = this.gl.drawingBufferHeight;
9431
9431
  }
9432
9432
  if (width !== this.width && height !== this.height) {
9433
- log$2.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
9433
+ log$3.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
9434
9434
  }
9435
9435
  for (const attachmentPoint in this.attachments) {
9436
9436
  this.attachments[attachmentPoint].resize({
@@ -9539,27 +9539,27 @@ class Framebuffer extends Resource$1 {
9539
9539
  return this;
9540
9540
  }
9541
9541
  readPixels() {
9542
- log$2.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
9542
+ log$3.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
9543
9543
  return null;
9544
9544
  }
9545
9545
  readPixelsToBuffer() {
9546
- log$2.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
9546
+ log$3.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
9547
9547
  return null;
9548
9548
  }
9549
9549
  copyToDataUrl() {
9550
- log$2.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
9550
+ log$3.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
9551
9551
  return null;
9552
9552
  }
9553
9553
  copyToImage() {
9554
- log$2.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
9554
+ log$3.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
9555
9555
  return null;
9556
9556
  }
9557
9557
  copyToTexture() {
9558
- log$2.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
9558
+ log$3.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
9559
9559
  return null;
9560
9560
  }
9561
9561
  blit() {
9562
- log$2.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
9562
+ log$3.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
9563
9563
  return null;
9564
9564
  }
9565
9565
  invalidate(_ref3) {
@@ -9624,14 +9624,14 @@ class Framebuffer extends Resource$1 {
9624
9624
  log() {
9625
9625
  let logLevel = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
9626
9626
  let message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
9627
- if (logLevel > log$2.level || typeof window === "undefined") {
9627
+ if (logLevel > log$3.level || typeof window === "undefined") {
9628
9628
  return this;
9629
9629
  }
9630
9630
  message = message || "Framebuffer ".concat(this.id);
9631
9631
  const image = copyToDataUrl(this, {
9632
9632
  targetMaxHeight: 100
9633
9633
  });
9634
- log$2.image({
9634
+ log$3.image({
9635
9635
  logLevel,
9636
9636
  message,
9637
9637
  image
@@ -10021,8 +10021,8 @@ class Shader extends Resource$1 {
10021
10021
  errors,
10022
10022
  warnings
10023
10023
  } = parseGLSLCompilerError(infoLog, this.source, this.shaderType, this.id);
10024
- log$2.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
10025
- log$2.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
10024
+ log$3.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
10025
+ log$3.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
10026
10026
  throw new Error("GLSL compilation errors in ".concat(shaderName));
10027
10027
  }
10028
10028
  }
@@ -10130,7 +10130,7 @@ function toTypedArray$1(value, uniformLength, Type2, cache2) {
10130
10130
  }
10131
10131
  const length2 = value.length;
10132
10132
  if (length2 % uniformLength) {
10133
- log$2.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
10133
+ log$3.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
10134
10134
  }
10135
10135
  if (value instanceof Type2) {
10136
10136
  return value;
@@ -10595,13 +10595,13 @@ class Program extends Resource$1 {
10595
10595
  samplers
10596
10596
  } = _ref;
10597
10597
  if (uniforms || samplers) {
10598
- log$2.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
10598
+ log$3.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
10599
10599
  this.setUniforms(uniforms || {});
10600
10600
  }
10601
- if (log$2.priority >= logPriority) {
10601
+ if (log$3.priority >= logPriority) {
10602
10602
  const fb = framebuffer ? framebuffer.id : "default";
10603
10603
  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);
10604
- log$2.log(logPriority, message)();
10604
+ log$3.log(logPriority, message)();
10605
10605
  }
10606
10606
  assert$8(vertexArray);
10607
10607
  this.gl.useProgram(this.handle);
@@ -10640,7 +10640,7 @@ class Program extends Resource$1 {
10640
10640
  }
10641
10641
  setUniforms() {
10642
10642
  let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
10643
- if (log$2.priority >= 2) {
10643
+ if (log$3.priority >= 2) {
10644
10644
  checkUniformValues(uniforms, this.id, this._uniformSetters);
10645
10645
  }
10646
10646
  this.gl.useProgram(this.handle);
@@ -10741,10 +10741,10 @@ class Program extends Resource$1 {
10741
10741
  } = this;
10742
10742
  gl.attachShader(this.handle, this.vs.handle);
10743
10743
  gl.attachShader(this.handle, this.fs.handle);
10744
- log$2.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
10744
+ log$3.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
10745
10745
  gl.linkProgram(this.handle);
10746
- log$2.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
10747
- if (gl.debug || log$2.level > 0) {
10746
+ log$3.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
10747
+ if (gl.debug || log$3.level > 0) {
10748
10748
  const linked = gl.getProgramParameter(this.handle, 35714);
10749
10749
  if (!linked) {
10750
10750
  throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));
@@ -10967,7 +10967,7 @@ class TransformFeedback extends Resource$1 {
10967
10967
  } = this._getBufferParams(bufferOrParams);
10968
10968
  if (location < 0) {
10969
10969
  this.unused[locationOrName] = buffer2;
10970
- log$2.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
10970
+ log$3.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
10971
10971
  return this;
10972
10972
  }
10973
10973
  this.buffers[location] = bufferOrParams;
@@ -11516,7 +11516,7 @@ class VertexArray {
11516
11516
  } = this._getAttributeIndex(locationOrName);
11517
11517
  if (!Number.isFinite(location) || location < 0) {
11518
11518
  this.unused[locationOrName] = value;
11519
- log$2.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
11519
+ log$3.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
11520
11520
  return INVALID_RESULT;
11521
11521
  }
11522
11522
  const accessInfo = this._getAttributeInfo(name2 || location);
@@ -11654,7 +11654,7 @@ class VertexArray {
11654
11654
  setElements() {
11655
11655
  let elementBuffer = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
11656
11656
  let accessor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11657
- log$2.deprecated("setElements", "setElementBuffer")();
11657
+ log$3.deprecated("setElements", "setElementBuffer")();
11658
11658
  return this.setElementBuffer(elementBuffer, accessor);
11659
11659
  }
11660
11660
  }
@@ -11948,7 +11948,7 @@ class AnimationLoop {
11948
11948
  useDevicePixels = true
11949
11949
  } = props;
11950
11950
  if ("useDevicePixelRatio" in props) {
11951
- log$2.deprecated("useDevicePixelRatio", "useDevicePixels")();
11951
+ log$3.deprecated("useDevicePixelRatio", "useDevicePixels")();
11952
11952
  useDevicePixels = props.useDevicePixelRatio;
11953
11953
  }
11954
11954
  this.props = {
@@ -12114,7 +12114,7 @@ class AnimationLoop {
12114
12114
  return element ? Number(element.value) : defaultValue2;
12115
12115
  }
12116
12116
  setViewParameters() {
12117
- log$2.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
12117
+ log$3.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
12118
12118
  return this;
12119
12119
  }
12120
12120
  _startLoop() {
@@ -17423,7 +17423,7 @@ class Model {
17423
17423
  this.updateModuleSettings(moduleSettings);
17424
17424
  this.setUniforms(uniforms);
17425
17425
  let logPriority;
17426
- if (log$2.priority >= LOG_DRAW_PRIORITY) {
17426
+ if (log$3.priority >= LOG_DRAW_PRIORITY) {
17427
17427
  logPriority = this._logDrawCallStart(LOG_DRAW_PRIORITY);
17428
17428
  }
17429
17429
  const drawParams = this.vertexArray.getDrawParams();
@@ -17434,7 +17434,7 @@ class Model {
17434
17434
  vertexArrayInstanced = drawParams.isInstanced
17435
17435
  } = this.props;
17436
17436
  if (vertexArrayInstanced && !this.isInstanced) {
17437
- log$2.warn("Found instanced attributes on non-instanced model", this.id)();
17437
+ log$3.warn("Found instanced attributes on non-instanced model", this.id)();
17438
17438
  }
17439
17439
  const {
17440
17440
  isInstanced,
@@ -17462,7 +17462,7 @@ class Model {
17462
17462
  offset: isIndexed ? indexOffset : 0
17463
17463
  }));
17464
17464
  onAfterRender();
17465
- if (log$2.priority >= LOG_DRAW_PRIORITY) {
17465
+ if (log$3.priority >= LOG_DRAW_PRIORITY) {
17466
17466
  this._logDrawCallEnd(logPriority, vertexArray, framebuffer);
17467
17467
  }
17468
17468
  return didDraw;
@@ -17497,7 +17497,7 @@ class Model {
17497
17497
  }
17498
17498
  render() {
17499
17499
  let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17500
- log$2.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
17500
+ log$3.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
17501
17501
  return this.setUniforms(uniforms).draw();
17502
17502
  }
17503
17503
  _setModelProps(props) {
@@ -17609,8 +17609,8 @@ class Model {
17609
17609
  return void 0;
17610
17610
  }
17611
17611
  this.lastLogTime = Date.now();
17612
- log$2.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
17613
- collapsed: log$2.level <= 2
17612
+ log$3.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
17613
+ collapsed: log$3.level <= 2
17614
17614
  })();
17615
17615
  return logLevel;
17616
17616
  }
@@ -17642,22 +17642,22 @@ class Model {
17642
17642
  undefinedOnly: true
17643
17643
  });
17644
17644
  if (missingCount > 0) {
17645
- log$2.log("MISSING UNIFORMS", Object.keys(missingTable))();
17645
+ log$3.log("MISSING UNIFORMS", Object.keys(missingTable))();
17646
17646
  }
17647
17647
  if (unusedCount > 0) {
17648
- log$2.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
17648
+ log$3.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
17649
17649
  }
17650
17650
  const configTable = getDebugTableForProgramConfiguration(this.vertexArray.configuration);
17651
- log$2.table(logLevel, attributeTable)();
17652
- log$2.table(logLevel, uniformTable)();
17653
- log$2.table(logLevel + 1, configTable)();
17651
+ log$3.table(logLevel, attributeTable)();
17652
+ log$3.table(logLevel, uniformTable)();
17653
+ log$3.table(logLevel + 1, configTable)();
17654
17654
  if (framebuffer) {
17655
17655
  framebuffer.log({
17656
17656
  logLevel: LOG_DRAW_PRIORITY,
17657
17657
  message: "Rendered to ".concat(framebuffer.id)
17658
17658
  });
17659
17659
  }
17660
- log$2.groupEnd(LOG_DRAW_PRIORITY)();
17660
+ log$3.groupEnd(LOG_DRAW_PRIORITY)();
17661
17661
  }
17662
17662
  }
17663
17663
  class BufferTransform {
@@ -19348,7 +19348,7 @@ const esm$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
19348
19348
  instrumentGLContext,
19349
19349
  isWebGL,
19350
19350
  isWebGL2: isWebGL2$1,
19351
- log: log$2,
19351
+ log: log$3,
19352
19352
  lumaStats,
19353
19353
  normalizeShaderModule,
19354
19354
  pbr,
@@ -19379,7 +19379,7 @@ const COORDINATE_SYSTEM = {
19379
19379
  };
19380
19380
  Object.defineProperty(COORDINATE_SYSTEM, "IDENTITY", {
19381
19381
  get: () => {
19382
- log$3.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
19382
+ log$4.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
19383
19383
  return 0;
19384
19384
  }
19385
19385
  });
@@ -21381,7 +21381,7 @@ class Viewport {
21381
21381
  this.pixelProjectionMatrix = pixelProjectionMatrix;
21382
21382
  this.pixelUnprojectionMatrix = invert$1(createMat4(), this.pixelProjectionMatrix);
21383
21383
  if (!this.pixelUnprojectionMatrix) {
21384
- log$3.warn("Pixel project matrix not invertible")();
21384
+ log$4.warn("Pixel project matrix not invertible")();
21385
21385
  }
21386
21386
  }
21387
21387
  }
@@ -22330,7 +22330,7 @@ class LayerManager {
22330
22330
  const oldLayerMap = {};
22331
22331
  for (const oldLayer of oldLayers) {
22332
22332
  if (oldLayerMap[oldLayer.id]) {
22333
- log$3.warn("Multiple old layers with same id ".concat(oldLayer.id))();
22333
+ log$4.warn("Multiple old layers with same id ".concat(oldLayer.id))();
22334
22334
  } else {
22335
22335
  oldLayerMap[oldLayer.id] = oldLayer;
22336
22336
  }
@@ -22353,7 +22353,7 @@ class LayerManager {
22353
22353
  newLayer.context = this.context;
22354
22354
  const oldLayer = oldLayerMap[newLayer.id];
22355
22355
  if (oldLayer === null) {
22356
- log$3.warn("Multiple new layers with same id ".concat(newLayer.id))();
22356
+ log$4.warn("Multiple new layers with same id ".concat(newLayer.id))();
22357
22357
  }
22358
22358
  oldLayerMap[newLayer.id] = null;
22359
22359
  let sublayers = null;
@@ -22589,7 +22589,7 @@ class ViewManager {
22589
22589
  }
22590
22590
  this.viewState = viewState;
22591
22591
  } else {
22592
- log$3.warn("missing `viewState` or `initialViewState`")();
22592
+ log$4.warn("missing `viewState` or `initialViewState`")();
22593
22593
  }
22594
22594
  }
22595
22595
  _onViewStateChange(viewId, event) {
@@ -24892,7 +24892,7 @@ class MaskEffect {
24892
24892
  let channelInfo = channelMap[id];
24893
24893
  if (!channelInfo) {
24894
24894
  if (++channelCount > 4) {
24895
- log$3.warn("Too many mask layers. The max supported is 4")();
24895
+ log$4.warn("Too many mask layers. The max supported is 4")();
24896
24896
  continue;
24897
24897
  }
24898
24898
  channelInfo = {
@@ -25117,7 +25117,7 @@ function encodeColor(encoded, layer, viewport) {
25117
25117
  byLayer.set(layer, entry);
25118
25118
  byAlpha[a2] = entry;
25119
25119
  } else {
25120
- log$3.warn("Too many pickable layers, only picking the first 255")();
25120
+ log$4.warn("Too many pickable layers, only picking the first 255")();
25121
25121
  a2 = 0;
25122
25122
  }
25123
25123
  }
@@ -25288,7 +25288,7 @@ function getClosestObject({
25288
25288
  pickedY: y2 + dy
25289
25289
  };
25290
25290
  }
25291
- log$3.error("Picked non-existent layer. Is picking buffer corrupt?")();
25291
+ log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
25292
25292
  }
25293
25293
  return NO_PICKED_OBJECT;
25294
25294
  }
@@ -25311,7 +25311,7 @@ function getUniqueObjects({
25311
25311
  color: pickedColor
25312
25312
  });
25313
25313
  } else {
25314
- log$3.error("Picked non-existent layer. Is picking buffer corrupt?")();
25314
+ log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
25315
25315
  }
25316
25316
  }
25317
25317
  }
@@ -28537,7 +28537,7 @@ const defaultProps$O = {
28537
28537
  onBeforeRender: noop$2,
28538
28538
  onAfterRender: noop$2,
28539
28539
  onLoad: noop$2,
28540
- onError: (error2) => log$3.error(error2.message)(),
28540
+ onError: (error2) => log$4.error(error2.message)(),
28541
28541
  onHover: null,
28542
28542
  onClick: null,
28543
28543
  onDragStart: null,
@@ -28652,10 +28652,10 @@ class Deck {
28652
28652
  isDragging: false
28653
28653
  };
28654
28654
  if (props.viewState && props.initialViewState) {
28655
- log$3.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
28655
+ log$4.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
28656
28656
  }
28657
28657
  if (getBrowser() === "IE") {
28658
- log$3.warn("IE 11 is not supported")();
28658
+ log$4.warn("IE 11 is not supported")();
28659
28659
  }
28660
28660
  this.viewState = props.initialViewState;
28661
28661
  if (!props.gl) {
@@ -28718,10 +28718,10 @@ class Deck {
28718
28718
  setProps(props) {
28719
28719
  this.stats.get("setProps Time").timeStart();
28720
28720
  if ("onLayerHover" in props) {
28721
- log$3.removed("onLayerHover", "onHover")();
28721
+ log$4.removed("onLayerHover", "onHover")();
28722
28722
  }
28723
28723
  if ("onLayerClick" in props) {
28724
- log$3.removed("onLayerClick", "onClick")();
28724
+ log$4.removed("onLayerClick", "onClick")();
28725
28725
  }
28726
28726
  if (props.initialViewState && !deepEqual$2(this.props.initialViewState, props.initialViewState)) {
28727
28727
  this.viewState = props.initialViewState;
@@ -29068,7 +29068,7 @@ class Deck {
29068
29068
  if (this._metricsCounter++ % 60 === 0) {
29069
29069
  this._getMetrics();
29070
29070
  this.stats.reset();
29071
- log$3.table(4, this.metrics)();
29071
+ log$4.table(4, this.metrics)();
29072
29072
  if (this.props._onMetrics) {
29073
29073
  this.props._onMetrics(this.metrics);
29074
29074
  }
@@ -29208,7 +29208,7 @@ function getStride(accessor) {
29208
29208
  }
29209
29209
  function resolveShaderAttribute(baseAccessor, shaderAttributeOptions) {
29210
29210
  if (shaderAttributeOptions.offset) {
29211
- log$3.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
29211
+ log$4.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
29212
29212
  }
29213
29213
  const stride = getStride(baseAccessor);
29214
29214
  const vertexOffset = shaderAttributeOptions.vertexOffset !== void 0 ? shaderAttributeOptions.vertexOffset : baseAccessor.vertexOffset || 0;
@@ -29523,7 +29523,7 @@ class DataColumn {
29523
29523
  throw new Error("Attribute ".concat(this.id, " does not support ").concat(value.constructor.name));
29524
29524
  }
29525
29525
  if (!(value instanceof ArrayType) && this.settings.normalized && !("normalized" in opts)) {
29526
- log$3.warn("Attribute ".concat(this.id, " is normalized"))();
29526
+ log$4.warn("Attribute ".concat(this.id, " is normalized"))();
29527
29527
  }
29528
29528
  }
29529
29529
  normalizeConstant(value) {
@@ -30581,7 +30581,7 @@ class AttributeTransitionManager {
30581
30581
  let isNew = !transition2 || transition2.type !== settings.type;
30582
30582
  if (isNew) {
30583
30583
  if (!this.isSupported) {
30584
- log$3.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
30584
+ log$4.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
30585
30585
  return;
30586
30586
  }
30587
30587
  if (transition2) {
@@ -30595,7 +30595,7 @@ class AttributeTransitionManager {
30595
30595
  gl: this.gl
30596
30596
  });
30597
30597
  } else {
30598
- log$3.error("unsupported transition type '".concat(settings.type, "'"))();
30598
+ log$4.error("unsupported transition type '".concat(settings.type, "'"))();
30599
30599
  isNew = false;
30600
30600
  }
30601
30601
  }
@@ -30700,7 +30700,7 @@ class AttributeManager {
30700
30700
  attribute.startIndices = startIndices;
30701
30701
  attribute.numInstances = numInstances;
30702
30702
  if (props[attributeName]) {
30703
- log$3.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
30703
+ log$4.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
30704
30704
  }
30705
30705
  if (attribute.setExternalBuffer(buffers[attributeName]))
30706
30706
  ;
@@ -30941,7 +30941,7 @@ class UniformTransitionManager {
30941
30941
  }
30942
30942
  const TransitionType = TRANSITION_TYPES[settings.type];
30943
30943
  if (!TransitionType) {
30944
- log$3.error("unsupported transition type '".concat(settings.type, "'"))();
30944
+ log$4.error("unsupported transition type '".concat(settings.type, "'"))();
30945
30945
  return;
30946
30946
  }
30947
30947
  const transition2 = new TransitionType(this.timeline);
@@ -31537,7 +31537,7 @@ function addDeprecatedPropsToPropPrototype(defaultProps2, deprecatedProps) {
31537
31537
  this[newPropName] = newValue;
31538
31538
  }
31539
31539
  }
31540
- log$3.deprecated(nameStr, deprecatedProps[propName].join("/"))();
31540
+ log$4.deprecated(nameStr, deprecatedProps[propName].join("/"))();
31541
31541
  }
31542
31542
  });
31543
31543
  }
@@ -31596,7 +31596,7 @@ function getOwnProperty(object2, prop) {
31596
31596
  function getComponentName(componentClass) {
31597
31597
  const componentName = getOwnProperty(componentClass, "layerName") || getOwnProperty(componentClass, "componentName");
31598
31598
  if (!componentName) {
31599
- log$3.once(0, "".concat(componentClass.name, ".componentName not specified"))();
31599
+ log$4.once(0, "".concat(componentClass.name, ".componentName not specified"))();
31600
31600
  }
31601
31601
  return componentName || componentClass.name;
31602
31602
  }
@@ -32425,7 +32425,7 @@ class Layer extends Component {
32425
32425
  this.internalState.usesPickingColorCache = true;
32426
32426
  if (cacheSize < numInstances) {
32427
32427
  if (numInstances > MAX_PICKING_COLOR_CACHE_SIZE) {
32428
- log$3.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
32428
+ log$4.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
32429
32429
  }
32430
32430
  pickingColorCache = defaultTypedArrayManager.allocate(pickingColorCache, numInstances, {
32431
32431
  size: 3,
@@ -32507,7 +32507,7 @@ class Layer extends Component {
32507
32507
  this.state = {};
32508
32508
  Object.defineProperty(this.state, "attributeManager", {
32509
32509
  get: () => {
32510
- log$3.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
32510
+ log$4.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
32511
32511
  return attributeManager;
32512
32512
  }
32513
32513
  });
@@ -33806,7 +33806,7 @@ const esm$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
33806
33806
  createIterable,
33807
33807
  fp64LowPart,
33808
33808
  gouraudLighting,
33809
- log: log$3,
33809
+ log: log$4,
33810
33810
  phongLighting,
33811
33811
  picking,
33812
33812
  project: project$1,
@@ -34867,7 +34867,7 @@ class IconLayer extends Layer {
34867
34867
  if (onIconError) {
34868
34868
  onIconError(evt);
34869
34869
  } else {
34870
- log$3.error(evt.error.message)();
34870
+ log$4.error(evt.error.message)();
34871
34871
  }
34872
34872
  }
34873
34873
  getInstanceOffset(icon) {
@@ -36284,7 +36284,7 @@ function tesselateColumn(props) {
36284
36284
  vertices
36285
36285
  } = props;
36286
36286
  if (vertices) {
36287
- log$3.assert(vertices.length >= nradial);
36287
+ log$4.assert(vertices.length >= nradial);
36288
36288
  vertices = vertices.flatMap((v) => [v[0], v[1]]);
36289
36289
  modifyPolygonWindingDirection(vertices, WINDING.COUNTER_CLOCKWISE);
36290
36290
  }
@@ -38291,7 +38291,7 @@ class PolygonLayer extends CompositeLayer {
38291
38291
  paths: []
38292
38292
  };
38293
38293
  if (this.props.getLineDashArray) {
38294
- log$3.removed("getLineDashArray", "PathStyleExtension")();
38294
+ log$4.removed("getLineDashArray", "PathStyleExtension")();
38295
38295
  }
38296
38296
  }
38297
38297
  updateState({
@@ -38563,7 +38563,7 @@ class MultiIconLayer extends IconLayer {
38563
38563
  });
38564
38564
  }
38565
38565
  if (!props.sdf && props.outlineWidth) {
38566
- log$3.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
38566
+ log$4.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
38567
38567
  }
38568
38568
  }
38569
38569
  draw(params) {
@@ -38866,7 +38866,7 @@ function transformRow(line, startIndex, endIndex, iconMapping, leftOffsets, rowS
38866
38866
  leftOffsets[i2] = x2 + frame2.width / 2;
38867
38867
  x2 += frame2.width;
38868
38868
  } else {
38869
- log$3.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
38869
+ log$4.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
38870
38870
  leftOffsets[i2] = x2;
38871
38871
  x2 += MISSING_CHAR_WIDTH;
38872
38872
  }
@@ -39060,7 +39060,7 @@ function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
39060
39060
  ctx.textAlign = "left";
39061
39061
  }
39062
39062
  function setFontAtlasCacheLimit(limit) {
39063
- log$3.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
39063
+ log$4.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
39064
39064
  cache$3 = new LRUCache(limit);
39065
39065
  }
39066
39066
  class FontAtlasManager {
@@ -39882,12 +39882,12 @@ function getGeojsonFeatures(geojson) {
39882
39882
  if (Array.isArray(geojson)) {
39883
39883
  return geojson;
39884
39884
  }
39885
- log$3.assert(geojson.type, "GeoJSON does not have type");
39885
+ log$4.assert(geojson.type, "GeoJSON does not have type");
39886
39886
  switch (geojson.type) {
39887
39887
  case "Feature":
39888
39888
  return [geojson];
39889
39889
  case "FeatureCollection":
39890
- log$3.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
39890
+ log$4.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
39891
39891
  return geojson.features;
39892
39892
  default:
39893
39893
  return [{
@@ -39915,7 +39915,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
39915
39915
  continue;
39916
39916
  }
39917
39917
  if (geometry2.type === "GeometryCollection") {
39918
- log$3.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
39918
+ log$4.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
39919
39919
  const {
39920
39920
  geometries
39921
39921
  } = geometry2;
@@ -39941,7 +39941,7 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
39941
39941
  polygonOutlineFeatures
39942
39942
  } = separated;
39943
39943
  if (!validateGeometry(type2, coordinates2)) {
39944
- log$3.warn("".concat(type2, " coordinates are malformed"))();
39944
+ log$4.warn("".concat(type2, " coordinates are malformed"))();
39945
39945
  return;
39946
39946
  }
39947
39947
  switch (type2) {
@@ -40018,7 +40018,7 @@ const COORDINATE_NEST_LEVEL = {
40018
40018
  };
40019
40019
  function validateGeometry(type2, coordinates2) {
40020
40020
  let nestLevel = COORDINATE_NEST_LEVEL[type2];
40021
- log$3.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
40021
+ log$4.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
40022
40022
  while (coordinates2 && --nestLevel > 0) {
40023
40023
  coordinates2 = coordinates2[0];
40024
40024
  }
@@ -40645,7 +40645,7 @@ class GPUGridAggregator {
40645
40645
  });
40646
40646
  const aggregationParams = this._normalizeAggregationParams(opts);
40647
40647
  if (!this._hasGPUSupport) {
40648
- log$3.log(1, "GPUGridAggregator: not supported")();
40648
+ log$4.log(1, "GPUGridAggregator: not supported")();
40649
40649
  }
40650
40650
  return this._runAggregation(aggregationParams);
40651
40651
  }
@@ -41486,7 +41486,7 @@ function getTranslation(boundingBox, gridOffset, coordinateSystem, viewport) {
41486
41486
  height
41487
41487
  } = viewport;
41488
41488
  const worldOrigin = coordinateSystem === COORDINATE_SYSTEM.CARTESIAN ? [-width / 2, -height / 2] : [-180, -90];
41489
- log$3.assert(coordinateSystem === COORDINATE_SYSTEM.CARTESIAN || coordinateSystem === COORDINATE_SYSTEM.LNGLAT || coordinateSystem === COORDINATE_SYSTEM.DEFAULT);
41489
+ log$4.assert(coordinateSystem === COORDINATE_SYSTEM.CARTESIAN || coordinateSystem === COORDINATE_SYSTEM.LNGLAT || coordinateSystem === COORDINATE_SYSTEM.DEFAULT);
41490
41490
  const {
41491
41491
  xMin,
41492
41492
  yMin
@@ -41735,7 +41735,7 @@ class GridAggregationLayer extends AggregationLayer {
41735
41735
  }
41736
41736
  }
41737
41737
  updateAggregationState(opts) {
41738
- log$3.assert(false);
41738
+ log$4.assert(false);
41739
41739
  }
41740
41740
  allocateResources(numRow, numCol) {
41741
41741
  if (this.state.numRow !== numRow || this.state.numCol !== numCol) {
@@ -42124,7 +42124,7 @@ function getCode(opts) {
42124
42124
  } = opts;
42125
42125
  let threshold = opts.threshold;
42126
42126
  if (opts.thresholdValue) {
42127
- log$3.deprecated("thresholdValue", "threshold")();
42127
+ log$4.deprecated("thresholdValue", "threshold")();
42128
42128
  threshold = opts.thresholdValue;
42129
42129
  }
42130
42130
  const isLeftBoundary = x2 < 0;
@@ -42422,7 +42422,7 @@ class ContourLayer extends GridAggregationLayer {
42422
42422
  let gpuAggregation = props.gpuAggregation;
42423
42423
  if (this.state.gpuAggregation !== props.gpuAggregation) {
42424
42424
  if (gpuAggregation && !GPUGridAggregator.isSupported(this.context.gl)) {
42425
- log$3.warn("GPU Grid Aggregation not supported, falling back to CPU")();
42425
+ log$4.warn("GPU Grid Aggregation not supported, falling back to CPU")();
42426
42426
  gpuAggregation = false;
42427
42427
  }
42428
42428
  }
@@ -43455,7 +43455,7 @@ class Tile2DHeader {
43455
43455
  get byteLength() {
43456
43456
  const result = this.content ? this.content.byteLength : 0;
43457
43457
  if (!Number.isFinite(result)) {
43458
- log$3.error("byteLength not defined in tile data")();
43458
+ log$4.error("byteLength not defined in tile data")();
43459
43459
  }
43460
43460
  return result;
43461
43461
  }
@@ -57250,7 +57250,7 @@ function validateGeometryAttributes$1(attributes, useMeshColors) {
57250
57250
  value: new Float32Array([1, 1, 1])
57251
57251
  };
57252
57252
  }
57253
- log$3.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
57253
+ log$4.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
57254
57254
  }
57255
57255
  function getGeometry(data, useMeshColors) {
57256
57256
  if (data.attributes) {
@@ -57592,7 +57592,7 @@ class GroupNode extends ScenegraphNode {
57592
57592
  const {
57593
57593
  children = []
57594
57594
  } = props;
57595
- log$2.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
57595
+ log$3.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
57596
57596
  super(props);
57597
57597
  this.children = children;
57598
57598
  }
@@ -57784,7 +57784,7 @@ function interpolate$1(time, _ref2, target, path) {
57784
57784
  target[path] = [1, 1, 1];
57785
57785
  break;
57786
57786
  default:
57787
- log$2.warn("Bad animation path ".concat(path))();
57787
+ log$3.warn("Bad animation path ".concat(path))();
57788
57788
  }
57789
57789
  }
57790
57790
  assert$8(target[path].length === output[previousIndex].length);
@@ -57819,7 +57819,7 @@ function interpolate$1(time, _ref2, target, path) {
57819
57819
  }
57820
57820
  break;
57821
57821
  default:
57822
- log$2.warn("Interpolation ".concat(interpolation, " not supported"))();
57822
+ log$3.warn("Interpolation ".concat(interpolation, " not supported"))();
57823
57823
  break;
57824
57824
  }
57825
57825
  }
@@ -58065,7 +58065,7 @@ class GLTFMaterialParser {
58065
58065
  this.defines.ALPHA_CUTOFF = 1;
58066
58066
  this.uniforms.u_AlphaCutoff = alphaCutoff;
58067
58067
  } else if (material.alphaMode === "BLEND") {
58068
- log$2.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
58068
+ log$3.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
58069
58069
  Object.assign(this.parameters, {
58070
58070
  blend: true,
58071
58071
  blendEquation: this.gl.FUNC_ADD,
@@ -58094,7 +58094,7 @@ function createGLTFModel(gl, options) {
58094
58094
  modelOptions
58095
58095
  } = options;
58096
58096
  const materialParser = new GLTFMaterialParser(gl, options);
58097
- log$2.info(4, "createGLTFModel defines: ", materialParser.defines)();
58097
+ log$3.info(4, "createGLTFModel defines: ", materialParser.defines)();
58098
58098
  const managedResources = [];
58099
58099
  managedResources.push(...materialParser.generatedTextures);
58100
58100
  managedResources.push(...Object.values(attributes).map((attribute) => attribute.buffer));
@@ -58204,7 +58204,7 @@ class GLTFInstantiator {
58204
58204
  return gltfMesh._mesh;
58205
58205
  }
58206
58206
  getVertexCount(attributes) {
58207
- log$2.warn("getVertexCount() not found")();
58207
+ log$3.warn("getVertexCount() not found")();
58208
58208
  }
58209
58209
  createPrimitive(gltfPrimitive, i2, gltfMesh) {
58210
58210
  const model = createGLTFModel(this.gl, Object.assign({
@@ -58225,7 +58225,7 @@ class GLTFInstantiator {
58225
58225
  if (indices) {
58226
58226
  loadedAttributes.indices = this.createAccessor(indices, this.createBuffer(indices, this.gl.ELEMENT_ARRAY_BUFFER));
58227
58227
  }
58228
- log$2.info(4, "glTF Attributes", {
58228
+ log$3.info(4, "glTF Attributes", {
58229
58229
  attributes,
58230
58230
  indices,
58231
58231
  generated: loadedAttributes
@@ -61551,7 +61551,7 @@ class ScenegraphLayer extends Layer {
61551
61551
  };
61552
61552
  waitForGLTFAssets(gltfObjects).then(() => this.setNeedsRedraw());
61553
61553
  } else if (props.scenegraph) {
61554
- log$3.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
61554
+ log$4.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
61555
61555
  scenegraphData = props.scenegraph;
61556
61556
  }
61557
61557
  const options = {
@@ -61569,7 +61569,7 @@ class ScenegraphLayer extends Layer {
61569
61569
  animator
61570
61570
  });
61571
61571
  } else if (scenegraph !== null) {
61572
- log$3.warn("invalid scenegraph:", scenegraph)();
61572
+ log$4.warn("invalid scenegraph:", scenegraph)();
61573
61573
  }
61574
61574
  }
61575
61575
  _applyAllAttributes(scenegraph) {
@@ -61596,7 +61596,7 @@ class ScenegraphLayer extends Layer {
61596
61596
  if (number >= 0 && number < animations.length) {
61597
61597
  Object.assign(animations[number], value);
61598
61598
  } else {
61599
- log$3.warn("animation ".concat(key, " not found"))();
61599
+ log$4.warn("animation ".concat(key, " not found"))();
61600
61600
  }
61601
61601
  } else {
61602
61602
  const findResult = animations.find(({
@@ -61605,7 +61605,7 @@ class ScenegraphLayer extends Layer {
61605
61605
  if (findResult) {
61606
61606
  Object.assign(findResult, value);
61607
61607
  } else {
61608
- log$3.warn("animation ".concat(key, " not found"))();
61608
+ log$4.warn("animation ".concat(key, " not found"))();
61609
61609
  }
61610
61610
  }
61611
61611
  });
@@ -66076,7 +66076,7 @@ class Tile3DLayer extends CompositeLayer {
66076
66076
  }
66077
66077
  initializeState() {
66078
66078
  if ("onTileLoadFail" in this.props) {
66079
- log$3.removed("onTileLoadFail", "onTileError")();
66079
+ log$4.removed("onTileLoadFail", "onTileError")();
66080
66080
  }
66081
66081
  this.state = {
66082
66082
  layerMap: {},
@@ -67246,7 +67246,7 @@ class TerrainLayer extends CompositeLayer {
67246
67246
  });
67247
67247
  }
67248
67248
  if (props.workerUrl) {
67249
- log$3.removed("workerUrl", "loadOptions.terrain.workerUrl")();
67249
+ log$4.removed("workerUrl", "loadOptions.terrain.workerUrl")();
67250
67250
  }
67251
67251
  }
67252
67252
  loadTerrain({
@@ -69696,7 +69696,7 @@ class MVTLayer extends TileLayer {
69696
69696
  }
69697
69697
  const subLayers = super.renderSubLayers(props);
69698
69698
  if (this.state.binary && !(subLayers instanceof GeoJsonLayer)) {
69699
- log$3.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
69699
+ log$4.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
69700
69700
  }
69701
69701
  return subLayers;
69702
69702
  }
@@ -85261,7 +85261,7 @@ var atan2 = Math.atan2;
85261
85261
  var cos = Math.cos;
85262
85262
  var ceil = Math.ceil;
85263
85263
  var exp = Math.exp;
85264
- var log = Math.log;
85264
+ var log$1 = Math.log;
85265
85265
  var pow = Math.pow;
85266
85266
  var sin = Math.sin;
85267
85267
  var sign = Math.sign || function(x2) {
@@ -87357,7 +87357,7 @@ function azimuthalEquidistant() {
87357
87357
  return projection(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180 - 1e-3);
87358
87358
  }
87359
87359
  function mercatorRaw(lambda, phi) {
87360
- return [lambda, log(tan((halfPi + phi) / 2))];
87360
+ return [lambda, log$1(tan((halfPi + phi) / 2))];
87361
87361
  }
87362
87362
  mercatorRaw.invert = function(x2, y2) {
87363
87363
  return [x2, 2 * atan(exp(y2)) - halfPi];
@@ -87389,7 +87389,7 @@ function tany(y2) {
87389
87389
  return tan((halfPi + y2) / 2);
87390
87390
  }
87391
87391
  function conicConformalRaw(y02, y12) {
87392
- var cy0 = cos(y02), n2 = y02 === y12 ? sin(y02) : log(cy0 / cos(y12)) / log(tany(y12) / tany(y02)), f2 = cy0 * pow(tany(y02), n2) / n2;
87392
+ var cy0 = cos(y02), n2 = y02 === y12 ? sin(y02) : log$1(cy0 / cos(y12)) / log$1(tany(y12) / tany(y02)), f2 = cy0 * pow(tany(y02), n2) / n2;
87393
87393
  if (!n2)
87394
87394
  return mercatorRaw;
87395
87395
  function project2(x2, y2) {
@@ -87523,7 +87523,7 @@ function stereographic() {
87523
87523
  return projection(stereographicRaw).scale(250).clipAngle(142);
87524
87524
  }
87525
87525
  function transverseMercatorRaw(lambda, phi) {
87526
- return [log(tan((halfPi + phi) / 2)), -lambda];
87526
+ return [log$1(tan((halfPi + phi) / 2)), -lambda];
87527
87527
  }
87528
87528
  transverseMercatorRaw.invert = function(x2, y2) {
87529
87529
  return [-y2, 2 * atan(exp(x2)) - halfPi];
@@ -108019,16 +108019,16 @@ function addDecoder(cases, importFn) {
108019
108019
  }
108020
108020
  cases.forEach((c2) => registry$1.set(c2, importFn));
108021
108021
  }
108022
- addDecoder([void 0, 1], () => import("./raw-003e472f.js").then((m2) => m2.default));
108023
- addDecoder(5, () => import("./lzw-b3932ffd.js").then((m2) => m2.default));
108022
+ addDecoder([void 0, 1], () => import("./raw-f54f3630.js").then((m2) => m2.default));
108023
+ addDecoder(5, () => import("./lzw-b39b8a2d.js").then((m2) => m2.default));
108024
108024
  addDecoder(6, () => {
108025
108025
  throw new Error("old style JPEG compression is not supported.");
108026
108026
  });
108027
- addDecoder(7, () => import("./jpeg-fc2a9942.js").then((m2) => m2.default));
108028
- addDecoder([8, 32946], () => import("./deflate-2e95fa57.js").then((m2) => m2.default));
108029
- addDecoder(32773, () => import("./packbits-2f89ef73.js").then((m2) => m2.default));
108030
- addDecoder(34887, () => import("./lerc-5b2b9693.js").then((m2) => m2.default));
108031
- addDecoder(50001, () => import("./webimage-de1437b0.js").then((m2) => m2.default));
108027
+ addDecoder(7, () => import("./jpeg-ce0e20fd.js").then((m2) => m2.default));
108028
+ addDecoder([8, 32946], () => import("./deflate-2118efad.js").then((m2) => m2.default));
108029
+ addDecoder(32773, () => import("./packbits-63613d30.js").then((m2) => m2.default));
108030
+ addDecoder(34887, () => import("./lerc-faeaf33e.js").then((m2) => m2.default));
108031
+ addDecoder(50001, () => import("./webimage-37fd74e0.js").then((m2) => m2.default));
108032
108032
  function decodeRowAcc(row, stride) {
108033
108033
  let length2 = row.length - stride;
108034
108034
  let offset5 = 0;
@@ -121704,6 +121704,258 @@ function max(values2, valueof) {
121704
121704
  }
121705
121705
  return max2;
121706
121706
  }
121707
+ var loglevel = { exports: {} };
121708
+ (function(module2) {
121709
+ (function(root2, definition) {
121710
+ if (module2.exports) {
121711
+ module2.exports = definition();
121712
+ } else {
121713
+ root2.log = definition();
121714
+ }
121715
+ })(commonjsGlobal, function() {
121716
+ var noop2 = function() {
121717
+ };
121718
+ var undefinedType = "undefined";
121719
+ var isIE2 = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
121720
+ var logMethods = [
121721
+ "trace",
121722
+ "debug",
121723
+ "info",
121724
+ "warn",
121725
+ "error"
121726
+ ];
121727
+ var _loggersByName = {};
121728
+ var defaultLogger = null;
121729
+ function bindMethod(obj, methodName) {
121730
+ var method = obj[methodName];
121731
+ if (typeof method.bind === "function") {
121732
+ return method.bind(obj);
121733
+ } else {
121734
+ try {
121735
+ return Function.prototype.bind.call(method, obj);
121736
+ } catch (e2) {
121737
+ return function() {
121738
+ return Function.prototype.apply.apply(method, [obj, arguments]);
121739
+ };
121740
+ }
121741
+ }
121742
+ }
121743
+ function traceForIE() {
121744
+ if (console.log) {
121745
+ if (console.log.apply) {
121746
+ console.log.apply(console, arguments);
121747
+ } else {
121748
+ Function.prototype.apply.apply(console.log, [console, arguments]);
121749
+ }
121750
+ }
121751
+ if (console.trace)
121752
+ console.trace();
121753
+ }
121754
+ function realMethod(methodName) {
121755
+ if (methodName === "debug") {
121756
+ methodName = "log";
121757
+ }
121758
+ if (typeof console === undefinedType) {
121759
+ return false;
121760
+ } else if (methodName === "trace" && isIE2) {
121761
+ return traceForIE;
121762
+ } else if (console[methodName] !== void 0) {
121763
+ return bindMethod(console, methodName);
121764
+ } else if (console.log !== void 0) {
121765
+ return bindMethod(console, "log");
121766
+ } else {
121767
+ return noop2;
121768
+ }
121769
+ }
121770
+ function replaceLoggingMethods() {
121771
+ var level = this.getLevel();
121772
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
121773
+ var methodName = logMethods[i2];
121774
+ this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
121775
+ }
121776
+ this.log = this.debug;
121777
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
121778
+ return "No console available for logging";
121779
+ }
121780
+ }
121781
+ function enableLoggingWhenConsoleArrives(methodName) {
121782
+ return function() {
121783
+ if (typeof console !== undefinedType) {
121784
+ replaceLoggingMethods.call(this);
121785
+ this[methodName].apply(this, arguments);
121786
+ }
121787
+ };
121788
+ }
121789
+ function defaultMethodFactory(methodName, _level, _loggerName) {
121790
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
121791
+ }
121792
+ function Logger(name2, factory) {
121793
+ var self2 = this;
121794
+ var inheritedLevel;
121795
+ var defaultLevel;
121796
+ var userLevel;
121797
+ var storageKey = "loglevel";
121798
+ if (typeof name2 === "string") {
121799
+ storageKey += ":" + name2;
121800
+ } else if (typeof name2 === "symbol") {
121801
+ storageKey = void 0;
121802
+ }
121803
+ function persistLevelIfPossible(levelNum) {
121804
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
121805
+ if (typeof window === undefinedType || !storageKey)
121806
+ return;
121807
+ try {
121808
+ window.localStorage[storageKey] = levelName;
121809
+ return;
121810
+ } catch (ignore) {
121811
+ }
121812
+ try {
121813
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
121814
+ } catch (ignore) {
121815
+ }
121816
+ }
121817
+ function getPersistedLevel() {
121818
+ var storedLevel;
121819
+ if (typeof window === undefinedType || !storageKey)
121820
+ return;
121821
+ try {
121822
+ storedLevel = window.localStorage[storageKey];
121823
+ } catch (ignore) {
121824
+ }
121825
+ if (typeof storedLevel === undefinedType) {
121826
+ try {
121827
+ var cookie = window.document.cookie;
121828
+ var cookieName = encodeURIComponent(storageKey);
121829
+ var location = cookie.indexOf(cookieName + "=");
121830
+ if (location !== -1) {
121831
+ storedLevel = /^([^;]+)/.exec(
121832
+ cookie.slice(location + cookieName.length + 1)
121833
+ )[1];
121834
+ }
121835
+ } catch (ignore) {
121836
+ }
121837
+ }
121838
+ if (self2.levels[storedLevel] === void 0) {
121839
+ storedLevel = void 0;
121840
+ }
121841
+ return storedLevel;
121842
+ }
121843
+ function clearPersistedLevel() {
121844
+ if (typeof window === undefinedType || !storageKey)
121845
+ return;
121846
+ try {
121847
+ window.localStorage.removeItem(storageKey);
121848
+ } catch (ignore) {
121849
+ }
121850
+ try {
121851
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
121852
+ } catch (ignore) {
121853
+ }
121854
+ }
121855
+ function normalizeLevel(input) {
121856
+ var level = input;
121857
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
121858
+ level = self2.levels[level.toUpperCase()];
121859
+ }
121860
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
121861
+ return level;
121862
+ } else {
121863
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
121864
+ }
121865
+ }
121866
+ self2.name = name2;
121867
+ self2.levels = {
121868
+ "TRACE": 0,
121869
+ "DEBUG": 1,
121870
+ "INFO": 2,
121871
+ "WARN": 3,
121872
+ "ERROR": 4,
121873
+ "SILENT": 5
121874
+ };
121875
+ self2.methodFactory = factory || defaultMethodFactory;
121876
+ self2.getLevel = function() {
121877
+ if (userLevel != null) {
121878
+ return userLevel;
121879
+ } else if (defaultLevel != null) {
121880
+ return defaultLevel;
121881
+ } else {
121882
+ return inheritedLevel;
121883
+ }
121884
+ };
121885
+ self2.setLevel = function(level, persist) {
121886
+ userLevel = normalizeLevel(level);
121887
+ if (persist !== false) {
121888
+ persistLevelIfPossible(userLevel);
121889
+ }
121890
+ return replaceLoggingMethods.call(self2);
121891
+ };
121892
+ self2.setDefaultLevel = function(level) {
121893
+ defaultLevel = normalizeLevel(level);
121894
+ if (!getPersistedLevel()) {
121895
+ self2.setLevel(level, false);
121896
+ }
121897
+ };
121898
+ self2.resetLevel = function() {
121899
+ userLevel = null;
121900
+ clearPersistedLevel();
121901
+ replaceLoggingMethods.call(self2);
121902
+ };
121903
+ self2.enableAll = function(persist) {
121904
+ self2.setLevel(self2.levels.TRACE, persist);
121905
+ };
121906
+ self2.disableAll = function(persist) {
121907
+ self2.setLevel(self2.levels.SILENT, persist);
121908
+ };
121909
+ self2.rebuild = function() {
121910
+ if (defaultLogger !== self2) {
121911
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
121912
+ }
121913
+ replaceLoggingMethods.call(self2);
121914
+ if (defaultLogger === self2) {
121915
+ for (var childName in _loggersByName) {
121916
+ _loggersByName[childName].rebuild();
121917
+ }
121918
+ }
121919
+ };
121920
+ inheritedLevel = normalizeLevel(
121921
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
121922
+ );
121923
+ var initialLevel = getPersistedLevel();
121924
+ if (initialLevel != null) {
121925
+ userLevel = normalizeLevel(initialLevel);
121926
+ }
121927
+ replaceLoggingMethods.call(self2);
121928
+ }
121929
+ defaultLogger = new Logger();
121930
+ defaultLogger.getLogger = function getLogger(name2) {
121931
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
121932
+ throw new TypeError("You must supply a name when creating a logger.");
121933
+ }
121934
+ var logger = _loggersByName[name2];
121935
+ if (!logger) {
121936
+ logger = _loggersByName[name2] = new Logger(
121937
+ name2,
121938
+ defaultLogger.methodFactory
121939
+ );
121940
+ }
121941
+ return logger;
121942
+ };
121943
+ var _log = typeof window !== undefinedType ? window.log : void 0;
121944
+ defaultLogger.noConflict = function() {
121945
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
121946
+ window.log = _log;
121947
+ }
121948
+ return defaultLogger;
121949
+ };
121950
+ defaultLogger.getLoggers = function getLoggers2() {
121951
+ return _loggersByName;
121952
+ };
121953
+ defaultLogger["default"] = defaultLogger;
121954
+ return defaultLogger;
121955
+ });
121956
+ })(loglevel);
121957
+ var loglevelExports = loglevel.exports;
121958
+ const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
121707
121959
  function normalize(arr) {
121708
121960
  const [min, max2] = extent(arr);
121709
121961
  const ratio = 255 / (max2 - min);
@@ -121725,10 +121977,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
121725
121977
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
121726
121978
  const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
121727
121979
  if (valueTexHeight > texSize) {
121728
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121980
+ log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121729
121981
  }
121730
121982
  if (colorTexHeight > texSize) {
121731
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121983
+ log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
121732
121984
  }
121733
121985
  const totalData = new Uint8Array(texSize * valueTexHeight);
121734
121986
  const totalColors = new Uint8Array(texSize * colorTexHeight);