@vitessce/gl 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.
- package/dist/{deflate-5f6bf017.js → deflate-85297f1e.js} +1 -1
- package/dist/{index-c65f0da2.js → index-0b0f2f7e.js} +391 -139
- package/dist/index.js +2 -2
- package/dist/{jpeg-7428d0cc.js → jpeg-3517139d.js} +1 -1
- package/dist/{lerc-70c5067b.js → lerc-c7fc99c0.js} +1 -1
- package/dist/{lzw-4c807d51.js → lzw-58768e77.js} +1 -1
- package/dist/{packbits-865e9a4b.js → packbits-aee0956d.js} +1 -1
- package/dist/{raw-3d70ff2e.js → raw-862de075.js} +1 -1
- package/dist/{webimage-baf0ad55.js → webimage-2cb43003.js} +1 -1
- package/dist-tsc/bitmask-utils.d.ts.map +1 -1
- package/dist-tsc/bitmask-utils.js +3 -2
- package/package.json +3 -2
- package/src/bitmask-utils.js +3 -2
|
@@ -2037,7 +2037,7 @@ function registerLoaders(loaders) {
|
|
|
2037
2037
|
function getRegisteredLoaders() {
|
|
2038
2038
|
return getGlobalLoaderRegistry();
|
|
2039
2039
|
}
|
|
2040
|
-
const log$
|
|
2040
|
+
const log$5 = new Log({
|
|
2041
2041
|
id: "loaders.gl"
|
|
2042
2042
|
});
|
|
2043
2043
|
const EXT_PATTERN = /\.([^.]+)$/;
|
|
@@ -2104,7 +2104,7 @@ function selectLoaderInternal(data, loaders, options, context) {
|
|
|
2104
2104
|
reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
|
|
2105
2105
|
if (reason) {
|
|
2106
2106
|
var _loader;
|
|
2107
|
-
log$
|
|
2107
|
+
log$5.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
|
|
2108
2108
|
}
|
|
2109
2109
|
return loader;
|
|
2110
2110
|
}
|
|
@@ -2829,7 +2829,7 @@ function checkWebPSupport() {
|
|
|
2829
2829
|
return false;
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
|
-
const log$
|
|
2832
|
+
const log$4 = new Log({
|
|
2833
2833
|
id: "deck"
|
|
2834
2834
|
});
|
|
2835
2835
|
const logState = {
|
|
@@ -2931,13 +2931,13 @@ const getLoggers = (log3) => ({
|
|
|
2931
2931
|
});
|
|
2932
2932
|
let loggers = {};
|
|
2933
2933
|
{
|
|
2934
|
-
loggers = getLoggers(log$
|
|
2934
|
+
loggers = getLoggers(log$4);
|
|
2935
2935
|
}
|
|
2936
2936
|
function register(handlers) {
|
|
2937
2937
|
loggers = handlers;
|
|
2938
2938
|
}
|
|
2939
2939
|
function debug(eventType, arg1, arg2, arg3) {
|
|
2940
|
-
if (log$
|
|
2940
|
+
if (log$4.level > 0 && loggers[eventType]) {
|
|
2941
2941
|
loggers[eventType].call(null, arg1, arg2, arg3);
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
@@ -2963,12 +2963,12 @@ if (existingVersion && existingVersion !== version) {
|
|
|
2963
2963
|
throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion, " vs ").concat(version));
|
|
2964
2964
|
}
|
|
2965
2965
|
if (!existingVersion) {
|
|
2966
|
-
log$
|
|
2966
|
+
log$4.log(1, "deck.gl ".concat(version))();
|
|
2967
2967
|
globalThis.deck = {
|
|
2968
2968
|
...globalThis.deck,
|
|
2969
2969
|
VERSION: version,
|
|
2970
2970
|
version,
|
|
2971
|
-
log: log$
|
|
2971
|
+
log: log$4,
|
|
2972
2972
|
_registerLoggers: register
|
|
2973
2973
|
};
|
|
2974
2974
|
registerLoaders([jsonLoader, [ImageLoader, {
|
|
@@ -2978,7 +2978,7 @@ if (!existingVersion) {
|
|
|
2978
2978
|
}]]);
|
|
2979
2979
|
}
|
|
2980
2980
|
const deckGlobal = globalThis.deck;
|
|
2981
|
-
const log$
|
|
2981
|
+
const log$3 = new Log({
|
|
2982
2982
|
id: "luma.gl"
|
|
2983
2983
|
});
|
|
2984
2984
|
function assert$a(condition, message) {
|
|
@@ -3020,7 +3020,7 @@ function error(msg) {
|
|
|
3020
3020
|
globalThis.console.error(msg);
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
|
-
function log$
|
|
3023
|
+
function log$2(msg) {
|
|
3024
3024
|
if (globalThis.console && globalThis.console.log) {
|
|
3025
3025
|
globalThis.console.log(msg);
|
|
3026
3026
|
}
|
|
@@ -3161,7 +3161,7 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
if (gl.canvas) {
|
|
3163
3163
|
gl.canvas.addEventListener("webglcontextrestored", () => {
|
|
3164
|
-
log$
|
|
3164
|
+
log$2("OESVertexArrayObject emulation library context restored");
|
|
3165
3165
|
self2.reset_();
|
|
3166
3166
|
}, true);
|
|
3167
3167
|
}
|
|
@@ -4270,16 +4270,16 @@ function instrumentGLContext(gl) {
|
|
|
4270
4270
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4271
4271
|
args[_key] = arguments[_key];
|
|
4272
4272
|
}
|
|
4273
|
-
return log$
|
|
4273
|
+
return log$3.log(1, ...args)();
|
|
4274
4274
|
}
|
|
4275
4275
|
});
|
|
4276
4276
|
}
|
|
4277
4277
|
if (isBrowser && debug2) {
|
|
4278
4278
|
if (!globalThis.makeDebugContext) {
|
|
4279
|
-
log$
|
|
4279
|
+
log$3.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
|
|
4280
4280
|
} else {
|
|
4281
4281
|
gl = globalThis.makeDebugContext(gl, options);
|
|
4282
|
-
log$
|
|
4282
|
+
log$3.level = Math.max(log$3.level, 1);
|
|
4283
4283
|
}
|
|
4284
4284
|
}
|
|
4285
4285
|
gl._instrumented = true;
|
|
@@ -4374,7 +4374,7 @@ function logInfo(gl) {
|
|
|
4374
4374
|
const info = getContextDebugInfo(gl);
|
|
4375
4375
|
const driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : "";
|
|
4376
4376
|
const debug2 = gl.debug ? " debug" : "";
|
|
4377
|
-
log$
|
|
4377
|
+
log$3.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
|
|
4378
4378
|
}
|
|
4379
4379
|
function getVersion(gl) {
|
|
4380
4380
|
if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) {
|
|
@@ -4386,7 +4386,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
|
|
|
4386
4386
|
let clientWidth = "width" in options ? options.width : gl.canvas.clientWidth;
|
|
4387
4387
|
let clientHeight = "height" in options ? options.height : gl.canvas.clientHeight;
|
|
4388
4388
|
if (!clientWidth || !clientHeight) {
|
|
4389
|
-
log$
|
|
4389
|
+
log$3.log(1, "Canvas clientWidth/clientHeight is 0")();
|
|
4390
4390
|
devicePixelRatio = 1;
|
|
4391
4391
|
clientWidth = gl.canvas.width || 1;
|
|
4392
4392
|
clientHeight = gl.canvas.height || 1;
|
|
@@ -4401,7 +4401,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
|
|
|
4401
4401
|
gl.canvas.width = canvasWidth;
|
|
4402
4402
|
gl.canvas.height = canvasHeight;
|
|
4403
4403
|
if (gl.drawingBufferWidth !== canvasWidth || gl.drawingBufferHeight !== canvasHeight) {
|
|
4404
|
-
log$
|
|
4404
|
+
log$3.warn("Device pixel ratio clamped")();
|
|
4405
4405
|
clampedPixelRatio = Math.min(gl.drawingBufferWidth / clientWidth, gl.drawingBufferHeight / clientHeight);
|
|
4406
4406
|
gl.canvas.width = Math.floor(clientWidth * clampedPixelRatio);
|
|
4407
4407
|
gl.canvas.height = Math.floor(clientHeight * clampedPixelRatio);
|
|
@@ -4434,12 +4434,12 @@ if (globalThis.luma && globalThis.luma.VERSION !== VERSION$7) {
|
|
|
4434
4434
|
}
|
|
4435
4435
|
if (!globalThis.luma) {
|
|
4436
4436
|
if (isBrowser$1()) {
|
|
4437
|
-
log$
|
|
4437
|
+
log$3.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
|
|
4438
4438
|
}
|
|
4439
4439
|
globalThis.luma = globalThis.luma || {
|
|
4440
4440
|
VERSION: VERSION$7,
|
|
4441
4441
|
version: VERSION$7,
|
|
4442
|
-
log: log$
|
|
4442
|
+
log: log$3,
|
|
4443
4443
|
stats: lumaStats,
|
|
4444
4444
|
globals: {
|
|
4445
4445
|
modules: {},
|
|
@@ -4507,7 +4507,7 @@ function stubRemovedMethods(instance, className, version2, methodNames) {
|
|
|
4507
4507
|
return;
|
|
4508
4508
|
}
|
|
4509
4509
|
prototype[methodName] = () => {
|
|
4510
|
-
log$
|
|
4510
|
+
log$3.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
|
|
4511
4511
|
throw new Error(methodName);
|
|
4512
4512
|
};
|
|
4513
4513
|
});
|
|
@@ -4808,20 +4808,20 @@ function checkProps(className, props, propChecks) {
|
|
|
4808
4808
|
if (propName in props) {
|
|
4809
4809
|
const replacementProp = removedProps[propName];
|
|
4810
4810
|
const replacement = replacementProp ? "".concat(className, ".").concat(removedProps[propName]) : "N/A";
|
|
4811
|
-
log$
|
|
4811
|
+
log$3.removed("".concat(className, ".").concat(propName), replacement)();
|
|
4812
4812
|
}
|
|
4813
4813
|
}
|
|
4814
4814
|
for (const propName in deprecatedProps) {
|
|
4815
4815
|
if (propName in props) {
|
|
4816
4816
|
const replacementProp = deprecatedProps[propName];
|
|
4817
|
-
log$
|
|
4817
|
+
log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
|
|
4818
4818
|
}
|
|
4819
4819
|
}
|
|
4820
4820
|
let newProps = null;
|
|
4821
4821
|
for (const propName in replacedProps) {
|
|
4822
4822
|
if (propName in props) {
|
|
4823
4823
|
const replacementProp = replacedProps[propName];
|
|
4824
|
-
log$
|
|
4824
|
+
log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
|
|
4825
4825
|
newProps = newProps || Object.assign({}, props);
|
|
4826
4826
|
newProps[replacementProp] = props[propName];
|
|
4827
4827
|
delete newProps[propName];
|
|
@@ -5206,19 +5206,19 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
5206
5206
|
return value;
|
|
5207
5207
|
}
|
|
5208
5208
|
get type() {
|
|
5209
|
-
log$
|
|
5209
|
+
log$3.deprecated("Buffer.type", "Buffer.accessor.type")();
|
|
5210
5210
|
return this.accessor.type;
|
|
5211
5211
|
}
|
|
5212
5212
|
get bytes() {
|
|
5213
|
-
log$
|
|
5213
|
+
log$3.deprecated("Buffer.bytes", "Buffer.byteLength")();
|
|
5214
5214
|
return this.byteLength;
|
|
5215
5215
|
}
|
|
5216
5216
|
setByteLength(byteLength) {
|
|
5217
|
-
log$
|
|
5217
|
+
log$3.deprecated("setByteLength", "reallocate")();
|
|
5218
5218
|
return this.reallocate(byteLength);
|
|
5219
5219
|
}
|
|
5220
5220
|
updateAccessor(opts) {
|
|
5221
|
-
log$
|
|
5221
|
+
log$3.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
|
|
5222
5222
|
this.accessor = new Accessor(this.accessor, opts);
|
|
5223
5223
|
return this;
|
|
5224
5224
|
}
|
|
@@ -5425,7 +5425,7 @@ class Texture extends Resource$1 {
|
|
|
5425
5425
|
this.gl.bindTexture(this.target, this.handle);
|
|
5426
5426
|
}
|
|
5427
5427
|
if (mipmaps && this._isNPOT()) {
|
|
5428
|
-
log$
|
|
5428
|
+
log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
|
|
5429
5429
|
mipmaps = false;
|
|
5430
5430
|
this._updateForNPOT(parameters);
|
|
5431
5431
|
}
|
|
@@ -5501,7 +5501,7 @@ class Texture extends Resource$1 {
|
|
|
5501
5501
|
generateMipmap() {
|
|
5502
5502
|
let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5503
5503
|
if (this._isNPOT()) {
|
|
5504
|
-
log$
|
|
5504
|
+
log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
|
|
5505
5505
|
return this;
|
|
5506
5506
|
}
|
|
5507
5507
|
this.mipmaps = true;
|
|
@@ -5675,7 +5675,7 @@ class Texture extends Resource$1 {
|
|
|
5675
5675
|
this.gl.bindTexture(this.target, null);
|
|
5676
5676
|
}
|
|
5677
5677
|
copyFramebuffer() {
|
|
5678
|
-
log$
|
|
5678
|
+
log$3.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
|
|
5679
5679
|
return null;
|
|
5680
5680
|
}
|
|
5681
5681
|
getActiveUnit() {
|
|
@@ -6006,7 +6006,7 @@ class TextureCube extends Texture {
|
|
|
6006
6006
|
this.bind();
|
|
6007
6007
|
FACES.forEach((face, index2) => {
|
|
6008
6008
|
if (resolvedFaces[index2].length > 1 && this.opts.mipmaps !== false) {
|
|
6009
|
-
log$
|
|
6009
|
+
log$3.warn("".concat(this.id, " has mipmap and multiple LODs."))();
|
|
6010
6010
|
}
|
|
6011
6011
|
resolvedFaces[index2].forEach((image, lodLevel) => {
|
|
6012
6012
|
if (width && height) {
|
|
@@ -6782,7 +6782,7 @@ function isFeatureSupported(gl, cap) {
|
|
|
6782
6782
|
gl.luma.caps[cap] = queryFeature(gl, cap);
|
|
6783
6783
|
}
|
|
6784
6784
|
if (!gl.luma.caps[cap]) {
|
|
6785
|
-
log$
|
|
6785
|
+
log$3.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
|
|
6786
6786
|
}
|
|
6787
6787
|
return gl.luma.caps[cap];
|
|
6788
6788
|
}
|
|
@@ -6956,7 +6956,7 @@ class Framebuffer extends Resource$1 {
|
|
|
6956
6956
|
height = this.gl.drawingBufferHeight;
|
|
6957
6957
|
}
|
|
6958
6958
|
if (width !== this.width && height !== this.height) {
|
|
6959
|
-
log$
|
|
6959
|
+
log$3.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
|
|
6960
6960
|
}
|
|
6961
6961
|
for (const attachmentPoint in this.attachments) {
|
|
6962
6962
|
this.attachments[attachmentPoint].resize({
|
|
@@ -7065,27 +7065,27 @@ class Framebuffer extends Resource$1 {
|
|
|
7065
7065
|
return this;
|
|
7066
7066
|
}
|
|
7067
7067
|
readPixels() {
|
|
7068
|
-
log$
|
|
7068
|
+
log$3.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
|
|
7069
7069
|
return null;
|
|
7070
7070
|
}
|
|
7071
7071
|
readPixelsToBuffer() {
|
|
7072
|
-
log$
|
|
7072
|
+
log$3.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
|
|
7073
7073
|
return null;
|
|
7074
7074
|
}
|
|
7075
7075
|
copyToDataUrl() {
|
|
7076
|
-
log$
|
|
7076
|
+
log$3.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
|
|
7077
7077
|
return null;
|
|
7078
7078
|
}
|
|
7079
7079
|
copyToImage() {
|
|
7080
|
-
log$
|
|
7080
|
+
log$3.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
|
|
7081
7081
|
return null;
|
|
7082
7082
|
}
|
|
7083
7083
|
copyToTexture() {
|
|
7084
|
-
log$
|
|
7084
|
+
log$3.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
|
|
7085
7085
|
return null;
|
|
7086
7086
|
}
|
|
7087
7087
|
blit() {
|
|
7088
|
-
log$
|
|
7088
|
+
log$3.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
|
|
7089
7089
|
return null;
|
|
7090
7090
|
}
|
|
7091
7091
|
invalidate(_ref3) {
|
|
@@ -7150,14 +7150,14 @@ class Framebuffer extends Resource$1 {
|
|
|
7150
7150
|
log() {
|
|
7151
7151
|
let logLevel = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
7152
7152
|
let message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7153
|
-
if (logLevel > log$
|
|
7153
|
+
if (logLevel > log$3.level || typeof window === "undefined") {
|
|
7154
7154
|
return this;
|
|
7155
7155
|
}
|
|
7156
7156
|
message = message || "Framebuffer ".concat(this.id);
|
|
7157
7157
|
const image = copyToDataUrl(this, {
|
|
7158
7158
|
targetMaxHeight: 100
|
|
7159
7159
|
});
|
|
7160
|
-
log$
|
|
7160
|
+
log$3.image({
|
|
7161
7161
|
logLevel,
|
|
7162
7162
|
message,
|
|
7163
7163
|
image
|
|
@@ -7547,8 +7547,8 @@ class Shader extends Resource$1 {
|
|
|
7547
7547
|
errors,
|
|
7548
7548
|
warnings
|
|
7549
7549
|
} = parseGLSLCompilerError(infoLog, this.source, this.shaderType, this.id);
|
|
7550
|
-
log$
|
|
7551
|
-
log$
|
|
7550
|
+
log$3.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
|
|
7551
|
+
log$3.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
|
|
7552
7552
|
throw new Error("GLSL compilation errors in ".concat(shaderName));
|
|
7553
7553
|
}
|
|
7554
7554
|
}
|
|
@@ -7656,7 +7656,7 @@ function toTypedArray$1(value, uniformLength, Type2, cache2) {
|
|
|
7656
7656
|
}
|
|
7657
7657
|
const length2 = value.length;
|
|
7658
7658
|
if (length2 % uniformLength) {
|
|
7659
|
-
log$
|
|
7659
|
+
log$3.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
|
|
7660
7660
|
}
|
|
7661
7661
|
if (value instanceof Type2) {
|
|
7662
7662
|
return value;
|
|
@@ -8121,13 +8121,13 @@ class Program extends Resource$1 {
|
|
|
8121
8121
|
samplers
|
|
8122
8122
|
} = _ref;
|
|
8123
8123
|
if (uniforms || samplers) {
|
|
8124
|
-
log$
|
|
8124
|
+
log$3.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
|
|
8125
8125
|
this.setUniforms(uniforms || {});
|
|
8126
8126
|
}
|
|
8127
|
-
if (log$
|
|
8127
|
+
if (log$3.priority >= logPriority) {
|
|
8128
8128
|
const fb = framebuffer ? framebuffer.id : "default";
|
|
8129
8129
|
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);
|
|
8130
|
-
log$
|
|
8130
|
+
log$3.log(logPriority, message)();
|
|
8131
8131
|
}
|
|
8132
8132
|
assert$9(vertexArray);
|
|
8133
8133
|
this.gl.useProgram(this.handle);
|
|
@@ -8166,7 +8166,7 @@ class Program extends Resource$1 {
|
|
|
8166
8166
|
}
|
|
8167
8167
|
setUniforms() {
|
|
8168
8168
|
let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8169
|
-
if (log$
|
|
8169
|
+
if (log$3.priority >= 2) {
|
|
8170
8170
|
checkUniformValues(uniforms, this.id, this._uniformSetters);
|
|
8171
8171
|
}
|
|
8172
8172
|
this.gl.useProgram(this.handle);
|
|
@@ -8267,10 +8267,10 @@ class Program extends Resource$1 {
|
|
|
8267
8267
|
} = this;
|
|
8268
8268
|
gl.attachShader(this.handle, this.vs.handle);
|
|
8269
8269
|
gl.attachShader(this.handle, this.fs.handle);
|
|
8270
|
-
log$
|
|
8270
|
+
log$3.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
|
|
8271
8271
|
gl.linkProgram(this.handle);
|
|
8272
|
-
log$
|
|
8273
|
-
if (gl.debug || log$
|
|
8272
|
+
log$3.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
|
|
8273
|
+
if (gl.debug || log$3.level > 0) {
|
|
8274
8274
|
const linked = gl.getProgramParameter(this.handle, 35714);
|
|
8275
8275
|
if (!linked) {
|
|
8276
8276
|
throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));
|
|
@@ -8493,7 +8493,7 @@ class TransformFeedback extends Resource$1 {
|
|
|
8493
8493
|
} = this._getBufferParams(bufferOrParams);
|
|
8494
8494
|
if (location < 0) {
|
|
8495
8495
|
this.unused[locationOrName] = buffer2;
|
|
8496
|
-
log$
|
|
8496
|
+
log$3.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
|
|
8497
8497
|
return this;
|
|
8498
8498
|
}
|
|
8499
8499
|
this.buffers[location] = bufferOrParams;
|
|
@@ -9042,7 +9042,7 @@ class VertexArray {
|
|
|
9042
9042
|
} = this._getAttributeIndex(locationOrName);
|
|
9043
9043
|
if (!Number.isFinite(location) || location < 0) {
|
|
9044
9044
|
this.unused[locationOrName] = value;
|
|
9045
|
-
log$
|
|
9045
|
+
log$3.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
|
|
9046
9046
|
return INVALID_RESULT;
|
|
9047
9047
|
}
|
|
9048
9048
|
const accessInfo = this._getAttributeInfo(name2 || location);
|
|
@@ -9180,7 +9180,7 @@ class VertexArray {
|
|
|
9180
9180
|
setElements() {
|
|
9181
9181
|
let elementBuffer = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
9182
9182
|
let accessor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
9183
|
-
log$
|
|
9183
|
+
log$3.deprecated("setElements", "setElementBuffer")();
|
|
9184
9184
|
return this.setElementBuffer(elementBuffer, accessor);
|
|
9185
9185
|
}
|
|
9186
9186
|
}
|
|
@@ -9474,7 +9474,7 @@ class AnimationLoop {
|
|
|
9474
9474
|
useDevicePixels = true
|
|
9475
9475
|
} = props;
|
|
9476
9476
|
if ("useDevicePixelRatio" in props) {
|
|
9477
|
-
log$
|
|
9477
|
+
log$3.deprecated("useDevicePixelRatio", "useDevicePixels")();
|
|
9478
9478
|
useDevicePixels = props.useDevicePixelRatio;
|
|
9479
9479
|
}
|
|
9480
9480
|
this.props = {
|
|
@@ -9640,7 +9640,7 @@ class AnimationLoop {
|
|
|
9640
9640
|
return element ? Number(element.value) : defaultValue2;
|
|
9641
9641
|
}
|
|
9642
9642
|
setViewParameters() {
|
|
9643
|
-
log$
|
|
9643
|
+
log$3.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
|
|
9644
9644
|
return this;
|
|
9645
9645
|
}
|
|
9646
9646
|
_startLoop() {
|
|
@@ -14949,7 +14949,7 @@ class Model {
|
|
|
14949
14949
|
this.updateModuleSettings(moduleSettings);
|
|
14950
14950
|
this.setUniforms(uniforms);
|
|
14951
14951
|
let logPriority;
|
|
14952
|
-
if (log$
|
|
14952
|
+
if (log$3.priority >= LOG_DRAW_PRIORITY) {
|
|
14953
14953
|
logPriority = this._logDrawCallStart(LOG_DRAW_PRIORITY);
|
|
14954
14954
|
}
|
|
14955
14955
|
const drawParams = this.vertexArray.getDrawParams();
|
|
@@ -14960,7 +14960,7 @@ class Model {
|
|
|
14960
14960
|
vertexArrayInstanced = drawParams.isInstanced
|
|
14961
14961
|
} = this.props;
|
|
14962
14962
|
if (vertexArrayInstanced && !this.isInstanced) {
|
|
14963
|
-
log$
|
|
14963
|
+
log$3.warn("Found instanced attributes on non-instanced model", this.id)();
|
|
14964
14964
|
}
|
|
14965
14965
|
const {
|
|
14966
14966
|
isInstanced,
|
|
@@ -14988,7 +14988,7 @@ class Model {
|
|
|
14988
14988
|
offset: isIndexed ? indexOffset : 0
|
|
14989
14989
|
}));
|
|
14990
14990
|
onAfterRender();
|
|
14991
|
-
if (log$
|
|
14991
|
+
if (log$3.priority >= LOG_DRAW_PRIORITY) {
|
|
14992
14992
|
this._logDrawCallEnd(logPriority, vertexArray, framebuffer);
|
|
14993
14993
|
}
|
|
14994
14994
|
return didDraw;
|
|
@@ -15023,7 +15023,7 @@ class Model {
|
|
|
15023
15023
|
}
|
|
15024
15024
|
render() {
|
|
15025
15025
|
let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
15026
|
-
log$
|
|
15026
|
+
log$3.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
|
|
15027
15027
|
return this.setUniforms(uniforms).draw();
|
|
15028
15028
|
}
|
|
15029
15029
|
_setModelProps(props) {
|
|
@@ -15135,8 +15135,8 @@ class Model {
|
|
|
15135
15135
|
return void 0;
|
|
15136
15136
|
}
|
|
15137
15137
|
this.lastLogTime = Date.now();
|
|
15138
|
-
log$
|
|
15139
|
-
collapsed: log$
|
|
15138
|
+
log$3.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
|
|
15139
|
+
collapsed: log$3.level <= 2
|
|
15140
15140
|
})();
|
|
15141
15141
|
return logLevel;
|
|
15142
15142
|
}
|
|
@@ -15168,22 +15168,22 @@ class Model {
|
|
|
15168
15168
|
undefinedOnly: true
|
|
15169
15169
|
});
|
|
15170
15170
|
if (missingCount > 0) {
|
|
15171
|
-
log$
|
|
15171
|
+
log$3.log("MISSING UNIFORMS", Object.keys(missingTable))();
|
|
15172
15172
|
}
|
|
15173
15173
|
if (unusedCount > 0) {
|
|
15174
|
-
log$
|
|
15174
|
+
log$3.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
|
|
15175
15175
|
}
|
|
15176
15176
|
const configTable = getDebugTableForProgramConfiguration(this.vertexArray.configuration);
|
|
15177
|
-
log$
|
|
15178
|
-
log$
|
|
15179
|
-
log$
|
|
15177
|
+
log$3.table(logLevel, attributeTable)();
|
|
15178
|
+
log$3.table(logLevel, uniformTable)();
|
|
15179
|
+
log$3.table(logLevel + 1, configTable)();
|
|
15180
15180
|
if (framebuffer) {
|
|
15181
15181
|
framebuffer.log({
|
|
15182
15182
|
logLevel: LOG_DRAW_PRIORITY,
|
|
15183
15183
|
message: "Rendered to ".concat(framebuffer.id)
|
|
15184
15184
|
});
|
|
15185
15185
|
}
|
|
15186
|
-
log$
|
|
15186
|
+
log$3.groupEnd(LOG_DRAW_PRIORITY)();
|
|
15187
15187
|
}
|
|
15188
15188
|
}
|
|
15189
15189
|
class BufferTransform {
|
|
@@ -16874,7 +16874,7 @@ const esm$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
16874
16874
|
instrumentGLContext,
|
|
16875
16875
|
isWebGL,
|
|
16876
16876
|
isWebGL2: isWebGL2$1,
|
|
16877
|
-
log: log$
|
|
16877
|
+
log: log$3,
|
|
16878
16878
|
lumaStats,
|
|
16879
16879
|
normalizeShaderModule,
|
|
16880
16880
|
pbr,
|
|
@@ -16905,7 +16905,7 @@ const COORDINATE_SYSTEM = {
|
|
|
16905
16905
|
};
|
|
16906
16906
|
Object.defineProperty(COORDINATE_SYSTEM, "IDENTITY", {
|
|
16907
16907
|
get: () => {
|
|
16908
|
-
log$
|
|
16908
|
+
log$4.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
|
|
16909
16909
|
return 0;
|
|
16910
16910
|
}
|
|
16911
16911
|
});
|
|
@@ -18907,7 +18907,7 @@ class Viewport {
|
|
|
18907
18907
|
this.pixelProjectionMatrix = pixelProjectionMatrix;
|
|
18908
18908
|
this.pixelUnprojectionMatrix = invert$1(createMat4(), this.pixelProjectionMatrix);
|
|
18909
18909
|
if (!this.pixelUnprojectionMatrix) {
|
|
18910
|
-
log$
|
|
18910
|
+
log$4.warn("Pixel project matrix not invertible")();
|
|
18911
18911
|
}
|
|
18912
18912
|
}
|
|
18913
18913
|
}
|
|
@@ -19856,7 +19856,7 @@ class LayerManager {
|
|
|
19856
19856
|
const oldLayerMap = {};
|
|
19857
19857
|
for (const oldLayer of oldLayers) {
|
|
19858
19858
|
if (oldLayerMap[oldLayer.id]) {
|
|
19859
|
-
log$
|
|
19859
|
+
log$4.warn("Multiple old layers with same id ".concat(oldLayer.id))();
|
|
19860
19860
|
} else {
|
|
19861
19861
|
oldLayerMap[oldLayer.id] = oldLayer;
|
|
19862
19862
|
}
|
|
@@ -19879,7 +19879,7 @@ class LayerManager {
|
|
|
19879
19879
|
newLayer.context = this.context;
|
|
19880
19880
|
const oldLayer = oldLayerMap[newLayer.id];
|
|
19881
19881
|
if (oldLayer === null) {
|
|
19882
|
-
log$
|
|
19882
|
+
log$4.warn("Multiple new layers with same id ".concat(newLayer.id))();
|
|
19883
19883
|
}
|
|
19884
19884
|
oldLayerMap[newLayer.id] = null;
|
|
19885
19885
|
let sublayers = null;
|
|
@@ -20115,7 +20115,7 @@ class ViewManager {
|
|
|
20115
20115
|
}
|
|
20116
20116
|
this.viewState = viewState;
|
|
20117
20117
|
} else {
|
|
20118
|
-
log$
|
|
20118
|
+
log$4.warn("missing `viewState` or `initialViewState`")();
|
|
20119
20119
|
}
|
|
20120
20120
|
}
|
|
20121
20121
|
_onViewStateChange(viewId, event) {
|
|
@@ -22418,7 +22418,7 @@ class MaskEffect {
|
|
|
22418
22418
|
let channelInfo = channelMap[id];
|
|
22419
22419
|
if (!channelInfo) {
|
|
22420
22420
|
if (++channelCount > 4) {
|
|
22421
|
-
log$
|
|
22421
|
+
log$4.warn("Too many mask layers. The max supported is 4")();
|
|
22422
22422
|
continue;
|
|
22423
22423
|
}
|
|
22424
22424
|
channelInfo = {
|
|
@@ -22643,7 +22643,7 @@ function encodeColor(encoded, layer, viewport) {
|
|
|
22643
22643
|
byLayer.set(layer, entry);
|
|
22644
22644
|
byAlpha[a2] = entry;
|
|
22645
22645
|
} else {
|
|
22646
|
-
log$
|
|
22646
|
+
log$4.warn("Too many pickable layers, only picking the first 255")();
|
|
22647
22647
|
a2 = 0;
|
|
22648
22648
|
}
|
|
22649
22649
|
}
|
|
@@ -22814,7 +22814,7 @@ function getClosestObject({
|
|
|
22814
22814
|
pickedY: y2 + dy
|
|
22815
22815
|
};
|
|
22816
22816
|
}
|
|
22817
|
-
log$
|
|
22817
|
+
log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
|
|
22818
22818
|
}
|
|
22819
22819
|
return NO_PICKED_OBJECT;
|
|
22820
22820
|
}
|
|
@@ -22837,7 +22837,7 @@ function getUniqueObjects({
|
|
|
22837
22837
|
color: pickedColor
|
|
22838
22838
|
});
|
|
22839
22839
|
} else {
|
|
22840
|
-
log$
|
|
22840
|
+
log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
|
|
22841
22841
|
}
|
|
22842
22842
|
}
|
|
22843
22843
|
}
|
|
@@ -26096,7 +26096,7 @@ const defaultProps$O = {
|
|
|
26096
26096
|
onBeforeRender: noop$2,
|
|
26097
26097
|
onAfterRender: noop$2,
|
|
26098
26098
|
onLoad: noop$2,
|
|
26099
|
-
onError: (error2) => log$
|
|
26099
|
+
onError: (error2) => log$4.error(error2.message)(),
|
|
26100
26100
|
onHover: null,
|
|
26101
26101
|
onClick: null,
|
|
26102
26102
|
onDragStart: null,
|
|
@@ -26211,10 +26211,10 @@ class Deck {
|
|
|
26211
26211
|
isDragging: false
|
|
26212
26212
|
};
|
|
26213
26213
|
if (props.viewState && props.initialViewState) {
|
|
26214
|
-
log$
|
|
26214
|
+
log$4.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
|
|
26215
26215
|
}
|
|
26216
26216
|
if (getBrowser() === "IE") {
|
|
26217
|
-
log$
|
|
26217
|
+
log$4.warn("IE 11 is not supported")();
|
|
26218
26218
|
}
|
|
26219
26219
|
this.viewState = props.initialViewState;
|
|
26220
26220
|
if (!props.gl) {
|
|
@@ -26277,10 +26277,10 @@ class Deck {
|
|
|
26277
26277
|
setProps(props) {
|
|
26278
26278
|
this.stats.get("setProps Time").timeStart();
|
|
26279
26279
|
if ("onLayerHover" in props) {
|
|
26280
|
-
log$
|
|
26280
|
+
log$4.removed("onLayerHover", "onHover")();
|
|
26281
26281
|
}
|
|
26282
26282
|
if ("onLayerClick" in props) {
|
|
26283
|
-
log$
|
|
26283
|
+
log$4.removed("onLayerClick", "onClick")();
|
|
26284
26284
|
}
|
|
26285
26285
|
if (props.initialViewState && !deepEqual$2(this.props.initialViewState, props.initialViewState)) {
|
|
26286
26286
|
this.viewState = props.initialViewState;
|
|
@@ -26627,7 +26627,7 @@ class Deck {
|
|
|
26627
26627
|
if (this._metricsCounter++ % 60 === 0) {
|
|
26628
26628
|
this._getMetrics();
|
|
26629
26629
|
this.stats.reset();
|
|
26630
|
-
log$
|
|
26630
|
+
log$4.table(4, this.metrics)();
|
|
26631
26631
|
if (this.props._onMetrics) {
|
|
26632
26632
|
this.props._onMetrics(this.metrics);
|
|
26633
26633
|
}
|
|
@@ -26767,7 +26767,7 @@ function getStride(accessor) {
|
|
|
26767
26767
|
}
|
|
26768
26768
|
function resolveShaderAttribute(baseAccessor, shaderAttributeOptions) {
|
|
26769
26769
|
if (shaderAttributeOptions.offset) {
|
|
26770
|
-
log$
|
|
26770
|
+
log$4.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
|
|
26771
26771
|
}
|
|
26772
26772
|
const stride = getStride(baseAccessor);
|
|
26773
26773
|
const vertexOffset = shaderAttributeOptions.vertexOffset !== void 0 ? shaderAttributeOptions.vertexOffset : baseAccessor.vertexOffset || 0;
|
|
@@ -27082,7 +27082,7 @@ class DataColumn {
|
|
|
27082
27082
|
throw new Error("Attribute ".concat(this.id, " does not support ").concat(value.constructor.name));
|
|
27083
27083
|
}
|
|
27084
27084
|
if (!(value instanceof ArrayType) && this.settings.normalized && !("normalized" in opts)) {
|
|
27085
|
-
log$
|
|
27085
|
+
log$4.warn("Attribute ".concat(this.id, " is normalized"))();
|
|
27086
27086
|
}
|
|
27087
27087
|
}
|
|
27088
27088
|
normalizeConstant(value) {
|
|
@@ -28140,7 +28140,7 @@ class AttributeTransitionManager {
|
|
|
28140
28140
|
let isNew = !transition || transition.type !== settings.type;
|
|
28141
28141
|
if (isNew) {
|
|
28142
28142
|
if (!this.isSupported) {
|
|
28143
|
-
log$
|
|
28143
|
+
log$4.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
|
|
28144
28144
|
return;
|
|
28145
28145
|
}
|
|
28146
28146
|
if (transition) {
|
|
@@ -28154,7 +28154,7 @@ class AttributeTransitionManager {
|
|
|
28154
28154
|
gl: this.gl
|
|
28155
28155
|
});
|
|
28156
28156
|
} else {
|
|
28157
|
-
log$
|
|
28157
|
+
log$4.error("unsupported transition type '".concat(settings.type, "'"))();
|
|
28158
28158
|
isNew = false;
|
|
28159
28159
|
}
|
|
28160
28160
|
}
|
|
@@ -28259,7 +28259,7 @@ class AttributeManager {
|
|
|
28259
28259
|
attribute.startIndices = startIndices;
|
|
28260
28260
|
attribute.numInstances = numInstances;
|
|
28261
28261
|
if (props[attributeName]) {
|
|
28262
|
-
log$
|
|
28262
|
+
log$4.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
|
|
28263
28263
|
}
|
|
28264
28264
|
if (attribute.setExternalBuffer(buffers[attributeName]))
|
|
28265
28265
|
;
|
|
@@ -28500,7 +28500,7 @@ class UniformTransitionManager {
|
|
|
28500
28500
|
}
|
|
28501
28501
|
const TransitionType = TRANSITION_TYPES[settings.type];
|
|
28502
28502
|
if (!TransitionType) {
|
|
28503
|
-
log$
|
|
28503
|
+
log$4.error("unsupported transition type '".concat(settings.type, "'"))();
|
|
28504
28504
|
return;
|
|
28505
28505
|
}
|
|
28506
28506
|
const transition = new TransitionType(this.timeline);
|
|
@@ -29096,7 +29096,7 @@ function addDeprecatedPropsToPropPrototype(defaultProps2, deprecatedProps) {
|
|
|
29096
29096
|
this[newPropName] = newValue;
|
|
29097
29097
|
}
|
|
29098
29098
|
}
|
|
29099
|
-
log$
|
|
29099
|
+
log$4.deprecated(nameStr, deprecatedProps[propName].join("/"))();
|
|
29100
29100
|
}
|
|
29101
29101
|
});
|
|
29102
29102
|
}
|
|
@@ -29155,7 +29155,7 @@ function getOwnProperty(object2, prop) {
|
|
|
29155
29155
|
function getComponentName(componentClass) {
|
|
29156
29156
|
const componentName = getOwnProperty(componentClass, "layerName") || getOwnProperty(componentClass, "componentName");
|
|
29157
29157
|
if (!componentName) {
|
|
29158
|
-
log$
|
|
29158
|
+
log$4.once(0, "".concat(componentClass.name, ".componentName not specified"))();
|
|
29159
29159
|
}
|
|
29160
29160
|
return componentName || componentClass.name;
|
|
29161
29161
|
}
|
|
@@ -29984,7 +29984,7 @@ class Layer extends Component {
|
|
|
29984
29984
|
this.internalState.usesPickingColorCache = true;
|
|
29985
29985
|
if (cacheSize < numInstances) {
|
|
29986
29986
|
if (numInstances > MAX_PICKING_COLOR_CACHE_SIZE) {
|
|
29987
|
-
log$
|
|
29987
|
+
log$4.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
|
|
29988
29988
|
}
|
|
29989
29989
|
pickingColorCache = defaultTypedArrayManager.allocate(pickingColorCache, numInstances, {
|
|
29990
29990
|
size: 3,
|
|
@@ -30066,7 +30066,7 @@ class Layer extends Component {
|
|
|
30066
30066
|
this.state = {};
|
|
30067
30067
|
Object.defineProperty(this.state, "attributeManager", {
|
|
30068
30068
|
get: () => {
|
|
30069
|
-
log$
|
|
30069
|
+
log$4.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
|
|
30070
30070
|
return attributeManager;
|
|
30071
30071
|
}
|
|
30072
30072
|
});
|
|
@@ -31365,7 +31365,7 @@ const esm$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
31365
31365
|
createIterable,
|
|
31366
31366
|
fp64LowPart,
|
|
31367
31367
|
gouraudLighting,
|
|
31368
|
-
log: log$
|
|
31368
|
+
log: log$4,
|
|
31369
31369
|
phongLighting,
|
|
31370
31370
|
picking,
|
|
31371
31371
|
project: project$1,
|
|
@@ -32426,7 +32426,7 @@ class IconLayer extends Layer {
|
|
|
32426
32426
|
if (onIconError) {
|
|
32427
32427
|
onIconError(evt);
|
|
32428
32428
|
} else {
|
|
32429
|
-
log$
|
|
32429
|
+
log$4.error(evt.error.message)();
|
|
32430
32430
|
}
|
|
32431
32431
|
}
|
|
32432
32432
|
getInstanceOffset(icon) {
|
|
@@ -33843,7 +33843,7 @@ function tesselateColumn(props) {
|
|
|
33843
33843
|
vertices
|
|
33844
33844
|
} = props;
|
|
33845
33845
|
if (vertices) {
|
|
33846
|
-
log$
|
|
33846
|
+
log$4.assert(vertices.length >= nradial);
|
|
33847
33847
|
vertices = vertices.flatMap((v) => [v[0], v[1]]);
|
|
33848
33848
|
modifyPolygonWindingDirection(vertices, WINDING.COUNTER_CLOCKWISE);
|
|
33849
33849
|
}
|
|
@@ -35850,7 +35850,7 @@ class PolygonLayer extends CompositeLayer {
|
|
|
35850
35850
|
paths: []
|
|
35851
35851
|
};
|
|
35852
35852
|
if (this.props.getLineDashArray) {
|
|
35853
|
-
log$
|
|
35853
|
+
log$4.removed("getLineDashArray", "PathStyleExtension")();
|
|
35854
35854
|
}
|
|
35855
35855
|
}
|
|
35856
35856
|
updateState({
|
|
@@ -36122,7 +36122,7 @@ class MultiIconLayer extends IconLayer {
|
|
|
36122
36122
|
});
|
|
36123
36123
|
}
|
|
36124
36124
|
if (!props.sdf && props.outlineWidth) {
|
|
36125
|
-
log$
|
|
36125
|
+
log$4.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
|
|
36126
36126
|
}
|
|
36127
36127
|
}
|
|
36128
36128
|
draw(params) {
|
|
@@ -36425,7 +36425,7 @@ function transformRow(line, startIndex, endIndex, iconMapping, leftOffsets, rowS
|
|
|
36425
36425
|
leftOffsets[i2] = x2 + frame.width / 2;
|
|
36426
36426
|
x2 += frame.width;
|
|
36427
36427
|
} else {
|
|
36428
|
-
log$
|
|
36428
|
+
log$4.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
|
|
36429
36429
|
leftOffsets[i2] = x2;
|
|
36430
36430
|
x2 += MISSING_CHAR_WIDTH;
|
|
36431
36431
|
}
|
|
@@ -36619,7 +36619,7 @@ function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
|
|
|
36619
36619
|
ctx.textAlign = "left";
|
|
36620
36620
|
}
|
|
36621
36621
|
function setFontAtlasCacheLimit(limit) {
|
|
36622
|
-
log$
|
|
36622
|
+
log$4.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
|
|
36623
36623
|
cache = new LRUCache(limit);
|
|
36624
36624
|
}
|
|
36625
36625
|
class FontAtlasManager {
|
|
@@ -37441,12 +37441,12 @@ function getGeojsonFeatures(geojson) {
|
|
|
37441
37441
|
if (Array.isArray(geojson)) {
|
|
37442
37442
|
return geojson;
|
|
37443
37443
|
}
|
|
37444
|
-
log$
|
|
37444
|
+
log$4.assert(geojson.type, "GeoJSON does not have type");
|
|
37445
37445
|
switch (geojson.type) {
|
|
37446
37446
|
case "Feature":
|
|
37447
37447
|
return [geojson];
|
|
37448
37448
|
case "FeatureCollection":
|
|
37449
|
-
log$
|
|
37449
|
+
log$4.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
|
|
37450
37450
|
return geojson.features;
|
|
37451
37451
|
default:
|
|
37452
37452
|
return [{
|
|
@@ -37474,7 +37474,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
|
|
|
37474
37474
|
continue;
|
|
37475
37475
|
}
|
|
37476
37476
|
if (geometry2.type === "GeometryCollection") {
|
|
37477
|
-
log$
|
|
37477
|
+
log$4.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
|
|
37478
37478
|
const {
|
|
37479
37479
|
geometries
|
|
37480
37480
|
} = geometry2;
|
|
@@ -37500,7 +37500,7 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
|
|
|
37500
37500
|
polygonOutlineFeatures
|
|
37501
37501
|
} = separated;
|
|
37502
37502
|
if (!validateGeometry(type2, coordinates2)) {
|
|
37503
|
-
log$
|
|
37503
|
+
log$4.warn("".concat(type2, " coordinates are malformed"))();
|
|
37504
37504
|
return;
|
|
37505
37505
|
}
|
|
37506
37506
|
switch (type2) {
|
|
@@ -37577,7 +37577,7 @@ const COORDINATE_NEST_LEVEL = {
|
|
|
37577
37577
|
};
|
|
37578
37578
|
function validateGeometry(type2, coordinates2) {
|
|
37579
37579
|
let nestLevel = COORDINATE_NEST_LEVEL[type2];
|
|
37580
|
-
log$
|
|
37580
|
+
log$4.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
|
|
37581
37581
|
while (coordinates2 && --nestLevel > 0) {
|
|
37582
37582
|
coordinates2 = coordinates2[0];
|
|
37583
37583
|
}
|
|
@@ -38204,7 +38204,7 @@ class GPUGridAggregator {
|
|
|
38204
38204
|
});
|
|
38205
38205
|
const aggregationParams = this._normalizeAggregationParams(opts);
|
|
38206
38206
|
if (!this._hasGPUSupport) {
|
|
38207
|
-
log$
|
|
38207
|
+
log$4.log(1, "GPUGridAggregator: not supported")();
|
|
38208
38208
|
}
|
|
38209
38209
|
return this._runAggregation(aggregationParams);
|
|
38210
38210
|
}
|
|
@@ -39045,7 +39045,7 @@ function getTranslation(boundingBox, gridOffset, coordinateSystem, viewport) {
|
|
|
39045
39045
|
height
|
|
39046
39046
|
} = viewport;
|
|
39047
39047
|
const worldOrigin = coordinateSystem === COORDINATE_SYSTEM.CARTESIAN ? [-width / 2, -height / 2] : [-180, -90];
|
|
39048
|
-
log$
|
|
39048
|
+
log$4.assert(coordinateSystem === COORDINATE_SYSTEM.CARTESIAN || coordinateSystem === COORDINATE_SYSTEM.LNGLAT || coordinateSystem === COORDINATE_SYSTEM.DEFAULT);
|
|
39049
39049
|
const {
|
|
39050
39050
|
xMin,
|
|
39051
39051
|
yMin
|
|
@@ -39294,7 +39294,7 @@ class GridAggregationLayer extends AggregationLayer {
|
|
|
39294
39294
|
}
|
|
39295
39295
|
}
|
|
39296
39296
|
updateAggregationState(opts) {
|
|
39297
|
-
log$
|
|
39297
|
+
log$4.assert(false);
|
|
39298
39298
|
}
|
|
39299
39299
|
allocateResources(numRow, numCol) {
|
|
39300
39300
|
if (this.state.numRow !== numRow || this.state.numCol !== numCol) {
|
|
@@ -39683,7 +39683,7 @@ function getCode(opts) {
|
|
|
39683
39683
|
} = opts;
|
|
39684
39684
|
let threshold = opts.threshold;
|
|
39685
39685
|
if (opts.thresholdValue) {
|
|
39686
|
-
log$
|
|
39686
|
+
log$4.deprecated("thresholdValue", "threshold")();
|
|
39687
39687
|
threshold = opts.thresholdValue;
|
|
39688
39688
|
}
|
|
39689
39689
|
const isLeftBoundary = x2 < 0;
|
|
@@ -39981,7 +39981,7 @@ class ContourLayer extends GridAggregationLayer {
|
|
|
39981
39981
|
let gpuAggregation = props.gpuAggregation;
|
|
39982
39982
|
if (this.state.gpuAggregation !== props.gpuAggregation) {
|
|
39983
39983
|
if (gpuAggregation && !GPUGridAggregator.isSupported(this.context.gl)) {
|
|
39984
|
-
log$
|
|
39984
|
+
log$4.warn("GPU Grid Aggregation not supported, falling back to CPU")();
|
|
39985
39985
|
gpuAggregation = false;
|
|
39986
39986
|
}
|
|
39987
39987
|
}
|
|
@@ -41014,7 +41014,7 @@ class Tile2DHeader {
|
|
|
41014
41014
|
get byteLength() {
|
|
41015
41015
|
const result = this.content ? this.content.byteLength : 0;
|
|
41016
41016
|
if (!Number.isFinite(result)) {
|
|
41017
|
-
log$
|
|
41017
|
+
log$4.error("byteLength not defined in tile data")();
|
|
41018
41018
|
}
|
|
41019
41019
|
return result;
|
|
41020
41020
|
}
|
|
@@ -54809,7 +54809,7 @@ function validateGeometryAttributes$1(attributes, useMeshColors) {
|
|
|
54809
54809
|
value: new Float32Array([1, 1, 1])
|
|
54810
54810
|
};
|
|
54811
54811
|
}
|
|
54812
|
-
log$
|
|
54812
|
+
log$4.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
|
|
54813
54813
|
}
|
|
54814
54814
|
function getGeometry(data, useMeshColors) {
|
|
54815
54815
|
if (data.attributes) {
|
|
@@ -55151,7 +55151,7 @@ class GroupNode extends ScenegraphNode {
|
|
|
55151
55151
|
const {
|
|
55152
55152
|
children = []
|
|
55153
55153
|
} = props;
|
|
55154
|
-
log$
|
|
55154
|
+
log$3.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
|
|
55155
55155
|
super(props);
|
|
55156
55156
|
this.children = children;
|
|
55157
55157
|
}
|
|
@@ -55343,7 +55343,7 @@ function interpolate$1(time, _ref2, target, path) {
|
|
|
55343
55343
|
target[path] = [1, 1, 1];
|
|
55344
55344
|
break;
|
|
55345
55345
|
default:
|
|
55346
|
-
log$
|
|
55346
|
+
log$3.warn("Bad animation path ".concat(path))();
|
|
55347
55347
|
}
|
|
55348
55348
|
}
|
|
55349
55349
|
assert$9(target[path].length === output[previousIndex].length);
|
|
@@ -55378,7 +55378,7 @@ function interpolate$1(time, _ref2, target, path) {
|
|
|
55378
55378
|
}
|
|
55379
55379
|
break;
|
|
55380
55380
|
default:
|
|
55381
|
-
log$
|
|
55381
|
+
log$3.warn("Interpolation ".concat(interpolation, " not supported"))();
|
|
55382
55382
|
break;
|
|
55383
55383
|
}
|
|
55384
55384
|
}
|
|
@@ -55624,7 +55624,7 @@ class GLTFMaterialParser {
|
|
|
55624
55624
|
this.defines.ALPHA_CUTOFF = 1;
|
|
55625
55625
|
this.uniforms.u_AlphaCutoff = alphaCutoff;
|
|
55626
55626
|
} else if (material.alphaMode === "BLEND") {
|
|
55627
|
-
log$
|
|
55627
|
+
log$3.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
|
|
55628
55628
|
Object.assign(this.parameters, {
|
|
55629
55629
|
blend: true,
|
|
55630
55630
|
blendEquation: this.gl.FUNC_ADD,
|
|
@@ -55653,7 +55653,7 @@ function createGLTFModel(gl, options) {
|
|
|
55653
55653
|
modelOptions
|
|
55654
55654
|
} = options;
|
|
55655
55655
|
const materialParser = new GLTFMaterialParser(gl, options);
|
|
55656
|
-
log$
|
|
55656
|
+
log$3.info(4, "createGLTFModel defines: ", materialParser.defines)();
|
|
55657
55657
|
const managedResources = [];
|
|
55658
55658
|
managedResources.push(...materialParser.generatedTextures);
|
|
55659
55659
|
managedResources.push(...Object.values(attributes).map((attribute) => attribute.buffer));
|
|
@@ -55763,7 +55763,7 @@ class GLTFInstantiator {
|
|
|
55763
55763
|
return gltfMesh._mesh;
|
|
55764
55764
|
}
|
|
55765
55765
|
getVertexCount(attributes) {
|
|
55766
|
-
log$
|
|
55766
|
+
log$3.warn("getVertexCount() not found")();
|
|
55767
55767
|
}
|
|
55768
55768
|
createPrimitive(gltfPrimitive, i2, gltfMesh) {
|
|
55769
55769
|
const model = createGLTFModel(this.gl, Object.assign({
|
|
@@ -55784,7 +55784,7 @@ class GLTFInstantiator {
|
|
|
55784
55784
|
if (indices) {
|
|
55785
55785
|
loadedAttributes.indices = this.createAccessor(indices, this.createBuffer(indices, this.gl.ELEMENT_ARRAY_BUFFER));
|
|
55786
55786
|
}
|
|
55787
|
-
log$
|
|
55787
|
+
log$3.info(4, "glTF Attributes", {
|
|
55788
55788
|
attributes,
|
|
55789
55789
|
indices,
|
|
55790
55790
|
generated: loadedAttributes
|
|
@@ -59110,7 +59110,7 @@ class ScenegraphLayer extends Layer {
|
|
|
59110
59110
|
};
|
|
59111
59111
|
waitForGLTFAssets(gltfObjects).then(() => this.setNeedsRedraw());
|
|
59112
59112
|
} else if (props.scenegraph) {
|
|
59113
|
-
log$
|
|
59113
|
+
log$4.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
|
|
59114
59114
|
scenegraphData = props.scenegraph;
|
|
59115
59115
|
}
|
|
59116
59116
|
const options = {
|
|
@@ -59128,7 +59128,7 @@ class ScenegraphLayer extends Layer {
|
|
|
59128
59128
|
animator
|
|
59129
59129
|
});
|
|
59130
59130
|
} else if (scenegraph !== null) {
|
|
59131
|
-
log$
|
|
59131
|
+
log$4.warn("invalid scenegraph:", scenegraph)();
|
|
59132
59132
|
}
|
|
59133
59133
|
}
|
|
59134
59134
|
_applyAllAttributes(scenegraph) {
|
|
@@ -59155,7 +59155,7 @@ class ScenegraphLayer extends Layer {
|
|
|
59155
59155
|
if (number >= 0 && number < animations.length) {
|
|
59156
59156
|
Object.assign(animations[number], value);
|
|
59157
59157
|
} else {
|
|
59158
|
-
log$
|
|
59158
|
+
log$4.warn("animation ".concat(key, " not found"))();
|
|
59159
59159
|
}
|
|
59160
59160
|
} else {
|
|
59161
59161
|
const findResult = animations.find(({
|
|
@@ -59164,7 +59164,7 @@ class ScenegraphLayer extends Layer {
|
|
|
59164
59164
|
if (findResult) {
|
|
59165
59165
|
Object.assign(findResult, value);
|
|
59166
59166
|
} else {
|
|
59167
|
-
log$
|
|
59167
|
+
log$4.warn("animation ".concat(key, " not found"))();
|
|
59168
59168
|
}
|
|
59169
59169
|
}
|
|
59170
59170
|
});
|
|
@@ -63635,7 +63635,7 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
63635
63635
|
}
|
|
63636
63636
|
initializeState() {
|
|
63637
63637
|
if ("onTileLoadFail" in this.props) {
|
|
63638
|
-
log$
|
|
63638
|
+
log$4.removed("onTileLoadFail", "onTileError")();
|
|
63639
63639
|
}
|
|
63640
63640
|
this.state = {
|
|
63641
63641
|
layerMap: {},
|
|
@@ -64805,7 +64805,7 @@ class TerrainLayer extends CompositeLayer {
|
|
|
64805
64805
|
});
|
|
64806
64806
|
}
|
|
64807
64807
|
if (props.workerUrl) {
|
|
64808
|
-
log$
|
|
64808
|
+
log$4.removed("workerUrl", "loadOptions.terrain.workerUrl")();
|
|
64809
64809
|
}
|
|
64810
64810
|
}
|
|
64811
64811
|
loadTerrain({
|
|
@@ -67255,7 +67255,7 @@ class MVTLayer extends TileLayer {
|
|
|
67255
67255
|
}
|
|
67256
67256
|
const subLayers = super.renderSubLayers(props);
|
|
67257
67257
|
if (this.state.binary && !(subLayers instanceof GeoJsonLayer)) {
|
|
67258
|
-
log$
|
|
67258
|
+
log$4.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
|
|
67259
67259
|
}
|
|
67260
67260
|
return subLayers;
|
|
67261
67261
|
}
|
|
@@ -82899,7 +82899,7 @@ var atan2 = Math.atan2;
|
|
|
82899
82899
|
var cos = Math.cos;
|
|
82900
82900
|
var ceil = Math.ceil;
|
|
82901
82901
|
var exp = Math.exp;
|
|
82902
|
-
var log = Math.log;
|
|
82902
|
+
var log$1 = Math.log;
|
|
82903
82903
|
var pow = Math.pow;
|
|
82904
82904
|
var sin = Math.sin;
|
|
82905
82905
|
var sign = Math.sign || function(x2) {
|
|
@@ -84995,7 +84995,7 @@ function azimuthalEquidistant() {
|
|
|
84995
84995
|
return projection(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180 - 1e-3);
|
|
84996
84996
|
}
|
|
84997
84997
|
function mercatorRaw(lambda, phi) {
|
|
84998
|
-
return [lambda, log(tan((halfPi + phi) / 2))];
|
|
84998
|
+
return [lambda, log$1(tan((halfPi + phi) / 2))];
|
|
84999
84999
|
}
|
|
85000
85000
|
mercatorRaw.invert = function(x2, y2) {
|
|
85001
85001
|
return [x2, 2 * atan(exp(y2)) - halfPi];
|
|
@@ -85027,7 +85027,7 @@ function tany(y2) {
|
|
|
85027
85027
|
return tan((halfPi + y2) / 2);
|
|
85028
85028
|
}
|
|
85029
85029
|
function conicConformalRaw(y02, y12) {
|
|
85030
|
-
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;
|
|
85030
|
+
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;
|
|
85031
85031
|
if (!n2)
|
|
85032
85032
|
return mercatorRaw;
|
|
85033
85033
|
function project2(x2, y2) {
|
|
@@ -85161,7 +85161,7 @@ function stereographic() {
|
|
|
85161
85161
|
return projection(stereographicRaw).scale(250).clipAngle(142);
|
|
85162
85162
|
}
|
|
85163
85163
|
function transverseMercatorRaw(lambda, phi) {
|
|
85164
|
-
return [log(tan((halfPi + phi) / 2)), -lambda];
|
|
85164
|
+
return [log$1(tan((halfPi + phi) / 2)), -lambda];
|
|
85165
85165
|
}
|
|
85166
85166
|
transverseMercatorRaw.invert = function(x2, y2) {
|
|
85167
85167
|
return [-y2, 2 * atan(exp(x2)) - halfPi];
|
|
@@ -106282,16 +106282,16 @@ async function getDecoder(fileDirectory) {
|
|
|
106282
106282
|
const Decoder = await importFn();
|
|
106283
106283
|
return new Decoder(fileDirectory);
|
|
106284
106284
|
}
|
|
106285
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
106286
|
-
addDecoder(5, () => import("./lzw-
|
|
106285
|
+
addDecoder([void 0, 1], () => import("./raw-862de075.js").then((m) => m.default));
|
|
106286
|
+
addDecoder(5, () => import("./lzw-58768e77.js").then((m) => m.default));
|
|
106287
106287
|
addDecoder(6, () => {
|
|
106288
106288
|
throw new Error("old style JPEG compression is not supported.");
|
|
106289
106289
|
});
|
|
106290
|
-
addDecoder(7, () => import("./jpeg-
|
|
106291
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
106292
|
-
addDecoder(32773, () => import("./packbits-
|
|
106293
|
-
addDecoder(34887, () => import("./lerc-
|
|
106294
|
-
addDecoder(50001, () => import("./webimage-
|
|
106290
|
+
addDecoder(7, () => import("./jpeg-3517139d.js").then((m) => m.default));
|
|
106291
|
+
addDecoder([8, 32946], () => import("./deflate-85297f1e.js").then((m) => m.default));
|
|
106292
|
+
addDecoder(32773, () => import("./packbits-aee0956d.js").then((m) => m.default));
|
|
106293
|
+
addDecoder(34887, () => import("./lerc-c7fc99c0.js").then((m) => m.default));
|
|
106294
|
+
addDecoder(50001, () => import("./webimage-2cb43003.js").then((m) => m.default));
|
|
106295
106295
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
106296
106296
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
106297
106297
|
}
|
|
@@ -123474,6 +123474,258 @@ function max(values2, valueof) {
|
|
|
123474
123474
|
}
|
|
123475
123475
|
return max2;
|
|
123476
123476
|
}
|
|
123477
|
+
var loglevel = { exports: {} };
|
|
123478
|
+
(function(module2) {
|
|
123479
|
+
(function(root2, definition) {
|
|
123480
|
+
if (module2.exports) {
|
|
123481
|
+
module2.exports = definition();
|
|
123482
|
+
} else {
|
|
123483
|
+
root2.log = definition();
|
|
123484
|
+
}
|
|
123485
|
+
})(commonjsGlobal, function() {
|
|
123486
|
+
var noop2 = function() {
|
|
123487
|
+
};
|
|
123488
|
+
var undefinedType = "undefined";
|
|
123489
|
+
var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
123490
|
+
var logMethods = [
|
|
123491
|
+
"trace",
|
|
123492
|
+
"debug",
|
|
123493
|
+
"info",
|
|
123494
|
+
"warn",
|
|
123495
|
+
"error"
|
|
123496
|
+
];
|
|
123497
|
+
var _loggersByName = {};
|
|
123498
|
+
var defaultLogger = null;
|
|
123499
|
+
function bindMethod(obj, methodName) {
|
|
123500
|
+
var method = obj[methodName];
|
|
123501
|
+
if (typeof method.bind === "function") {
|
|
123502
|
+
return method.bind(obj);
|
|
123503
|
+
} else {
|
|
123504
|
+
try {
|
|
123505
|
+
return Function.prototype.bind.call(method, obj);
|
|
123506
|
+
} catch (e2) {
|
|
123507
|
+
return function() {
|
|
123508
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
123509
|
+
};
|
|
123510
|
+
}
|
|
123511
|
+
}
|
|
123512
|
+
}
|
|
123513
|
+
function traceForIE() {
|
|
123514
|
+
if (console.log) {
|
|
123515
|
+
if (console.log.apply) {
|
|
123516
|
+
console.log.apply(console, arguments);
|
|
123517
|
+
} else {
|
|
123518
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
123519
|
+
}
|
|
123520
|
+
}
|
|
123521
|
+
if (console.trace)
|
|
123522
|
+
console.trace();
|
|
123523
|
+
}
|
|
123524
|
+
function realMethod(methodName) {
|
|
123525
|
+
if (methodName === "debug") {
|
|
123526
|
+
methodName = "log";
|
|
123527
|
+
}
|
|
123528
|
+
if (typeof console === undefinedType) {
|
|
123529
|
+
return false;
|
|
123530
|
+
} else if (methodName === "trace" && isIE) {
|
|
123531
|
+
return traceForIE;
|
|
123532
|
+
} else if (console[methodName] !== void 0) {
|
|
123533
|
+
return bindMethod(console, methodName);
|
|
123534
|
+
} else if (console.log !== void 0) {
|
|
123535
|
+
return bindMethod(console, "log");
|
|
123536
|
+
} else {
|
|
123537
|
+
return noop2;
|
|
123538
|
+
}
|
|
123539
|
+
}
|
|
123540
|
+
function replaceLoggingMethods() {
|
|
123541
|
+
var level = this.getLevel();
|
|
123542
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
123543
|
+
var methodName = logMethods[i2];
|
|
123544
|
+
this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
|
|
123545
|
+
}
|
|
123546
|
+
this.log = this.debug;
|
|
123547
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
123548
|
+
return "No console available for logging";
|
|
123549
|
+
}
|
|
123550
|
+
}
|
|
123551
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
123552
|
+
return function() {
|
|
123553
|
+
if (typeof console !== undefinedType) {
|
|
123554
|
+
replaceLoggingMethods.call(this);
|
|
123555
|
+
this[methodName].apply(this, arguments);
|
|
123556
|
+
}
|
|
123557
|
+
};
|
|
123558
|
+
}
|
|
123559
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
123560
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
123561
|
+
}
|
|
123562
|
+
function Logger(name2, factory) {
|
|
123563
|
+
var self2 = this;
|
|
123564
|
+
var inheritedLevel;
|
|
123565
|
+
var defaultLevel;
|
|
123566
|
+
var userLevel;
|
|
123567
|
+
var storageKey = "loglevel";
|
|
123568
|
+
if (typeof name2 === "string") {
|
|
123569
|
+
storageKey += ":" + name2;
|
|
123570
|
+
} else if (typeof name2 === "symbol") {
|
|
123571
|
+
storageKey = void 0;
|
|
123572
|
+
}
|
|
123573
|
+
function persistLevelIfPossible(levelNum) {
|
|
123574
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
123575
|
+
if (typeof window === undefinedType || !storageKey)
|
|
123576
|
+
return;
|
|
123577
|
+
try {
|
|
123578
|
+
window.localStorage[storageKey] = levelName;
|
|
123579
|
+
return;
|
|
123580
|
+
} catch (ignore) {
|
|
123581
|
+
}
|
|
123582
|
+
try {
|
|
123583
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
123584
|
+
} catch (ignore) {
|
|
123585
|
+
}
|
|
123586
|
+
}
|
|
123587
|
+
function getPersistedLevel() {
|
|
123588
|
+
var storedLevel;
|
|
123589
|
+
if (typeof window === undefinedType || !storageKey)
|
|
123590
|
+
return;
|
|
123591
|
+
try {
|
|
123592
|
+
storedLevel = window.localStorage[storageKey];
|
|
123593
|
+
} catch (ignore) {
|
|
123594
|
+
}
|
|
123595
|
+
if (typeof storedLevel === undefinedType) {
|
|
123596
|
+
try {
|
|
123597
|
+
var cookie = window.document.cookie;
|
|
123598
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
123599
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
123600
|
+
if (location !== -1) {
|
|
123601
|
+
storedLevel = /^([^;]+)/.exec(
|
|
123602
|
+
cookie.slice(location + cookieName.length + 1)
|
|
123603
|
+
)[1];
|
|
123604
|
+
}
|
|
123605
|
+
} catch (ignore) {
|
|
123606
|
+
}
|
|
123607
|
+
}
|
|
123608
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
123609
|
+
storedLevel = void 0;
|
|
123610
|
+
}
|
|
123611
|
+
return storedLevel;
|
|
123612
|
+
}
|
|
123613
|
+
function clearPersistedLevel() {
|
|
123614
|
+
if (typeof window === undefinedType || !storageKey)
|
|
123615
|
+
return;
|
|
123616
|
+
try {
|
|
123617
|
+
window.localStorage.removeItem(storageKey);
|
|
123618
|
+
} catch (ignore) {
|
|
123619
|
+
}
|
|
123620
|
+
try {
|
|
123621
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
123622
|
+
} catch (ignore) {
|
|
123623
|
+
}
|
|
123624
|
+
}
|
|
123625
|
+
function normalizeLevel(input) {
|
|
123626
|
+
var level = input;
|
|
123627
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
123628
|
+
level = self2.levels[level.toUpperCase()];
|
|
123629
|
+
}
|
|
123630
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
123631
|
+
return level;
|
|
123632
|
+
} else {
|
|
123633
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
123634
|
+
}
|
|
123635
|
+
}
|
|
123636
|
+
self2.name = name2;
|
|
123637
|
+
self2.levels = {
|
|
123638
|
+
"TRACE": 0,
|
|
123639
|
+
"DEBUG": 1,
|
|
123640
|
+
"INFO": 2,
|
|
123641
|
+
"WARN": 3,
|
|
123642
|
+
"ERROR": 4,
|
|
123643
|
+
"SILENT": 5
|
|
123644
|
+
};
|
|
123645
|
+
self2.methodFactory = factory || defaultMethodFactory;
|
|
123646
|
+
self2.getLevel = function() {
|
|
123647
|
+
if (userLevel != null) {
|
|
123648
|
+
return userLevel;
|
|
123649
|
+
} else if (defaultLevel != null) {
|
|
123650
|
+
return defaultLevel;
|
|
123651
|
+
} else {
|
|
123652
|
+
return inheritedLevel;
|
|
123653
|
+
}
|
|
123654
|
+
};
|
|
123655
|
+
self2.setLevel = function(level, persist) {
|
|
123656
|
+
userLevel = normalizeLevel(level);
|
|
123657
|
+
if (persist !== false) {
|
|
123658
|
+
persistLevelIfPossible(userLevel);
|
|
123659
|
+
}
|
|
123660
|
+
return replaceLoggingMethods.call(self2);
|
|
123661
|
+
};
|
|
123662
|
+
self2.setDefaultLevel = function(level) {
|
|
123663
|
+
defaultLevel = normalizeLevel(level);
|
|
123664
|
+
if (!getPersistedLevel()) {
|
|
123665
|
+
self2.setLevel(level, false);
|
|
123666
|
+
}
|
|
123667
|
+
};
|
|
123668
|
+
self2.resetLevel = function() {
|
|
123669
|
+
userLevel = null;
|
|
123670
|
+
clearPersistedLevel();
|
|
123671
|
+
replaceLoggingMethods.call(self2);
|
|
123672
|
+
};
|
|
123673
|
+
self2.enableAll = function(persist) {
|
|
123674
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
123675
|
+
};
|
|
123676
|
+
self2.disableAll = function(persist) {
|
|
123677
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
123678
|
+
};
|
|
123679
|
+
self2.rebuild = function() {
|
|
123680
|
+
if (defaultLogger !== self2) {
|
|
123681
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
123682
|
+
}
|
|
123683
|
+
replaceLoggingMethods.call(self2);
|
|
123684
|
+
if (defaultLogger === self2) {
|
|
123685
|
+
for (var childName in _loggersByName) {
|
|
123686
|
+
_loggersByName[childName].rebuild();
|
|
123687
|
+
}
|
|
123688
|
+
}
|
|
123689
|
+
};
|
|
123690
|
+
inheritedLevel = normalizeLevel(
|
|
123691
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
123692
|
+
);
|
|
123693
|
+
var initialLevel = getPersistedLevel();
|
|
123694
|
+
if (initialLevel != null) {
|
|
123695
|
+
userLevel = normalizeLevel(initialLevel);
|
|
123696
|
+
}
|
|
123697
|
+
replaceLoggingMethods.call(self2);
|
|
123698
|
+
}
|
|
123699
|
+
defaultLogger = new Logger();
|
|
123700
|
+
defaultLogger.getLogger = function getLogger(name2) {
|
|
123701
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
123702
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
123703
|
+
}
|
|
123704
|
+
var logger = _loggersByName[name2];
|
|
123705
|
+
if (!logger) {
|
|
123706
|
+
logger = _loggersByName[name2] = new Logger(
|
|
123707
|
+
name2,
|
|
123708
|
+
defaultLogger.methodFactory
|
|
123709
|
+
);
|
|
123710
|
+
}
|
|
123711
|
+
return logger;
|
|
123712
|
+
};
|
|
123713
|
+
var _log = typeof window !== undefinedType ? window.log : void 0;
|
|
123714
|
+
defaultLogger.noConflict = function() {
|
|
123715
|
+
if (typeof window !== undefinedType && window.log === defaultLogger) {
|
|
123716
|
+
window.log = _log;
|
|
123717
|
+
}
|
|
123718
|
+
return defaultLogger;
|
|
123719
|
+
};
|
|
123720
|
+
defaultLogger.getLoggers = function getLoggers2() {
|
|
123721
|
+
return _loggersByName;
|
|
123722
|
+
};
|
|
123723
|
+
defaultLogger["default"] = defaultLogger;
|
|
123724
|
+
return defaultLogger;
|
|
123725
|
+
});
|
|
123726
|
+
})(loglevel);
|
|
123727
|
+
var loglevelExports = loglevel.exports;
|
|
123728
|
+
const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
123477
123729
|
function normalize(arr) {
|
|
123478
123730
|
const [min, max2] = extent(arr);
|
|
123479
123731
|
const ratio = 255 / (max2 - min);
|
|
@@ -123497,10 +123749,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
123497
123749
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
123498
123750
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
123499
123751
|
if (valueTexHeight > texSize) {
|
|
123500
|
-
|
|
123752
|
+
log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
123501
123753
|
}
|
|
123502
123754
|
if (colorTexHeight > texSize) {
|
|
123503
|
-
|
|
123755
|
+
log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
123504
123756
|
}
|
|
123505
123757
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
123506
123758
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|