@vitessce/scatterplot 3.5.6 → 3.5.8
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-2e95fa57.js → deflate-485af92e.js} +1 -1
- package/dist/{index-e202be34.js → index-6f1ecd35.js} +659 -563
- package/dist/index.js +1 -1
- package/dist/{jpeg-fc2a9942.js → jpeg-6a951bc6.js} +1 -1
- package/dist/{lerc-5b2b9693.js → lerc-36211a81.js} +1 -1
- package/dist/{lzw-b3932ffd.js → lzw-cdee9c4e.js} +1 -1
- package/dist/{packbits-2f89ef73.js → packbits-7bc2030b.js} +1 -1
- package/dist/{raw-003e472f.js → raw-8e26cce5.js} +1 -1
- package/dist/{webimage-de1437b0.js → webimage-d457d41a.js} +1 -1
- package/package.json +7 -7
|
@@ -1629,7 +1629,7 @@ var reTrimStart = /^\s+/;
|
|
|
1629
1629
|
function baseTrim(string) {
|
|
1630
1630
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
1631
1631
|
}
|
|
1632
|
-
function isObject$
|
|
1632
|
+
function isObject$5(value) {
|
|
1633
1633
|
var type2 = typeof value;
|
|
1634
1634
|
return value != null && (type2 == "object" || type2 == "function");
|
|
1635
1635
|
}
|
|
@@ -1645,9 +1645,9 @@ function toNumber$1(value) {
|
|
|
1645
1645
|
if (isSymbol$1(value)) {
|
|
1646
1646
|
return NAN$1;
|
|
1647
1647
|
}
|
|
1648
|
-
if (isObject$
|
|
1648
|
+
if (isObject$5(value)) {
|
|
1649
1649
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
1650
|
-
value = isObject$
|
|
1650
|
+
value = isObject$5(other) ? other + "" : other;
|
|
1651
1651
|
}
|
|
1652
1652
|
if (typeof value != "string") {
|
|
1653
1653
|
return value === 0 ? value : +value;
|
|
@@ -1669,8 +1669,8 @@ function toFinite$1(value) {
|
|
|
1669
1669
|
return value === value ? value : 0;
|
|
1670
1670
|
}
|
|
1671
1671
|
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
1672
|
-
function isFunction$
|
|
1673
|
-
if (!isObject$
|
|
1672
|
+
function isFunction$4(value) {
|
|
1673
|
+
if (!isObject$5(value)) {
|
|
1674
1674
|
return false;
|
|
1675
1675
|
}
|
|
1676
1676
|
var tag = baseGetTag(value);
|
|
@@ -1709,10 +1709,10 @@ var reIsNative = RegExp(
|
|
|
1709
1709
|
"^" + funcToString.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1710
1710
|
);
|
|
1711
1711
|
function baseIsNative(value) {
|
|
1712
|
-
if (!isObject$
|
|
1712
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
1713
1713
|
return false;
|
|
1714
1714
|
}
|
|
1715
|
-
var pattern = isFunction$
|
|
1715
|
+
var pattern = isFunction$4(value) ? reIsNative : reIsHostCtor;
|
|
1716
1716
|
return pattern.test(toSource(value));
|
|
1717
1717
|
}
|
|
1718
1718
|
function getValue$1(object2, key) {
|
|
@@ -1739,10 +1739,10 @@ function isLength(value) {
|
|
|
1739
1739
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1740
1740
|
}
|
|
1741
1741
|
function isArrayLike(value) {
|
|
1742
|
-
return value != null && isLength(value.length) && !isFunction$
|
|
1742
|
+
return value != null && isLength(value.length) && !isFunction$4(value);
|
|
1743
1743
|
}
|
|
1744
1744
|
function isIterateeCall(value, index2, object2) {
|
|
1745
|
-
if (!isObject$
|
|
1745
|
+
if (!isObject$5(object2)) {
|
|
1746
1746
|
return false;
|
|
1747
1747
|
}
|
|
1748
1748
|
var type2 = typeof index2;
|
|
@@ -2388,7 +2388,7 @@ function debounce$2(func, wait, options) {
|
|
|
2388
2388
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
2389
2389
|
}
|
|
2390
2390
|
wait = toNumber$1(wait) || 0;
|
|
2391
|
-
if (isObject$
|
|
2391
|
+
if (isObject$5(options)) {
|
|
2392
2392
|
leading = !!options.leading;
|
|
2393
2393
|
maxing = "maxWait" in options;
|
|
2394
2394
|
maxWait = maxing ? nativeMax$2(toNumber$1(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -3565,16 +3565,16 @@ function dirname(url) {
|
|
|
3565
3565
|
return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
|
|
3566
3566
|
}
|
|
3567
3567
|
const isBoolean = (x2) => typeof x2 === "boolean";
|
|
3568
|
-
const isFunction$
|
|
3569
|
-
const isObject$
|
|
3570
|
-
const isPureObject = (x2) => isObject$
|
|
3568
|
+
const isFunction$3 = (x2) => typeof x2 === "function";
|
|
3569
|
+
const isObject$4 = (x2) => x2 !== null && typeof x2 === "object";
|
|
3570
|
+
const isPureObject = (x2) => isObject$4(x2) && x2.constructor === {}.constructor;
|
|
3571
3571
|
const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
|
|
3572
3572
|
const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
|
|
3573
3573
|
const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
|
|
3574
3574
|
const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
|
|
3575
3575
|
const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
|
|
3576
|
-
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$
|
|
3577
|
-
const isReadableNodeStream = (x2) => isObject$
|
|
3576
|
+
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$4(x2) && isFunction$3(x2.tee) && isFunction$3(x2.cancel) && isFunction$3(x2.getReader);
|
|
3577
|
+
const isReadableNodeStream = (x2) => isObject$4(x2) && isFunction$3(x2.read) && isFunction$3(x2.pipe) && isBoolean(x2.readable);
|
|
3578
3578
|
const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
|
|
3579
3579
|
const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
|
|
3580
3580
|
const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
|
|
@@ -4374,7 +4374,7 @@ function getFetchFunction(options, context) {
|
|
|
4374
4374
|
if (typeof fetchOptions.fetch === "function") {
|
|
4375
4375
|
return fetchOptions.fetch;
|
|
4376
4376
|
}
|
|
4377
|
-
if (isObject$
|
|
4377
|
+
if (isObject$4(fetchOptions.fetch)) {
|
|
4378
4378
|
return (url) => fetchFile(url, fetchOptions);
|
|
4379
4379
|
}
|
|
4380
4380
|
if (context !== null && context !== void 0 && context.fetch) {
|
|
@@ -4395,7 +4395,7 @@ function validateOptionsObject(options, id, defaultOptions2, deprecatedOptions,
|
|
|
4395
4395
|
const loaderName = id || "Top level";
|
|
4396
4396
|
const prefix2 = id ? "".concat(id, ".") : "";
|
|
4397
4397
|
for (const key in options) {
|
|
4398
|
-
const isSubOptions = !id && isObject$
|
|
4398
|
+
const isSubOptions = !id && isObject$4(options[key]);
|
|
4399
4399
|
const isBaseUriOption = key === "baseUri" && !id;
|
|
4400
4400
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
4401
4401
|
if (!(key in defaultOptions2) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
@@ -4511,7 +4511,7 @@ function registerLoaders(loaders) {
|
|
|
4511
4511
|
function getRegisteredLoaders() {
|
|
4512
4512
|
return getGlobalLoaderRegistry();
|
|
4513
4513
|
}
|
|
4514
|
-
const 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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
7683
|
+
log$3.deprecated("Buffer.type", "Buffer.accessor.type")();
|
|
7684
7684
|
return this.accessor.type;
|
|
7685
7685
|
}
|
|
7686
7686
|
get bytes() {
|
|
7687
|
-
log$
|
|
7687
|
+
log$3.deprecated("Buffer.bytes", "Buffer.byteLength")();
|
|
7688
7688
|
return this.byteLength;
|
|
7689
7689
|
}
|
|
7690
7690
|
setByteLength(byteLength) {
|
|
7691
|
-
log$
|
|
7691
|
+
log$3.deprecated("setByteLength", "reallocate")();
|
|
7692
7692
|
return this.reallocate(byteLength);
|
|
7693
7693
|
}
|
|
7694
7694
|
updateAccessor(opts) {
|
|
7695
|
-
log$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
9542
|
+
log$3.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
|
|
9543
9543
|
return null;
|
|
9544
9544
|
}
|
|
9545
9545
|
readPixelsToBuffer() {
|
|
9546
|
-
log$
|
|
9546
|
+
log$3.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
|
|
9547
9547
|
return null;
|
|
9548
9548
|
}
|
|
9549
9549
|
copyToDataUrl() {
|
|
9550
|
-
log$
|
|
9550
|
+
log$3.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
|
|
9551
9551
|
return null;
|
|
9552
9552
|
}
|
|
9553
9553
|
copyToImage() {
|
|
9554
|
-
log$
|
|
9554
|
+
log$3.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
|
|
9555
9555
|
return null;
|
|
9556
9556
|
}
|
|
9557
9557
|
copyToTexture() {
|
|
9558
|
-
log$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
10025
|
-
log$
|
|
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$
|
|
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$
|
|
10598
|
+
log$3.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
|
|
10599
10599
|
this.setUniforms(uniforms || {});
|
|
10600
10600
|
}
|
|
10601
|
-
if (log$
|
|
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$
|
|
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$
|
|
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$
|
|
10744
|
+
log$3.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
|
|
10745
10745
|
gl.linkProgram(this.handle);
|
|
10746
|
-
log$
|
|
10747
|
-
if (gl.debug || log$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
17613
|
-
collapsed: log$
|
|
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$
|
|
17645
|
+
log$3.log("MISSING UNIFORMS", Object.keys(missingTable))();
|
|
17646
17646
|
}
|
|
17647
17647
|
if (unusedCount > 0) {
|
|
17648
|
-
log$
|
|
17648
|
+
log$3.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
|
|
17649
17649
|
}
|
|
17650
17650
|
const configTable = getDebugTableForProgramConfiguration(this.vertexArray.configuration);
|
|
17651
|
-
log$
|
|
17652
|
-
log$
|
|
17653
|
-
log$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
22592
|
+
log$4.warn("missing `viewState` or `initialViewState`")();
|
|
22593
22593
|
}
|
|
22594
22594
|
}
|
|
22595
22595
|
_onViewStateChange(viewId, event) {
|
|
@@ -23363,9 +23363,9 @@ class Controller {
|
|
|
23363
23363
|
updateTransition() {
|
|
23364
23364
|
this.transitionManager.updateTransition();
|
|
23365
23365
|
}
|
|
23366
|
-
toggleEvents(
|
|
23366
|
+
toggleEvents(eventNames, enabled) {
|
|
23367
23367
|
if (this.eventManager) {
|
|
23368
|
-
|
|
23368
|
+
eventNames.forEach((eventName) => {
|
|
23369
23369
|
if (this._events[eventName] !== enabled) {
|
|
23370
23370
|
this._events[eventName] = enabled;
|
|
23371
23371
|
if (enabled) {
|
|
@@ -24892,7 +24892,7 @@ class MaskEffect {
|
|
|
24892
24892
|
let channelInfo = channelMap[id];
|
|
24893
24893
|
if (!channelInfo) {
|
|
24894
24894
|
if (++channelCount > 4) {
|
|
24895
|
-
log$
|
|
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$
|
|
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$
|
|
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$
|
|
25314
|
+
log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
|
|
25315
25315
|
}
|
|
25316
25316
|
}
|
|
25317
25317
|
}
|
|
@@ -26816,18 +26816,18 @@ var hammer$1 = { exports: {} };
|
|
|
26816
26816
|
emit: function(input) {
|
|
26817
26817
|
var self2 = this;
|
|
26818
26818
|
var state = this.state;
|
|
26819
|
-
function
|
|
26819
|
+
function emit(event) {
|
|
26820
26820
|
self2.manager.emit(event, input);
|
|
26821
26821
|
}
|
|
26822
26822
|
if (state < STATE_ENDED) {
|
|
26823
|
-
|
|
26823
|
+
emit(self2.options.event + stateStr(state));
|
|
26824
26824
|
}
|
|
26825
|
-
|
|
26825
|
+
emit(self2.options.event);
|
|
26826
26826
|
if (input.additionalEvent) {
|
|
26827
|
-
|
|
26827
|
+
emit(input.additionalEvent);
|
|
26828
26828
|
}
|
|
26829
26829
|
if (state >= STATE_ENDED) {
|
|
26830
|
-
|
|
26830
|
+
emit(self2.options.event + stateStr(state));
|
|
26831
26831
|
}
|
|
26832
26832
|
},
|
|
26833
26833
|
/**
|
|
@@ -28187,7 +28187,7 @@ class EventRegistrar {
|
|
|
28187
28187
|
isEmpty() {
|
|
28188
28188
|
return !this._active;
|
|
28189
28189
|
}
|
|
28190
|
-
add(type2, handler, options,
|
|
28190
|
+
add(type2, handler, options, once = false, passive = false) {
|
|
28191
28191
|
const { handlers, handlersByElement } = this;
|
|
28192
28192
|
let opts = DEFAULT_OPTIONS$2;
|
|
28193
28193
|
if (typeof options === "string" || options && options.addEventListener) {
|
|
@@ -28206,7 +28206,7 @@ class EventRegistrar {
|
|
|
28206
28206
|
srcElement: opts.srcElement,
|
|
28207
28207
|
priority: opts.priority
|
|
28208
28208
|
};
|
|
28209
|
-
if (
|
|
28209
|
+
if (once) {
|
|
28210
28210
|
entry.once = true;
|
|
28211
28211
|
}
|
|
28212
28212
|
if (passive) {
|
|
@@ -28254,7 +28254,7 @@ class EventRegistrar {
|
|
|
28254
28254
|
};
|
|
28255
28255
|
const entriesToRemove = [];
|
|
28256
28256
|
for (let i2 = 0; i2 < entries.length; i2++) {
|
|
28257
|
-
const { type: type2, handler, once
|
|
28257
|
+
const { type: type2, handler, once } = entries[i2];
|
|
28258
28258
|
handler({
|
|
28259
28259
|
...event,
|
|
28260
28260
|
// @ts-ignore
|
|
@@ -28262,7 +28262,7 @@ class EventRegistrar {
|
|
|
28262
28262
|
stopPropagation,
|
|
28263
28263
|
stopImmediatePropagation
|
|
28264
28264
|
});
|
|
28265
|
-
if (
|
|
28265
|
+
if (once) {
|
|
28266
28266
|
entriesToRemove.push(entries[i2]);
|
|
28267
28267
|
}
|
|
28268
28268
|
if (immediatePropagationStopped) {
|
|
@@ -28443,11 +28443,11 @@ class EventManager {
|
|
|
28443
28443
|
/**
|
|
28444
28444
|
* Process the event registration for a single event + handler.
|
|
28445
28445
|
*/
|
|
28446
|
-
_addEventHandler(event, handler, opts,
|
|
28446
|
+
_addEventHandler(event, handler, opts, once, passive) {
|
|
28447
28447
|
if (typeof event !== "string") {
|
|
28448
28448
|
opts = handler;
|
|
28449
28449
|
for (const eventName in event) {
|
|
28450
|
-
this._addEventHandler(eventName, event[eventName], opts,
|
|
28450
|
+
this._addEventHandler(eventName, event[eventName], opts, once, passive);
|
|
28451
28451
|
}
|
|
28452
28452
|
return;
|
|
28453
28453
|
}
|
|
@@ -28462,7 +28462,7 @@ class EventManager {
|
|
|
28462
28462
|
manager.on(eventAlias, eventRegistrar.handleEvent);
|
|
28463
28463
|
}
|
|
28464
28464
|
}
|
|
28465
|
-
eventRegistrar.add(event, handler, opts,
|
|
28465
|
+
eventRegistrar.add(event, handler, opts, once, passive);
|
|
28466
28466
|
if (!eventRegistrar.isEmpty()) {
|
|
28467
28467
|
this._toggleRecognizer(eventRegistrar.recognizerName, true);
|
|
28468
28468
|
}
|
|
@@ -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$
|
|
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$
|
|
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$
|
|
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$
|
|
28721
|
+
log$4.removed("onLayerHover", "onHover")();
|
|
28722
28722
|
}
|
|
28723
28723
|
if ("onLayerClick" in props) {
|
|
28724
|
-
log$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
30944
|
+
log$4.error("unsupported transition type '".concat(settings.type, "'"))();
|
|
30945
30945
|
return;
|
|
30946
30946
|
}
|
|
30947
30947
|
const transition2 = new TransitionType(this.timeline);
|
|
@@ -31183,7 +31183,7 @@ function getPropTypes(props) {
|
|
|
31183
31183
|
const ERR_NOT_OBJECT = "count(): argument not an object";
|
|
31184
31184
|
const ERR_NOT_CONTAINER = "count(): argument not a container";
|
|
31185
31185
|
function count(container) {
|
|
31186
|
-
if (!isObject$
|
|
31186
|
+
if (!isObject$3(container)) {
|
|
31187
31187
|
throw new Error(ERR_NOT_OBJECT);
|
|
31188
31188
|
}
|
|
31189
31189
|
if (typeof container.count === "function") {
|
|
@@ -31203,7 +31203,7 @@ function count(container) {
|
|
|
31203
31203
|
function isPlainObject$1(value) {
|
|
31204
31204
|
return value !== null && typeof value === "object" && value.constructor === Object;
|
|
31205
31205
|
}
|
|
31206
|
-
function isObject$
|
|
31206
|
+
function isObject$3(value) {
|
|
31207
31207
|
return value !== null && typeof value === "object";
|
|
31208
31208
|
}
|
|
31209
31209
|
function mergeShaders(target, source) {
|
|
@@ -31537,7 +31537,7 @@ function addDeprecatedPropsToPropPrototype(defaultProps2, deprecatedProps) {
|
|
|
31537
31537
|
this[newPropName] = newValue;
|
|
31538
31538
|
}
|
|
31539
31539
|
}
|
|
31540
|
-
log$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
69699
|
+
log$4.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
|
|
69700
69700
|
}
|
|
69701
69701
|
return subLayers;
|
|
69702
69702
|
}
|
|
@@ -70440,7 +70440,7 @@ function point(coordinates2, properties, options) {
|
|
|
70440
70440
|
if (coordinates2.length < 2) {
|
|
70441
70441
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
70442
70442
|
}
|
|
70443
|
-
if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
|
|
70443
|
+
if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
|
|
70444
70444
|
throw new Error("coordinates must contain numbers");
|
|
70445
70445
|
}
|
|
70446
70446
|
var geom = {
|
|
@@ -70641,10 +70641,10 @@ function convertArea(area2, originalUnit, finalUnit) {
|
|
|
70641
70641
|
}
|
|
70642
70642
|
return area2 / startFactor * finalFactor;
|
|
70643
70643
|
}
|
|
70644
|
-
function isNumber(num) {
|
|
70644
|
+
function isNumber$1(num) {
|
|
70645
70645
|
return !isNaN(num) && num !== null && !Array.isArray(num);
|
|
70646
70646
|
}
|
|
70647
|
-
function isObject$
|
|
70647
|
+
function isObject$2(input) {
|
|
70648
70648
|
return !!input && input.constructor === Object;
|
|
70649
70649
|
}
|
|
70650
70650
|
function validateBBox(bbox2) {
|
|
@@ -70658,7 +70658,7 @@ function validateBBox(bbox2) {
|
|
|
70658
70658
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
70659
70659
|
}
|
|
70660
70660
|
bbox2.forEach(function(num) {
|
|
70661
|
-
if (!isNumber(num)) {
|
|
70661
|
+
if (!isNumber$1(num)) {
|
|
70662
70662
|
throw new Error("bbox must only contain numbers");
|
|
70663
70663
|
}
|
|
70664
70664
|
});
|
|
@@ -70684,8 +70684,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
70684
70684
|
featureCollection: featureCollection$1,
|
|
70685
70685
|
geometry,
|
|
70686
70686
|
geometryCollection,
|
|
70687
|
-
isNumber,
|
|
70688
|
-
isObject: isObject$
|
|
70687
|
+
isNumber: isNumber$1,
|
|
70688
|
+
isObject: isObject$2,
|
|
70689
70689
|
lengthToDegrees,
|
|
70690
70690
|
lengthToRadians,
|
|
70691
70691
|
lineString,
|
|
@@ -71127,7 +71127,7 @@ function lineReduce$1(geojson, callback, initialValue) {
|
|
|
71127
71127
|
}
|
|
71128
71128
|
function findSegment$1(geojson, options) {
|
|
71129
71129
|
options = options || {};
|
|
71130
|
-
if (!isObject$
|
|
71130
|
+
if (!isObject$2(options))
|
|
71131
71131
|
throw new Error("options is invalid");
|
|
71132
71132
|
var featureIndex = options.featureIndex || 0;
|
|
71133
71133
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -71219,7 +71219,7 @@ function findSegment$1(geojson, options) {
|
|
|
71219
71219
|
}
|
|
71220
71220
|
function findPoint$1(geojson, options) {
|
|
71221
71221
|
options = options || {};
|
|
71222
|
-
if (!isObject$
|
|
71222
|
+
if (!isObject$2(options))
|
|
71223
71223
|
throw new Error("options is invalid");
|
|
71224
71224
|
var featureIndex = options.featureIndex || 0;
|
|
71225
71225
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -71363,7 +71363,7 @@ function getCoords$1(coords) {
|
|
|
71363
71363
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
71364
71364
|
}
|
|
71365
71365
|
function containsNumber$1(coordinates2) {
|
|
71366
|
-
if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
|
|
71366
|
+
if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
|
|
71367
71367
|
return true;
|
|
71368
71368
|
}
|
|
71369
71369
|
if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
|
|
@@ -74419,7 +74419,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
|
|
|
74419
74419
|
var toStr$1 = Object.prototype.toString;
|
|
74420
74420
|
var concat = Array.prototype.concat;
|
|
74421
74421
|
var defineDataProperty2 = defineDataProperty$1;
|
|
74422
|
-
var isFunction$
|
|
74422
|
+
var isFunction$2 = function(fn) {
|
|
74423
74423
|
return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
|
|
74424
74424
|
};
|
|
74425
74425
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -74429,7 +74429,7 @@ var defineProperty$3 = function(object2, name2, value, predicate) {
|
|
|
74429
74429
|
if (object2[name2] === value) {
|
|
74430
74430
|
return;
|
|
74431
74431
|
}
|
|
74432
|
-
} else if (!isFunction$
|
|
74432
|
+
} else if (!isFunction$2(predicate) || !predicate()) {
|
|
74433
74433
|
return;
|
|
74434
74434
|
}
|
|
74435
74435
|
}
|
|
@@ -74813,7 +74813,7 @@ function lineOverlap(line1, line2, options) {
|
|
|
74813
74813
|
options = {};
|
|
74814
74814
|
}
|
|
74815
74815
|
options = options || {};
|
|
74816
|
-
if (!isObject$
|
|
74816
|
+
if (!isObject$2(options))
|
|
74817
74817
|
throw new Error("options is invalid");
|
|
74818
74818
|
var tolerance = options.tolerance || 0;
|
|
74819
74819
|
var features = [];
|
|
@@ -75373,19 +75373,19 @@ var jsts_min = { exports: {} };
|
|
|
75373
75373
|
}, Object.defineProperties(w2, O);
|
|
75374
75374
|
var T = function(t2, e3) {
|
|
75375
75375
|
return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
|
|
75376
|
-
},
|
|
75376
|
+
}, R = function() {
|
|
75377
75377
|
}, P = { LOG_10: { configurable: true } };
|
|
75378
|
-
|
|
75378
|
+
R.prototype.interfaces_ = function() {
|
|
75379
75379
|
return [];
|
|
75380
|
-
},
|
|
75381
|
-
return
|
|
75382
|
-
},
|
|
75380
|
+
}, R.prototype.getClass = function() {
|
|
75381
|
+
return R;
|
|
75382
|
+
}, R.log10 = function(t2) {
|
|
75383
75383
|
var e3 = Math.log(t2);
|
|
75384
|
-
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 /
|
|
75385
|
-
},
|
|
75384
|
+
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
|
|
75385
|
+
}, R.min = function(t2, e3, n3, i3) {
|
|
75386
75386
|
var r3 = t2;
|
|
75387
75387
|
return e3 < r3 && (r3 = e3), n3 < r3 && (r3 = n3), i3 < r3 && (r3 = i3), r3;
|
|
75388
|
-
},
|
|
75388
|
+
}, R.clamp = function() {
|
|
75389
75389
|
if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
|
|
75390
75390
|
var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2];
|
|
75391
75391
|
return t2 < e3 ? e3 : t2 > n3 ? n3 : t2;
|
|
@@ -75394,9 +75394,9 @@ var jsts_min = { exports: {} };
|
|
|
75394
75394
|
var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
|
|
75395
75395
|
return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
|
|
75396
75396
|
}
|
|
75397
|
-
},
|
|
75397
|
+
}, R.wrap = function(t2, e3) {
|
|
75398
75398
|
return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
|
|
75399
|
-
},
|
|
75399
|
+
}, R.max = function() {
|
|
75400
75400
|
if (3 === arguments.length) {
|
|
75401
75401
|
var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2], i3 = t2;
|
|
75402
75402
|
return e3 > i3 && (i3 = e3), n3 > i3 && (i3 = n3), i3;
|
|
@@ -75405,11 +75405,11 @@ var jsts_min = { exports: {} };
|
|
|
75405
75405
|
var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
|
|
75406
75406
|
return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
|
|
75407
75407
|
}
|
|
75408
|
-
},
|
|
75408
|
+
}, R.average = function(t2, e3) {
|
|
75409
75409
|
return (t2 + e3) / 2;
|
|
75410
75410
|
}, P.LOG_10.get = function() {
|
|
75411
75411
|
return Math.log(10);
|
|
75412
|
-
}, Object.defineProperties(
|
|
75412
|
+
}, Object.defineProperties(R, P);
|
|
75413
75413
|
var D2 = function(t2) {
|
|
75414
75414
|
this.str = t2;
|
|
75415
75415
|
};
|
|
@@ -76564,7 +76564,7 @@ var jsts_min = { exports: {} };
|
|
|
76564
76564
|
}
|
|
76565
76565
|
} else
|
|
76566
76566
|
r3 = true;
|
|
76567
|
-
return r3 ?
|
|
76567
|
+
return r3 ? R.min(at2.distancePointLine(t2, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t2, e3), at2.distancePointLine(i3, t2, e3)) : 0;
|
|
76568
76568
|
}, at2.isPointInRing = function(t2, e3) {
|
|
76569
76569
|
return at2.locatePointInRing(t2, e3) !== w2.EXTERIOR;
|
|
76570
76570
|
}, at2.computeLength = function(t2) {
|
|
@@ -77154,8 +77154,8 @@ var jsts_min = { exports: {} };
|
|
|
77154
77154
|
(null === e3 || e3.compareTo(t2[n3]) > 0) && (e3 = t2[n3]);
|
|
77155
77155
|
return e3;
|
|
77156
77156
|
}, Lt.extract = function(t2, e3, n3) {
|
|
77157
|
-
e3 =
|
|
77158
|
-
var i3 = (n3 =
|
|
77157
|
+
e3 = R.clamp(e3, 0, t2.length);
|
|
77158
|
+
var i3 = (n3 = R.clamp(n3, -1, t2.length)) - e3 + 1;
|
|
77159
77159
|
n3 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n3 < e3 && (i3 = 0);
|
|
77160
77160
|
var r3 = new Array(i3).fill(null);
|
|
77161
77161
|
if (0 === i3)
|
|
@@ -82900,7 +82900,7 @@ var jsts_min = { exports: {} };
|
|
|
82900
82900
|
return f3.getResultGeometry(c3);
|
|
82901
82901
|
}
|
|
82902
82902
|
}, di.precisionScaleFactor = function(t2, e3, n3) {
|
|
82903
|
-
var i3 = t2.getEnvelopeInternal(), r3 =
|
|
82903
|
+
var i3 = t2.getEnvelopeInternal(), r3 = R.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
|
|
82904
82904
|
return Math.pow(10, o3);
|
|
82905
82905
|
}, yi.CAP_ROUND.get = function() {
|
|
82906
82906
|
return Cn.CAP_ROUND;
|
|
@@ -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];
|
|
@@ -90291,372 +90291,216 @@ var layerMouseEvent = {};
|
|
|
90291
90291
|
exports2["default"] = LayerMouseEvent;
|
|
90292
90292
|
})(layerMouseEvent);
|
|
90293
90293
|
var nebulaLayer = {};
|
|
90294
|
-
var events = { exports: {} };
|
|
90295
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
90296
|
-
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
90297
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
90298
|
-
};
|
|
90299
|
-
var ReflectOwnKeys;
|
|
90300
|
-
if (R && typeof R.ownKeys === "function") {
|
|
90301
|
-
ReflectOwnKeys = R.ownKeys;
|
|
90302
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
90303
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
90304
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
90305
|
-
};
|
|
90306
|
-
} else {
|
|
90307
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
90308
|
-
return Object.getOwnPropertyNames(target);
|
|
90309
|
-
};
|
|
90310
|
-
}
|
|
90311
|
-
function ProcessEmitWarning(warning2) {
|
|
90312
|
-
if (console && console.warn)
|
|
90313
|
-
console.warn(warning2);
|
|
90314
|
-
}
|
|
90315
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
90316
|
-
return value !== value;
|
|
90317
|
-
};
|
|
90318
90294
|
function EventEmitter() {
|
|
90319
|
-
|
|
90295
|
+
this._events = this._events || {};
|
|
90296
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
90320
90297
|
}
|
|
90321
|
-
events
|
|
90322
|
-
events.exports.once = once2;
|
|
90298
|
+
var events = EventEmitter;
|
|
90323
90299
|
EventEmitter.EventEmitter = EventEmitter;
|
|
90324
90300
|
EventEmitter.prototype._events = void 0;
|
|
90325
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
90326
90301
|
EventEmitter.prototype._maxListeners = void 0;
|
|
90327
|
-
|
|
90328
|
-
function
|
|
90329
|
-
if (
|
|
90330
|
-
throw
|
|
90331
|
-
}
|
|
90332
|
-
}
|
|
90333
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
90334
|
-
enumerable: true,
|
|
90335
|
-
get: function() {
|
|
90336
|
-
return defaultMaxListeners;
|
|
90337
|
-
},
|
|
90338
|
-
set: function(arg) {
|
|
90339
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
90340
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
90341
|
-
}
|
|
90342
|
-
defaultMaxListeners = arg;
|
|
90343
|
-
}
|
|
90344
|
-
});
|
|
90345
|
-
EventEmitter.init = function() {
|
|
90346
|
-
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
90347
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
90348
|
-
this._eventsCount = 0;
|
|
90349
|
-
}
|
|
90350
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
90351
|
-
};
|
|
90352
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
|
|
90353
|
-
if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
|
|
90354
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
|
|
90355
|
-
}
|
|
90302
|
+
EventEmitter.defaultMaxListeners = 10;
|
|
90303
|
+
EventEmitter.prototype.setMaxListeners = function(n2) {
|
|
90304
|
+
if (!isNumber(n2) || n2 < 0 || isNaN(n2))
|
|
90305
|
+
throw TypeError("n must be a positive number");
|
|
90356
90306
|
this._maxListeners = n2;
|
|
90357
90307
|
return this;
|
|
90358
90308
|
};
|
|
90359
|
-
function
|
|
90360
|
-
|
|
90361
|
-
|
|
90362
|
-
|
|
90363
|
-
|
|
90364
|
-
|
|
90365
|
-
|
|
90366
|
-
|
|
90367
|
-
|
|
90368
|
-
|
|
90369
|
-
|
|
90370
|
-
|
|
90371
|
-
|
|
90372
|
-
|
|
90373
|
-
|
|
90374
|
-
|
|
90375
|
-
|
|
90376
|
-
|
|
90377
|
-
if (doError) {
|
|
90378
|
-
var er;
|
|
90379
|
-
if (args.length > 0)
|
|
90380
|
-
er = args[0];
|
|
90381
|
-
if (er instanceof Error) {
|
|
90382
|
-
throw er;
|
|
90383
|
-
}
|
|
90384
|
-
var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
90385
|
-
err2.context = er;
|
|
90386
|
-
throw err2;
|
|
90387
|
-
}
|
|
90388
|
-
var handler = events2[type2];
|
|
90389
|
-
if (handler === void 0)
|
|
90309
|
+
EventEmitter.prototype.emit = function(type2) {
|
|
90310
|
+
var er, handler, len2, args, i2, listeners;
|
|
90311
|
+
if (!this._events)
|
|
90312
|
+
this._events = {};
|
|
90313
|
+
if (type2 === "error") {
|
|
90314
|
+
if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
|
|
90315
|
+
er = arguments[1];
|
|
90316
|
+
if (er instanceof Error) {
|
|
90317
|
+
throw er;
|
|
90318
|
+
} else {
|
|
90319
|
+
var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
|
|
90320
|
+
err2.context = er;
|
|
90321
|
+
throw err2;
|
|
90322
|
+
}
|
|
90323
|
+
}
|
|
90324
|
+
}
|
|
90325
|
+
handler = this._events[type2];
|
|
90326
|
+
if (isUndefined(handler))
|
|
90390
90327
|
return false;
|
|
90391
|
-
if (
|
|
90392
|
-
|
|
90393
|
-
|
|
90394
|
-
|
|
90395
|
-
|
|
90396
|
-
|
|
90397
|
-
|
|
90328
|
+
if (isFunction$1(handler)) {
|
|
90329
|
+
switch (arguments.length) {
|
|
90330
|
+
case 1:
|
|
90331
|
+
handler.call(this);
|
|
90332
|
+
break;
|
|
90333
|
+
case 2:
|
|
90334
|
+
handler.call(this, arguments[1]);
|
|
90335
|
+
break;
|
|
90336
|
+
case 3:
|
|
90337
|
+
handler.call(this, arguments[1], arguments[2]);
|
|
90338
|
+
break;
|
|
90339
|
+
default:
|
|
90340
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
90341
|
+
handler.apply(this, args);
|
|
90342
|
+
}
|
|
90343
|
+
} else if (isObject$1(handler)) {
|
|
90344
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
90345
|
+
listeners = handler.slice();
|
|
90346
|
+
len2 = listeners.length;
|
|
90347
|
+
for (i2 = 0; i2 < len2; i2++)
|
|
90348
|
+
listeners[i2].apply(this, args);
|
|
90398
90349
|
}
|
|
90399
90350
|
return true;
|
|
90400
90351
|
};
|
|
90401
|
-
function
|
|
90352
|
+
EventEmitter.prototype.addListener = function(type2, listener) {
|
|
90402
90353
|
var m2;
|
|
90403
|
-
|
|
90404
|
-
|
|
90405
|
-
|
|
90406
|
-
|
|
90407
|
-
if (
|
|
90408
|
-
|
|
90409
|
-
|
|
90410
|
-
|
|
90411
|
-
|
|
90412
|
-
|
|
90413
|
-
|
|
90414
|
-
|
|
90415
|
-
|
|
90416
|
-
|
|
90417
|
-
|
|
90418
|
-
|
|
90419
|
-
|
|
90420
|
-
|
|
90421
|
-
|
|
90422
|
-
existing = events2[type2] = listener;
|
|
90423
|
-
++target._eventsCount;
|
|
90424
|
-
} else {
|
|
90425
|
-
if (typeof existing === "function") {
|
|
90426
|
-
existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
|
|
90427
|
-
} else if (prepend) {
|
|
90428
|
-
existing.unshift(listener);
|
|
90354
|
+
if (!isFunction$1(listener))
|
|
90355
|
+
throw TypeError("listener must be a function");
|
|
90356
|
+
if (!this._events)
|
|
90357
|
+
this._events = {};
|
|
90358
|
+
if (this._events.newListener)
|
|
90359
|
+
this.emit(
|
|
90360
|
+
"newListener",
|
|
90361
|
+
type2,
|
|
90362
|
+
isFunction$1(listener.listener) ? listener.listener : listener
|
|
90363
|
+
);
|
|
90364
|
+
if (!this._events[type2])
|
|
90365
|
+
this._events[type2] = listener;
|
|
90366
|
+
else if (isObject$1(this._events[type2]))
|
|
90367
|
+
this._events[type2].push(listener);
|
|
90368
|
+
else
|
|
90369
|
+
this._events[type2] = [this._events[type2], listener];
|
|
90370
|
+
if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
|
|
90371
|
+
if (!isUndefined(this._maxListeners)) {
|
|
90372
|
+
m2 = this._maxListeners;
|
|
90429
90373
|
} else {
|
|
90430
|
-
|
|
90374
|
+
m2 = EventEmitter.defaultMaxListeners;
|
|
90431
90375
|
}
|
|
90432
|
-
m2
|
|
90433
|
-
|
|
90434
|
-
|
|
90435
|
-
|
|
90436
|
-
|
|
90437
|
-
|
|
90438
|
-
|
|
90439
|
-
|
|
90440
|
-
|
|
90376
|
+
if (m2 && m2 > 0 && this._events[type2].length > m2) {
|
|
90377
|
+
this._events[type2].warned = true;
|
|
90378
|
+
console.error(
|
|
90379
|
+
"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
|
|
90380
|
+
this._events[type2].length
|
|
90381
|
+
);
|
|
90382
|
+
if (typeof console.trace === "function") {
|
|
90383
|
+
console.trace();
|
|
90384
|
+
}
|
|
90441
90385
|
}
|
|
90442
90386
|
}
|
|
90443
|
-
return target;
|
|
90444
|
-
}
|
|
90445
|
-
EventEmitter.prototype.addListener = function addListener(type2, listener) {
|
|
90446
|
-
return _addListener(this, type2, listener, false);
|
|
90447
|
-
};
|
|
90448
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
90449
|
-
EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
|
|
90450
|
-
return _addListener(this, type2, listener, true);
|
|
90451
|
-
};
|
|
90452
|
-
function onceWrapper() {
|
|
90453
|
-
if (!this.fired) {
|
|
90454
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
90455
|
-
this.fired = true;
|
|
90456
|
-
if (arguments.length === 0)
|
|
90457
|
-
return this.listener.call(this.target);
|
|
90458
|
-
return this.listener.apply(this.target, arguments);
|
|
90459
|
-
}
|
|
90460
|
-
}
|
|
90461
|
-
function _onceWrap(target, type2, listener) {
|
|
90462
|
-
var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
|
|
90463
|
-
var wrapped = onceWrapper.bind(state);
|
|
90464
|
-
wrapped.listener = listener;
|
|
90465
|
-
state.wrapFn = wrapped;
|
|
90466
|
-
return wrapped;
|
|
90467
|
-
}
|
|
90468
|
-
EventEmitter.prototype.once = function once(type2, listener) {
|
|
90469
|
-
checkListener(listener);
|
|
90470
|
-
this.on(type2, _onceWrap(this, type2, listener));
|
|
90471
90387
|
return this;
|
|
90472
90388
|
};
|
|
90473
|
-
EventEmitter.prototype.
|
|
90474
|
-
|
|
90475
|
-
|
|
90389
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
90390
|
+
EventEmitter.prototype.once = function(type2, listener) {
|
|
90391
|
+
if (!isFunction$1(listener))
|
|
90392
|
+
throw TypeError("listener must be a function");
|
|
90393
|
+
var fired = false;
|
|
90394
|
+
function g2() {
|
|
90395
|
+
this.removeListener(type2, g2);
|
|
90396
|
+
if (!fired) {
|
|
90397
|
+
fired = true;
|
|
90398
|
+
listener.apply(this, arguments);
|
|
90399
|
+
}
|
|
90400
|
+
}
|
|
90401
|
+
g2.listener = listener;
|
|
90402
|
+
this.on(type2, g2);
|
|
90476
90403
|
return this;
|
|
90477
90404
|
};
|
|
90478
|
-
EventEmitter.prototype.removeListener = function
|
|
90479
|
-
var list,
|
|
90480
|
-
|
|
90481
|
-
|
|
90482
|
-
if (
|
|
90483
|
-
return this;
|
|
90484
|
-
list = events2[type2];
|
|
90485
|
-
if (list === void 0)
|
|
90405
|
+
EventEmitter.prototype.removeListener = function(type2, listener) {
|
|
90406
|
+
var list, position, length2, i2;
|
|
90407
|
+
if (!isFunction$1(listener))
|
|
90408
|
+
throw TypeError("listener must be a function");
|
|
90409
|
+
if (!this._events || !this._events[type2])
|
|
90486
90410
|
return this;
|
|
90487
|
-
|
|
90488
|
-
|
|
90489
|
-
|
|
90490
|
-
|
|
90491
|
-
|
|
90492
|
-
|
|
90493
|
-
|
|
90494
|
-
|
|
90495
|
-
|
|
90496
|
-
|
|
90497
|
-
for (i2 = list.length - 1; i2 >= 0; i2--) {
|
|
90498
|
-
if (list[i2] === listener || list[i2].listener === listener) {
|
|
90499
|
-
originalListener = list[i2].listener;
|
|
90411
|
+
list = this._events[type2];
|
|
90412
|
+
length2 = list.length;
|
|
90413
|
+
position = -1;
|
|
90414
|
+
if (list === listener || isFunction$1(list.listener) && list.listener === listener) {
|
|
90415
|
+
delete this._events[type2];
|
|
90416
|
+
if (this._events.removeListener)
|
|
90417
|
+
this.emit("removeListener", type2, listener);
|
|
90418
|
+
} else if (isObject$1(list)) {
|
|
90419
|
+
for (i2 = length2; i2-- > 0; ) {
|
|
90420
|
+
if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
|
|
90500
90421
|
position = i2;
|
|
90501
90422
|
break;
|
|
90502
90423
|
}
|
|
90503
90424
|
}
|
|
90504
90425
|
if (position < 0)
|
|
90505
90426
|
return this;
|
|
90506
|
-
if (
|
|
90507
|
-
list.
|
|
90508
|
-
|
|
90509
|
-
|
|
90427
|
+
if (list.length === 1) {
|
|
90428
|
+
list.length = 0;
|
|
90429
|
+
delete this._events[type2];
|
|
90430
|
+
} else {
|
|
90431
|
+
list.splice(position, 1);
|
|
90510
90432
|
}
|
|
90511
|
-
if (
|
|
90512
|
-
|
|
90513
|
-
if (events2.removeListener !== void 0)
|
|
90514
|
-
this.emit("removeListener", type2, originalListener || listener);
|
|
90433
|
+
if (this._events.removeListener)
|
|
90434
|
+
this.emit("removeListener", type2, listener);
|
|
90515
90435
|
}
|
|
90516
90436
|
return this;
|
|
90517
90437
|
};
|
|
90518
|
-
EventEmitter.prototype.
|
|
90519
|
-
|
|
90520
|
-
|
|
90521
|
-
events2 = this._events;
|
|
90522
|
-
if (events2 === void 0)
|
|
90438
|
+
EventEmitter.prototype.removeAllListeners = function(type2) {
|
|
90439
|
+
var key, listeners;
|
|
90440
|
+
if (!this._events)
|
|
90523
90441
|
return this;
|
|
90524
|
-
if (
|
|
90525
|
-
if (arguments.length === 0)
|
|
90526
|
-
this._events =
|
|
90527
|
-
|
|
90528
|
-
|
|
90529
|
-
if (--this._eventsCount === 0)
|
|
90530
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
90531
|
-
else
|
|
90532
|
-
delete events2[type2];
|
|
90533
|
-
}
|
|
90442
|
+
if (!this._events.removeListener) {
|
|
90443
|
+
if (arguments.length === 0)
|
|
90444
|
+
this._events = {};
|
|
90445
|
+
else if (this._events[type2])
|
|
90446
|
+
delete this._events[type2];
|
|
90534
90447
|
return this;
|
|
90535
90448
|
}
|
|
90536
90449
|
if (arguments.length === 0) {
|
|
90537
|
-
|
|
90538
|
-
var key;
|
|
90539
|
-
for (i2 = 0; i2 < keys3.length; ++i2) {
|
|
90540
|
-
key = keys3[i2];
|
|
90450
|
+
for (key in this._events) {
|
|
90541
90451
|
if (key === "removeListener")
|
|
90542
90452
|
continue;
|
|
90543
90453
|
this.removeAllListeners(key);
|
|
90544
90454
|
}
|
|
90545
90455
|
this.removeAllListeners("removeListener");
|
|
90546
|
-
this._events =
|
|
90547
|
-
this._eventsCount = 0;
|
|
90456
|
+
this._events = {};
|
|
90548
90457
|
return this;
|
|
90549
90458
|
}
|
|
90550
|
-
|
|
90551
|
-
if (
|
|
90552
|
-
this.removeListener(type2,
|
|
90553
|
-
} else if (
|
|
90554
|
-
|
|
90555
|
-
this.removeListener(type2,
|
|
90556
|
-
}
|
|
90459
|
+
listeners = this._events[type2];
|
|
90460
|
+
if (isFunction$1(listeners)) {
|
|
90461
|
+
this.removeListener(type2, listeners);
|
|
90462
|
+
} else if (listeners) {
|
|
90463
|
+
while (listeners.length)
|
|
90464
|
+
this.removeListener(type2, listeners[listeners.length - 1]);
|
|
90557
90465
|
}
|
|
90466
|
+
delete this._events[type2];
|
|
90558
90467
|
return this;
|
|
90559
90468
|
};
|
|
90560
|
-
function
|
|
90561
|
-
var
|
|
90562
|
-
if (
|
|
90563
|
-
|
|
90564
|
-
|
|
90565
|
-
|
|
90566
|
-
|
|
90567
|
-
|
|
90568
|
-
|
|
90569
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
90570
|
-
}
|
|
90571
|
-
EventEmitter.prototype.listeners = function listeners(type2) {
|
|
90572
|
-
return _listeners(this, type2, true);
|
|
90573
|
-
};
|
|
90574
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type2) {
|
|
90575
|
-
return _listeners(this, type2, false);
|
|
90576
|
-
};
|
|
90577
|
-
EventEmitter.listenerCount = function(emitter, type2) {
|
|
90578
|
-
if (typeof emitter.listenerCount === "function") {
|
|
90579
|
-
return emitter.listenerCount(type2);
|
|
90580
|
-
} else {
|
|
90581
|
-
return listenerCount.call(emitter, type2);
|
|
90582
|
-
}
|
|
90469
|
+
EventEmitter.prototype.listeners = function(type2) {
|
|
90470
|
+
var ret;
|
|
90471
|
+
if (!this._events || !this._events[type2])
|
|
90472
|
+
ret = [];
|
|
90473
|
+
else if (isFunction$1(this._events[type2]))
|
|
90474
|
+
ret = [this._events[type2]];
|
|
90475
|
+
else
|
|
90476
|
+
ret = this._events[type2].slice();
|
|
90477
|
+
return ret;
|
|
90583
90478
|
};
|
|
90584
|
-
EventEmitter.prototype.listenerCount =
|
|
90585
|
-
|
|
90586
|
-
|
|
90587
|
-
|
|
90588
|
-
var evlistener = events2[type2];
|
|
90589
|
-
if (typeof evlistener === "function") {
|
|
90479
|
+
EventEmitter.prototype.listenerCount = function(type2) {
|
|
90480
|
+
if (this._events) {
|
|
90481
|
+
var evlistener = this._events[type2];
|
|
90482
|
+
if (isFunction$1(evlistener))
|
|
90590
90483
|
return 1;
|
|
90591
|
-
|
|
90484
|
+
else if (evlistener)
|
|
90592
90485
|
return evlistener.length;
|
|
90593
|
-
}
|
|
90594
90486
|
}
|
|
90595
90487
|
return 0;
|
|
90596
|
-
}
|
|
90597
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
90598
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
90599
90488
|
};
|
|
90600
|
-
function
|
|
90601
|
-
|
|
90602
|
-
|
|
90603
|
-
|
|
90604
|
-
return
|
|
90489
|
+
EventEmitter.listenerCount = function(emitter, type2) {
|
|
90490
|
+
return emitter.listenerCount(type2);
|
|
90491
|
+
};
|
|
90492
|
+
function isFunction$1(arg) {
|
|
90493
|
+
return typeof arg === "function";
|
|
90605
90494
|
}
|
|
90606
|
-
function
|
|
90607
|
-
|
|
90608
|
-
list[index2] = list[index2 + 1];
|
|
90609
|
-
list.pop();
|
|
90495
|
+
function isNumber(arg) {
|
|
90496
|
+
return typeof arg === "number";
|
|
90610
90497
|
}
|
|
90611
|
-
function
|
|
90612
|
-
|
|
90613
|
-
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
90614
|
-
ret[i2] = arr[i2].listener || arr[i2];
|
|
90615
|
-
}
|
|
90616
|
-
return ret;
|
|
90498
|
+
function isObject$1(arg) {
|
|
90499
|
+
return typeof arg === "object" && arg !== null;
|
|
90617
90500
|
}
|
|
90618
|
-
function
|
|
90619
|
-
return
|
|
90620
|
-
function errorListener(err2) {
|
|
90621
|
-
emitter.removeListener(name2, resolver);
|
|
90622
|
-
reject(err2);
|
|
90623
|
-
}
|
|
90624
|
-
function resolver() {
|
|
90625
|
-
if (typeof emitter.removeListener === "function") {
|
|
90626
|
-
emitter.removeListener("error", errorListener);
|
|
90627
|
-
}
|
|
90628
|
-
resolve([].slice.call(arguments));
|
|
90629
|
-
}
|
|
90630
|
-
eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
|
|
90631
|
-
if (name2 !== "error") {
|
|
90632
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
90633
|
-
}
|
|
90634
|
-
});
|
|
90635
|
-
}
|
|
90636
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
|
|
90637
|
-
if (typeof emitter.on === "function") {
|
|
90638
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
|
|
90639
|
-
}
|
|
90640
|
-
}
|
|
90641
|
-
function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
|
|
90642
|
-
if (typeof emitter.on === "function") {
|
|
90643
|
-
if (flags3.once) {
|
|
90644
|
-
emitter.once(name2, listener);
|
|
90645
|
-
} else {
|
|
90646
|
-
emitter.on(name2, listener);
|
|
90647
|
-
}
|
|
90648
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
90649
|
-
emitter.addEventListener(name2, function wrapListener(arg) {
|
|
90650
|
-
if (flags3.once) {
|
|
90651
|
-
emitter.removeEventListener(name2, wrapListener);
|
|
90652
|
-
}
|
|
90653
|
-
listener(arg);
|
|
90654
|
-
});
|
|
90655
|
-
} else {
|
|
90656
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
90657
|
-
}
|
|
90501
|
+
function isUndefined(arg) {
|
|
90502
|
+
return arg === void 0;
|
|
90658
90503
|
}
|
|
90659
|
-
var eventsExports = events.exports;
|
|
90660
90504
|
var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
90661
90505
|
var rnds8 = new Uint8Array(16);
|
|
90662
90506
|
function rng() {
|
|
@@ -91022,7 +90866,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
|
|
|
91022
90866
|
value: true
|
|
91023
90867
|
});
|
|
91024
90868
|
exports2["default"] = void 0;
|
|
91025
|
-
var _events = _interopRequireDefault2(
|
|
90869
|
+
var _events = _interopRequireDefault2(events);
|
|
91026
90870
|
var _uuid = _interopRequireDefault2(require$$1$3);
|
|
91027
90871
|
function _interopRequireDefault2(obj) {
|
|
91028
90872
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -91506,7 +91350,7 @@ function rhumbDistance$2(from, to, options) {
|
|
|
91506
91350
|
}
|
|
91507
91351
|
function calculateRhumbDistance(origin, destination2, radius) {
|
|
91508
91352
|
radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
|
|
91509
|
-
var
|
|
91353
|
+
var R = radius;
|
|
91510
91354
|
var phi12 = origin[1] * Math.PI / 180;
|
|
91511
91355
|
var phi2 = destination2[1] * Math.PI / 180;
|
|
91512
91356
|
var DeltaPhi = phi2 - phi12;
|
|
@@ -91517,7 +91361,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
|
|
|
91517
91361
|
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
|
|
91518
91362
|
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
|
|
91519
91363
|
var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
|
|
91520
|
-
var dist = delta *
|
|
91364
|
+
var dist = delta * R;
|
|
91521
91365
|
return dist;
|
|
91522
91366
|
}
|
|
91523
91367
|
js$f.default = rhumbDistance$2;
|
|
@@ -106064,7 +105908,7 @@ var document_1 = doccy;
|
|
|
106064
105908
|
value: true
|
|
106065
105909
|
});
|
|
106066
105910
|
exports2["default"] = void 0;
|
|
106067
|
-
var _events =
|
|
105911
|
+
var _events = events;
|
|
106068
105912
|
var _document = _interopRequireDefault2(document_1);
|
|
106069
105913
|
var _core = require$$2$2;
|
|
106070
105914
|
var _deckDrawer = _interopRequireDefault2(deckDrawer);
|
|
@@ -108019,16 +107863,16 @@ function addDecoder(cases, importFn) {
|
|
|
108019
107863
|
}
|
|
108020
107864
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
108021
107865
|
}
|
|
108022
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
108023
|
-
addDecoder(5, () => import("./lzw-
|
|
107866
|
+
addDecoder([void 0, 1], () => import("./raw-8e26cce5.js").then((m2) => m2.default));
|
|
107867
|
+
addDecoder(5, () => import("./lzw-cdee9c4e.js").then((m2) => m2.default));
|
|
108024
107868
|
addDecoder(6, () => {
|
|
108025
107869
|
throw new Error("old style JPEG compression is not supported.");
|
|
108026
107870
|
});
|
|
108027
|
-
addDecoder(7, () => import("./jpeg-
|
|
108028
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
108029
|
-
addDecoder(32773, () => import("./packbits-
|
|
108030
|
-
addDecoder(34887, () => import("./lerc-
|
|
108031
|
-
addDecoder(50001, () => import("./webimage-
|
|
107871
|
+
addDecoder(7, () => import("./jpeg-6a951bc6.js").then((m2) => m2.default));
|
|
107872
|
+
addDecoder([8, 32946], () => import("./deflate-485af92e.js").then((m2) => m2.default));
|
|
107873
|
+
addDecoder(32773, () => import("./packbits-7bc2030b.js").then((m2) => m2.default));
|
|
107874
|
+
addDecoder(34887, () => import("./lerc-36211a81.js").then((m2) => m2.default));
|
|
107875
|
+
addDecoder(50001, () => import("./webimage-d457d41a.js").then((m2) => m2.default));
|
|
108032
107876
|
function decodeRowAcc(row, stride) {
|
|
108033
107877
|
let length2 = row.length - stride;
|
|
108034
107878
|
let offset5 = 0;
|
|
@@ -111805,16 +111649,16 @@ createCommonjsModule(function(module2) {
|
|
|
111805
111649
|
if (!new Events().__proto__)
|
|
111806
111650
|
prefix2 = false;
|
|
111807
111651
|
}
|
|
111808
|
-
function EE(fn, context,
|
|
111652
|
+
function EE(fn, context, once) {
|
|
111809
111653
|
this.fn = fn;
|
|
111810
111654
|
this.context = context;
|
|
111811
|
-
this.once =
|
|
111655
|
+
this.once = once || false;
|
|
111812
111656
|
}
|
|
111813
|
-
function
|
|
111657
|
+
function addListener(emitter, event, fn, context, once) {
|
|
111814
111658
|
if (typeof fn !== "function") {
|
|
111815
111659
|
throw new TypeError("The listener must be a function");
|
|
111816
111660
|
}
|
|
111817
|
-
var listener = new EE(fn, context || emitter,
|
|
111661
|
+
var listener = new EE(fn, context || emitter, once), evt = prefix2 ? prefix2 + event : event;
|
|
111818
111662
|
if (!emitter._events[evt])
|
|
111819
111663
|
emitter._events[evt] = listener, emitter._eventsCount++;
|
|
111820
111664
|
else if (!emitter._events[evt].fn)
|
|
@@ -111833,7 +111677,7 @@ createCommonjsModule(function(module2) {
|
|
|
111833
111677
|
this._events = new Events();
|
|
111834
111678
|
this._eventsCount = 0;
|
|
111835
111679
|
}
|
|
111836
|
-
EventEmitter2.prototype.eventNames = function
|
|
111680
|
+
EventEmitter2.prototype.eventNames = function eventNames() {
|
|
111837
111681
|
var names = [], events2, name2;
|
|
111838
111682
|
if (this._eventsCount === 0)
|
|
111839
111683
|
return names;
|
|
@@ -111846,7 +111690,7 @@ createCommonjsModule(function(module2) {
|
|
|
111846
111690
|
}
|
|
111847
111691
|
return names;
|
|
111848
111692
|
};
|
|
111849
|
-
EventEmitter2.prototype.listeners = function
|
|
111693
|
+
EventEmitter2.prototype.listeners = function listeners(event) {
|
|
111850
111694
|
var evt = prefix2 ? prefix2 + event : event, handlers = this._events[evt];
|
|
111851
111695
|
if (!handlers)
|
|
111852
111696
|
return [];
|
|
@@ -111857,76 +111701,76 @@ createCommonjsModule(function(module2) {
|
|
|
111857
111701
|
}
|
|
111858
111702
|
return ee;
|
|
111859
111703
|
};
|
|
111860
|
-
EventEmitter2.prototype.listenerCount = function
|
|
111861
|
-
var evt = prefix2 ? prefix2 + event : event,
|
|
111862
|
-
if (!
|
|
111704
|
+
EventEmitter2.prototype.listenerCount = function listenerCount(event) {
|
|
111705
|
+
var evt = prefix2 ? prefix2 + event : event, listeners = this._events[evt];
|
|
111706
|
+
if (!listeners)
|
|
111863
111707
|
return 0;
|
|
111864
|
-
if (
|
|
111708
|
+
if (listeners.fn)
|
|
111865
111709
|
return 1;
|
|
111866
|
-
return
|
|
111710
|
+
return listeners.length;
|
|
111867
111711
|
};
|
|
111868
|
-
EventEmitter2.prototype.emit = function
|
|
111712
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
111869
111713
|
var evt = prefix2 ? prefix2 + event : event;
|
|
111870
111714
|
if (!this._events[evt])
|
|
111871
111715
|
return false;
|
|
111872
|
-
var
|
|
111873
|
-
if (
|
|
111874
|
-
if (
|
|
111875
|
-
this.removeListener(event,
|
|
111716
|
+
var listeners = this._events[evt], len2 = arguments.length, args, i2;
|
|
111717
|
+
if (listeners.fn) {
|
|
111718
|
+
if (listeners.once)
|
|
111719
|
+
this.removeListener(event, listeners.fn, void 0, true);
|
|
111876
111720
|
switch (len2) {
|
|
111877
111721
|
case 1:
|
|
111878
|
-
return
|
|
111722
|
+
return listeners.fn.call(listeners.context), true;
|
|
111879
111723
|
case 2:
|
|
111880
|
-
return
|
|
111724
|
+
return listeners.fn.call(listeners.context, a1), true;
|
|
111881
111725
|
case 3:
|
|
111882
|
-
return
|
|
111726
|
+
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
111883
111727
|
case 4:
|
|
111884
|
-
return
|
|
111728
|
+
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
111885
111729
|
case 5:
|
|
111886
|
-
return
|
|
111730
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
111887
111731
|
case 6:
|
|
111888
|
-
return
|
|
111732
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
111889
111733
|
}
|
|
111890
111734
|
for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
|
|
111891
111735
|
args[i2 - 1] = arguments[i2];
|
|
111892
111736
|
}
|
|
111893
|
-
|
|
111737
|
+
listeners.fn.apply(listeners.context, args);
|
|
111894
111738
|
} else {
|
|
111895
|
-
var length2 =
|
|
111739
|
+
var length2 = listeners.length, j;
|
|
111896
111740
|
for (i2 = 0; i2 < length2; i2++) {
|
|
111897
|
-
if (
|
|
111898
|
-
this.removeListener(event,
|
|
111741
|
+
if (listeners[i2].once)
|
|
111742
|
+
this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
111899
111743
|
switch (len2) {
|
|
111900
111744
|
case 1:
|
|
111901
|
-
|
|
111745
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
111902
111746
|
break;
|
|
111903
111747
|
case 2:
|
|
111904
|
-
|
|
111748
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
111905
111749
|
break;
|
|
111906
111750
|
case 3:
|
|
111907
|
-
|
|
111751
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
111908
111752
|
break;
|
|
111909
111753
|
case 4:
|
|
111910
|
-
|
|
111754
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
|
|
111911
111755
|
break;
|
|
111912
111756
|
default:
|
|
111913
111757
|
if (!args)
|
|
111914
111758
|
for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
|
|
111915
111759
|
args[j - 1] = arguments[j];
|
|
111916
111760
|
}
|
|
111917
|
-
|
|
111761
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
111918
111762
|
}
|
|
111919
111763
|
}
|
|
111920
111764
|
}
|
|
111921
111765
|
return true;
|
|
111922
111766
|
};
|
|
111923
111767
|
EventEmitter2.prototype.on = function on(event, fn, context) {
|
|
111924
|
-
return
|
|
111768
|
+
return addListener(this, event, fn, context, false);
|
|
111925
111769
|
};
|
|
111926
|
-
EventEmitter2.prototype.once = function
|
|
111927
|
-
return
|
|
111770
|
+
EventEmitter2.prototype.once = function once(event, fn, context) {
|
|
111771
|
+
return addListener(this, event, fn, context, true);
|
|
111928
111772
|
};
|
|
111929
|
-
EventEmitter2.prototype.removeListener = function
|
|
111773
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
|
|
111930
111774
|
var evt = prefix2 ? prefix2 + event : event;
|
|
111931
111775
|
if (!this._events[evt])
|
|
111932
111776
|
return this;
|
|
@@ -111934,15 +111778,15 @@ createCommonjsModule(function(module2) {
|
|
|
111934
111778
|
clearEvent(this, evt);
|
|
111935
111779
|
return this;
|
|
111936
111780
|
}
|
|
111937
|
-
var
|
|
111938
|
-
if (
|
|
111939
|
-
if (
|
|
111781
|
+
var listeners = this._events[evt];
|
|
111782
|
+
if (listeners.fn) {
|
|
111783
|
+
if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
|
|
111940
111784
|
clearEvent(this, evt);
|
|
111941
111785
|
}
|
|
111942
111786
|
} else {
|
|
111943
|
-
for (var i2 = 0, events2 = [], length2 =
|
|
111944
|
-
if (
|
|
111945
|
-
events2.push(
|
|
111787
|
+
for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
|
|
111788
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
111789
|
+
events2.push(listeners[i2]);
|
|
111946
111790
|
}
|
|
111947
111791
|
}
|
|
111948
111792
|
if (events2.length)
|
|
@@ -111952,7 +111796,7 @@ createCommonjsModule(function(module2) {
|
|
|
111952
111796
|
}
|
|
111953
111797
|
return this;
|
|
111954
111798
|
};
|
|
111955
|
-
EventEmitter2.prototype.removeAllListeners = function
|
|
111799
|
+
EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
111956
111800
|
var evt;
|
|
111957
111801
|
if (event) {
|
|
111958
111802
|
evt = prefix2 ? prefix2 + event : event;
|
|
@@ -116435,7 +116279,7 @@ var blosc_codec = function() {
|
|
|
116435
116279
|
b += Ga[z[a2++]];
|
|
116436
116280
|
return b;
|
|
116437
116281
|
}
|
|
116438
|
-
var Q2 = {},
|
|
116282
|
+
var Q2 = {}, R = {}, S = {};
|
|
116439
116283
|
function Ha(a2) {
|
|
116440
116284
|
if (void 0 === a2)
|
|
116441
116285
|
return "_unknown";
|
|
@@ -116480,8 +116324,8 @@ var blosc_codec = function() {
|
|
|
116480
116324
|
});
|
|
116481
116325
|
var e2 = Array(a2.length), g2 = [], k = 0;
|
|
116482
116326
|
a2.forEach(function(h, l2) {
|
|
116483
|
-
|
|
116484
|
-
e2[l2] =
|
|
116327
|
+
R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
|
|
116328
|
+
e2[l2] = R[h];
|
|
116485
116329
|
++k;
|
|
116486
116330
|
k === g2.length && c2(e2);
|
|
116487
116331
|
}));
|
|
@@ -116494,12 +116338,12 @@ var blosc_codec = function() {
|
|
|
116494
116338
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
116495
116339
|
var d = b.name;
|
|
116496
116340
|
a2 || T('type "' + d + '" must have a positive integer typeid pointer');
|
|
116497
|
-
if (
|
|
116341
|
+
if (R.hasOwnProperty(a2)) {
|
|
116498
116342
|
if (c2.U)
|
|
116499
116343
|
return;
|
|
116500
116344
|
T("Cannot register type '" + d + "' twice");
|
|
116501
116345
|
}
|
|
116502
|
-
|
|
116346
|
+
R[a2] = b;
|
|
116503
116347
|
delete S[a2];
|
|
116504
116348
|
Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
|
|
116505
116349
|
e2();
|
|
@@ -116612,7 +116456,7 @@ var blosc_codec = function() {
|
|
|
116612
116456
|
}
|
|
116613
116457
|
function eb(a2, b) {
|
|
116614
116458
|
function c2(g2) {
|
|
116615
|
-
e2[g2] ||
|
|
116459
|
+
e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c2) : (d.push(g2), e2[g2] = true));
|
|
116616
116460
|
}
|
|
116617
116461
|
var d = [], e2 = {};
|
|
116618
116462
|
b.forEach(c2);
|
|
@@ -116900,7 +116744,7 @@ var blosc_codec = function() {
|
|
|
116900
116744
|
}, n: Qa, x: function(a2) {
|
|
116901
116745
|
4 < a2 && (V[a2].P += 1);
|
|
116902
116746
|
}, C: function(a2, b) {
|
|
116903
|
-
var c2 =
|
|
116747
|
+
var c2 = R[a2];
|
|
116904
116748
|
void 0 === c2 && T("_emval_take_value has unknown type " + cb(a2));
|
|
116905
116749
|
a2 = c2.readValueFromPointer(b);
|
|
116906
116750
|
return Ra(a2);
|
|
@@ -121704,6 +121548,258 @@ function max(values2, valueof) {
|
|
|
121704
121548
|
}
|
|
121705
121549
|
return max2;
|
|
121706
121550
|
}
|
|
121551
|
+
var loglevel = { exports: {} };
|
|
121552
|
+
(function(module2) {
|
|
121553
|
+
(function(root2, definition) {
|
|
121554
|
+
if (module2.exports) {
|
|
121555
|
+
module2.exports = definition();
|
|
121556
|
+
} else {
|
|
121557
|
+
root2.log = definition();
|
|
121558
|
+
}
|
|
121559
|
+
})(commonjsGlobal, function() {
|
|
121560
|
+
var noop2 = function() {
|
|
121561
|
+
};
|
|
121562
|
+
var undefinedType = "undefined";
|
|
121563
|
+
var isIE2 = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
121564
|
+
var logMethods = [
|
|
121565
|
+
"trace",
|
|
121566
|
+
"debug",
|
|
121567
|
+
"info",
|
|
121568
|
+
"warn",
|
|
121569
|
+
"error"
|
|
121570
|
+
];
|
|
121571
|
+
var _loggersByName = {};
|
|
121572
|
+
var defaultLogger = null;
|
|
121573
|
+
function bindMethod(obj, methodName) {
|
|
121574
|
+
var method = obj[methodName];
|
|
121575
|
+
if (typeof method.bind === "function") {
|
|
121576
|
+
return method.bind(obj);
|
|
121577
|
+
} else {
|
|
121578
|
+
try {
|
|
121579
|
+
return Function.prototype.bind.call(method, obj);
|
|
121580
|
+
} catch (e2) {
|
|
121581
|
+
return function() {
|
|
121582
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
121583
|
+
};
|
|
121584
|
+
}
|
|
121585
|
+
}
|
|
121586
|
+
}
|
|
121587
|
+
function traceForIE() {
|
|
121588
|
+
if (console.log) {
|
|
121589
|
+
if (console.log.apply) {
|
|
121590
|
+
console.log.apply(console, arguments);
|
|
121591
|
+
} else {
|
|
121592
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
121593
|
+
}
|
|
121594
|
+
}
|
|
121595
|
+
if (console.trace)
|
|
121596
|
+
console.trace();
|
|
121597
|
+
}
|
|
121598
|
+
function realMethod(methodName) {
|
|
121599
|
+
if (methodName === "debug") {
|
|
121600
|
+
methodName = "log";
|
|
121601
|
+
}
|
|
121602
|
+
if (typeof console === undefinedType) {
|
|
121603
|
+
return false;
|
|
121604
|
+
} else if (methodName === "trace" && isIE2) {
|
|
121605
|
+
return traceForIE;
|
|
121606
|
+
} else if (console[methodName] !== void 0) {
|
|
121607
|
+
return bindMethod(console, methodName);
|
|
121608
|
+
} else if (console.log !== void 0) {
|
|
121609
|
+
return bindMethod(console, "log");
|
|
121610
|
+
} else {
|
|
121611
|
+
return noop2;
|
|
121612
|
+
}
|
|
121613
|
+
}
|
|
121614
|
+
function replaceLoggingMethods() {
|
|
121615
|
+
var level = this.getLevel();
|
|
121616
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
121617
|
+
var methodName = logMethods[i2];
|
|
121618
|
+
this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
|
|
121619
|
+
}
|
|
121620
|
+
this.log = this.debug;
|
|
121621
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
121622
|
+
return "No console available for logging";
|
|
121623
|
+
}
|
|
121624
|
+
}
|
|
121625
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
121626
|
+
return function() {
|
|
121627
|
+
if (typeof console !== undefinedType) {
|
|
121628
|
+
replaceLoggingMethods.call(this);
|
|
121629
|
+
this[methodName].apply(this, arguments);
|
|
121630
|
+
}
|
|
121631
|
+
};
|
|
121632
|
+
}
|
|
121633
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
121634
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
121635
|
+
}
|
|
121636
|
+
function Logger(name2, factory) {
|
|
121637
|
+
var self2 = this;
|
|
121638
|
+
var inheritedLevel;
|
|
121639
|
+
var defaultLevel;
|
|
121640
|
+
var userLevel;
|
|
121641
|
+
var storageKey = "loglevel";
|
|
121642
|
+
if (typeof name2 === "string") {
|
|
121643
|
+
storageKey += ":" + name2;
|
|
121644
|
+
} else if (typeof name2 === "symbol") {
|
|
121645
|
+
storageKey = void 0;
|
|
121646
|
+
}
|
|
121647
|
+
function persistLevelIfPossible(levelNum) {
|
|
121648
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
121649
|
+
if (typeof window === undefinedType || !storageKey)
|
|
121650
|
+
return;
|
|
121651
|
+
try {
|
|
121652
|
+
window.localStorage[storageKey] = levelName;
|
|
121653
|
+
return;
|
|
121654
|
+
} catch (ignore) {
|
|
121655
|
+
}
|
|
121656
|
+
try {
|
|
121657
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
121658
|
+
} catch (ignore) {
|
|
121659
|
+
}
|
|
121660
|
+
}
|
|
121661
|
+
function getPersistedLevel() {
|
|
121662
|
+
var storedLevel;
|
|
121663
|
+
if (typeof window === undefinedType || !storageKey)
|
|
121664
|
+
return;
|
|
121665
|
+
try {
|
|
121666
|
+
storedLevel = window.localStorage[storageKey];
|
|
121667
|
+
} catch (ignore) {
|
|
121668
|
+
}
|
|
121669
|
+
if (typeof storedLevel === undefinedType) {
|
|
121670
|
+
try {
|
|
121671
|
+
var cookie = window.document.cookie;
|
|
121672
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
121673
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
121674
|
+
if (location !== -1) {
|
|
121675
|
+
storedLevel = /^([^;]+)/.exec(
|
|
121676
|
+
cookie.slice(location + cookieName.length + 1)
|
|
121677
|
+
)[1];
|
|
121678
|
+
}
|
|
121679
|
+
} catch (ignore) {
|
|
121680
|
+
}
|
|
121681
|
+
}
|
|
121682
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
121683
|
+
storedLevel = void 0;
|
|
121684
|
+
}
|
|
121685
|
+
return storedLevel;
|
|
121686
|
+
}
|
|
121687
|
+
function clearPersistedLevel() {
|
|
121688
|
+
if (typeof window === undefinedType || !storageKey)
|
|
121689
|
+
return;
|
|
121690
|
+
try {
|
|
121691
|
+
window.localStorage.removeItem(storageKey);
|
|
121692
|
+
} catch (ignore) {
|
|
121693
|
+
}
|
|
121694
|
+
try {
|
|
121695
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
121696
|
+
} catch (ignore) {
|
|
121697
|
+
}
|
|
121698
|
+
}
|
|
121699
|
+
function normalizeLevel(input) {
|
|
121700
|
+
var level = input;
|
|
121701
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
121702
|
+
level = self2.levels[level.toUpperCase()];
|
|
121703
|
+
}
|
|
121704
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
121705
|
+
return level;
|
|
121706
|
+
} else {
|
|
121707
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
121708
|
+
}
|
|
121709
|
+
}
|
|
121710
|
+
self2.name = name2;
|
|
121711
|
+
self2.levels = {
|
|
121712
|
+
"TRACE": 0,
|
|
121713
|
+
"DEBUG": 1,
|
|
121714
|
+
"INFO": 2,
|
|
121715
|
+
"WARN": 3,
|
|
121716
|
+
"ERROR": 4,
|
|
121717
|
+
"SILENT": 5
|
|
121718
|
+
};
|
|
121719
|
+
self2.methodFactory = factory || defaultMethodFactory;
|
|
121720
|
+
self2.getLevel = function() {
|
|
121721
|
+
if (userLevel != null) {
|
|
121722
|
+
return userLevel;
|
|
121723
|
+
} else if (defaultLevel != null) {
|
|
121724
|
+
return defaultLevel;
|
|
121725
|
+
} else {
|
|
121726
|
+
return inheritedLevel;
|
|
121727
|
+
}
|
|
121728
|
+
};
|
|
121729
|
+
self2.setLevel = function(level, persist) {
|
|
121730
|
+
userLevel = normalizeLevel(level);
|
|
121731
|
+
if (persist !== false) {
|
|
121732
|
+
persistLevelIfPossible(userLevel);
|
|
121733
|
+
}
|
|
121734
|
+
return replaceLoggingMethods.call(self2);
|
|
121735
|
+
};
|
|
121736
|
+
self2.setDefaultLevel = function(level) {
|
|
121737
|
+
defaultLevel = normalizeLevel(level);
|
|
121738
|
+
if (!getPersistedLevel()) {
|
|
121739
|
+
self2.setLevel(level, false);
|
|
121740
|
+
}
|
|
121741
|
+
};
|
|
121742
|
+
self2.resetLevel = function() {
|
|
121743
|
+
userLevel = null;
|
|
121744
|
+
clearPersistedLevel();
|
|
121745
|
+
replaceLoggingMethods.call(self2);
|
|
121746
|
+
};
|
|
121747
|
+
self2.enableAll = function(persist) {
|
|
121748
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
121749
|
+
};
|
|
121750
|
+
self2.disableAll = function(persist) {
|
|
121751
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
121752
|
+
};
|
|
121753
|
+
self2.rebuild = function() {
|
|
121754
|
+
if (defaultLogger !== self2) {
|
|
121755
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
121756
|
+
}
|
|
121757
|
+
replaceLoggingMethods.call(self2);
|
|
121758
|
+
if (defaultLogger === self2) {
|
|
121759
|
+
for (var childName in _loggersByName) {
|
|
121760
|
+
_loggersByName[childName].rebuild();
|
|
121761
|
+
}
|
|
121762
|
+
}
|
|
121763
|
+
};
|
|
121764
|
+
inheritedLevel = normalizeLevel(
|
|
121765
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
121766
|
+
);
|
|
121767
|
+
var initialLevel = getPersistedLevel();
|
|
121768
|
+
if (initialLevel != null) {
|
|
121769
|
+
userLevel = normalizeLevel(initialLevel);
|
|
121770
|
+
}
|
|
121771
|
+
replaceLoggingMethods.call(self2);
|
|
121772
|
+
}
|
|
121773
|
+
defaultLogger = new Logger();
|
|
121774
|
+
defaultLogger.getLogger = function getLogger(name2) {
|
|
121775
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
121776
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
121777
|
+
}
|
|
121778
|
+
var logger = _loggersByName[name2];
|
|
121779
|
+
if (!logger) {
|
|
121780
|
+
logger = _loggersByName[name2] = new Logger(
|
|
121781
|
+
name2,
|
|
121782
|
+
defaultLogger.methodFactory
|
|
121783
|
+
);
|
|
121784
|
+
}
|
|
121785
|
+
return logger;
|
|
121786
|
+
};
|
|
121787
|
+
var _log = typeof window !== undefinedType ? window.log : void 0;
|
|
121788
|
+
defaultLogger.noConflict = function() {
|
|
121789
|
+
if (typeof window !== undefinedType && window.log === defaultLogger) {
|
|
121790
|
+
window.log = _log;
|
|
121791
|
+
}
|
|
121792
|
+
return defaultLogger;
|
|
121793
|
+
};
|
|
121794
|
+
defaultLogger.getLoggers = function getLoggers2() {
|
|
121795
|
+
return _loggersByName;
|
|
121796
|
+
};
|
|
121797
|
+
defaultLogger["default"] = defaultLogger;
|
|
121798
|
+
return defaultLogger;
|
|
121799
|
+
});
|
|
121800
|
+
})(loglevel);
|
|
121801
|
+
var loglevelExports = loglevel.exports;
|
|
121802
|
+
const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
121707
121803
|
function normalize(arr) {
|
|
121708
121804
|
const [min, max2] = extent(arr);
|
|
121709
121805
|
const ratio = 255 / (max2 - min);
|
|
@@ -121725,10 +121821,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
121725
121821
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
121726
121822
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
121727
121823
|
if (valueTexHeight > texSize) {
|
|
121728
|
-
|
|
121824
|
+
log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
121729
121825
|
}
|
|
121730
121826
|
if (colorTexHeight > texSize) {
|
|
121731
|
-
|
|
121827
|
+
log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
121732
121828
|
}
|
|
121733
121829
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
121734
121830
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|