@vitessce/ome-tiff 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-5158a038.js → deflate-b1b7c1a5.js} +1 -1
- package/dist/{index-f73347bc.js → index-c19c356d.js} +647 -551
- package/dist/index.js +1 -1
- package/dist/{jpeg-99d7b315.js → jpeg-a1a70411.js} +1 -1
- package/dist/{lerc-d7d1e916.js → lerc-a64aa667.js} +1 -1
- package/dist/{lzw-d4b8181c.js → lzw-70ab864e.js} +1 -1
- package/dist/{packbits-4ae9e6b5.js → packbits-fc34d3c1.js} +1 -1
- package/dist/{raw-7ef75647.js → raw-2e3daaf5.js} +1 -1
- package/dist/{webimage-cce70aeb.js → webimage-8b6eefe8.js} +1 -1
- package/package.json +9 -9
|
@@ -1102,16 +1102,16 @@ function dirname(url) {
|
|
|
1102
1102
|
return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
|
|
1103
1103
|
}
|
|
1104
1104
|
const isBoolean$1 = (x2) => typeof x2 === "boolean";
|
|
1105
|
-
const isFunction$
|
|
1106
|
-
const isObject$
|
|
1107
|
-
const isPureObject = (x2) => isObject$
|
|
1105
|
+
const isFunction$4 = (x2) => typeof x2 === "function";
|
|
1106
|
+
const isObject$6 = (x2) => x2 !== null && typeof x2 === "object";
|
|
1107
|
+
const isPureObject = (x2) => isObject$6(x2) && x2.constructor === {}.constructor;
|
|
1108
1108
|
const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
|
|
1109
1109
|
const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
|
|
1110
1110
|
const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
|
|
1111
1111
|
const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
|
|
1112
1112
|
const isBuffer$3 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
|
|
1113
|
-
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$
|
|
1114
|
-
const isReadableNodeStream = (x2) => isObject$
|
|
1113
|
+
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$6(x2) && isFunction$4(x2.tee) && isFunction$4(x2.cancel) && isFunction$4(x2.getReader);
|
|
1114
|
+
const isReadableNodeStream = (x2) => isObject$6(x2) && isFunction$4(x2.read) && isFunction$4(x2.pipe) && isBoolean$1(x2.readable);
|
|
1115
1115
|
const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
|
|
1116
1116
|
const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
|
|
1117
1117
|
const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
|
|
@@ -1911,7 +1911,7 @@ function getFetchFunction(options, context) {
|
|
|
1911
1911
|
if (typeof fetchOptions.fetch === "function") {
|
|
1912
1912
|
return fetchOptions.fetch;
|
|
1913
1913
|
}
|
|
1914
|
-
if (isObject$
|
|
1914
|
+
if (isObject$6(fetchOptions.fetch)) {
|
|
1915
1915
|
return (url) => fetchFile(url, fetchOptions);
|
|
1916
1916
|
}
|
|
1917
1917
|
if (context !== null && context !== void 0 && context.fetch) {
|
|
@@ -1932,7 +1932,7 @@ function validateOptionsObject(options, id, defaultOptions, deprecatedOptions, l
|
|
|
1932
1932
|
const loaderName = id || "Top level";
|
|
1933
1933
|
const prefix = id ? "".concat(id, ".") : "";
|
|
1934
1934
|
for (const key in options) {
|
|
1935
|
-
const isSubOptions = !id && isObject$
|
|
1935
|
+
const isSubOptions = !id && isObject$6(options[key]);
|
|
1936
1936
|
const isBaseUriOption = key === "baseUri" && !id;
|
|
1937
1937
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
1938
1938
|
if (!(key in defaultOptions) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
@@ -2048,7 +2048,7 @@ function registerLoaders(loaders) {
|
|
|
2048
2048
|
function getRegisteredLoaders() {
|
|
2049
2049
|
return getGlobalLoaderRegistry();
|
|
2050
2050
|
}
|
|
2051
|
-
const log$
|
|
2051
|
+
const log$6 = new Log({
|
|
2052
2052
|
id: "loaders.gl"
|
|
2053
2053
|
});
|
|
2054
2054
|
const EXT_PATTERN = /\.([^.]+)$/;
|
|
@@ -2115,7 +2115,7 @@ function selectLoaderInternal(data, loaders, options, context) {
|
|
|
2115
2115
|
reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
|
|
2116
2116
|
if (reason) {
|
|
2117
2117
|
var _loader;
|
|
2118
|
-
log$
|
|
2118
|
+
log$6.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
|
|
2119
2119
|
}
|
|
2120
2120
|
return loader;
|
|
2121
2121
|
}
|
|
@@ -2840,7 +2840,7 @@ function checkWebPSupport() {
|
|
|
2840
2840
|
return false;
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
|
-
const log$
|
|
2843
|
+
const log$5 = new Log({
|
|
2844
2844
|
id: "deck"
|
|
2845
2845
|
});
|
|
2846
2846
|
const logState = {
|
|
@@ -2942,13 +2942,13 @@ const getLoggers = (log3) => ({
|
|
|
2942
2942
|
});
|
|
2943
2943
|
let loggers = {};
|
|
2944
2944
|
{
|
|
2945
|
-
loggers = getLoggers(log$
|
|
2945
|
+
loggers = getLoggers(log$5);
|
|
2946
2946
|
}
|
|
2947
2947
|
function register(handlers) {
|
|
2948
2948
|
loggers = handlers;
|
|
2949
2949
|
}
|
|
2950
2950
|
function debug(eventType, arg1, arg2, arg3) {
|
|
2951
|
-
if (log$
|
|
2951
|
+
if (log$5.level > 0 && loggers[eventType]) {
|
|
2952
2952
|
loggers[eventType].call(null, arg1, arg2, arg3);
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
@@ -2974,12 +2974,12 @@ if (existingVersion && existingVersion !== version) {
|
|
|
2974
2974
|
throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion, " vs ").concat(version));
|
|
2975
2975
|
}
|
|
2976
2976
|
if (!existingVersion) {
|
|
2977
|
-
log$
|
|
2977
|
+
log$5.log(1, "deck.gl ".concat(version))();
|
|
2978
2978
|
globalThis.deck = {
|
|
2979
2979
|
...globalThis.deck,
|
|
2980
2980
|
VERSION: version,
|
|
2981
2981
|
version,
|
|
2982
|
-
log: log$
|
|
2982
|
+
log: log$5,
|
|
2983
2983
|
_registerLoggers: register
|
|
2984
2984
|
};
|
|
2985
2985
|
registerLoaders([jsonLoader, [ImageLoader, {
|
|
@@ -2989,7 +2989,7 @@ if (!existingVersion) {
|
|
|
2989
2989
|
}]]);
|
|
2990
2990
|
}
|
|
2991
2991
|
const deckGlobal = globalThis.deck;
|
|
2992
|
-
const log$
|
|
2992
|
+
const log$4 = new Log({
|
|
2993
2993
|
id: "luma.gl"
|
|
2994
2994
|
});
|
|
2995
2995
|
function assert$a(condition, message) {
|
|
@@ -3031,7 +3031,7 @@ function error(msg) {
|
|
|
3031
3031
|
globalThis.console.error(msg);
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
|
-
function log$
|
|
3034
|
+
function log$3(msg) {
|
|
3035
3035
|
if (globalThis.console && globalThis.console.log) {
|
|
3036
3036
|
globalThis.console.log(msg);
|
|
3037
3037
|
}
|
|
@@ -3172,7 +3172,7 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
|
|
|
3172
3172
|
}
|
|
3173
3173
|
if (gl.canvas) {
|
|
3174
3174
|
gl.canvas.addEventListener("webglcontextrestored", () => {
|
|
3175
|
-
log$
|
|
3175
|
+
log$3("OESVertexArrayObject emulation library context restored");
|
|
3176
3176
|
self2.reset_();
|
|
3177
3177
|
}, true);
|
|
3178
3178
|
}
|
|
@@ -4281,16 +4281,16 @@ function instrumentGLContext(gl) {
|
|
|
4281
4281
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4282
4282
|
args[_key] = arguments[_key];
|
|
4283
4283
|
}
|
|
4284
|
-
return log$
|
|
4284
|
+
return log$4.log(1, ...args)();
|
|
4285
4285
|
}
|
|
4286
4286
|
});
|
|
4287
4287
|
}
|
|
4288
4288
|
if (isBrowser && debug2) {
|
|
4289
4289
|
if (!globalThis.makeDebugContext) {
|
|
4290
|
-
log$
|
|
4290
|
+
log$4.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
|
|
4291
4291
|
} else {
|
|
4292
4292
|
gl = globalThis.makeDebugContext(gl, options);
|
|
4293
|
-
log$
|
|
4293
|
+
log$4.level = Math.max(log$4.level, 1);
|
|
4294
4294
|
}
|
|
4295
4295
|
}
|
|
4296
4296
|
gl._instrumented = true;
|
|
@@ -4385,7 +4385,7 @@ function logInfo(gl) {
|
|
|
4385
4385
|
const info = getContextDebugInfo(gl);
|
|
4386
4386
|
const driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : "";
|
|
4387
4387
|
const debug2 = gl.debug ? " debug" : "";
|
|
4388
|
-
log$
|
|
4388
|
+
log$4.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
|
|
4389
4389
|
}
|
|
4390
4390
|
function getVersion(gl) {
|
|
4391
4391
|
if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) {
|
|
@@ -4397,7 +4397,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
|
|
|
4397
4397
|
let clientWidth = "width" in options ? options.width : gl.canvas.clientWidth;
|
|
4398
4398
|
let clientHeight = "height" in options ? options.height : gl.canvas.clientHeight;
|
|
4399
4399
|
if (!clientWidth || !clientHeight) {
|
|
4400
|
-
log$
|
|
4400
|
+
log$4.log(1, "Canvas clientWidth/clientHeight is 0")();
|
|
4401
4401
|
devicePixelRatio = 1;
|
|
4402
4402
|
clientWidth = gl.canvas.width || 1;
|
|
4403
4403
|
clientHeight = gl.canvas.height || 1;
|
|
@@ -4412,7 +4412,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
|
|
|
4412
4412
|
gl.canvas.width = canvasWidth;
|
|
4413
4413
|
gl.canvas.height = canvasHeight;
|
|
4414
4414
|
if (gl.drawingBufferWidth !== canvasWidth || gl.drawingBufferHeight !== canvasHeight) {
|
|
4415
|
-
log$
|
|
4415
|
+
log$4.warn("Device pixel ratio clamped")();
|
|
4416
4416
|
clampedPixelRatio = Math.min(gl.drawingBufferWidth / clientWidth, gl.drawingBufferHeight / clientHeight);
|
|
4417
4417
|
gl.canvas.width = Math.floor(clientWidth * clampedPixelRatio);
|
|
4418
4418
|
gl.canvas.height = Math.floor(clientHeight * clampedPixelRatio);
|
|
@@ -4445,12 +4445,12 @@ if (globalThis.luma && globalThis.luma.VERSION !== VERSION$7) {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
if (!globalThis.luma) {
|
|
4447
4447
|
if (isBrowser$1()) {
|
|
4448
|
-
log$
|
|
4448
|
+
log$4.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
|
|
4449
4449
|
}
|
|
4450
4450
|
globalThis.luma = globalThis.luma || {
|
|
4451
4451
|
VERSION: VERSION$7,
|
|
4452
4452
|
version: VERSION$7,
|
|
4453
|
-
log: log$
|
|
4453
|
+
log: log$4,
|
|
4454
4454
|
stats: lumaStats,
|
|
4455
4455
|
globals: {
|
|
4456
4456
|
modules: {},
|
|
@@ -4518,7 +4518,7 @@ function stubRemovedMethods(instance, className, version2, methodNames) {
|
|
|
4518
4518
|
return;
|
|
4519
4519
|
}
|
|
4520
4520
|
prototype[methodName] = () => {
|
|
4521
|
-
log$
|
|
4521
|
+
log$4.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
|
|
4522
4522
|
throw new Error(methodName);
|
|
4523
4523
|
};
|
|
4524
4524
|
});
|
|
@@ -4819,20 +4819,20 @@ function checkProps(className, props, propChecks) {
|
|
|
4819
4819
|
if (propName in props) {
|
|
4820
4820
|
const replacementProp = removedProps[propName];
|
|
4821
4821
|
const replacement = replacementProp ? "".concat(className, ".").concat(removedProps[propName]) : "N/A";
|
|
4822
|
-
log$
|
|
4822
|
+
log$4.removed("".concat(className, ".").concat(propName), replacement)();
|
|
4823
4823
|
}
|
|
4824
4824
|
}
|
|
4825
4825
|
for (const propName in deprecatedProps) {
|
|
4826
4826
|
if (propName in props) {
|
|
4827
4827
|
const replacementProp = deprecatedProps[propName];
|
|
4828
|
-
log$
|
|
4828
|
+
log$4.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
|
|
4829
4829
|
}
|
|
4830
4830
|
}
|
|
4831
4831
|
let newProps = null;
|
|
4832
4832
|
for (const propName in replacedProps) {
|
|
4833
4833
|
if (propName in props) {
|
|
4834
4834
|
const replacementProp = replacedProps[propName];
|
|
4835
|
-
log$
|
|
4835
|
+
log$4.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
|
|
4836
4836
|
newProps = newProps || Object.assign({}, props);
|
|
4837
4837
|
newProps[replacementProp] = props[propName];
|
|
4838
4838
|
delete newProps[propName];
|
|
@@ -5217,19 +5217,19 @@ let Buffer$2 = class Buffer2 extends Resource$1 {
|
|
|
5217
5217
|
return value;
|
|
5218
5218
|
}
|
|
5219
5219
|
get type() {
|
|
5220
|
-
log$
|
|
5220
|
+
log$4.deprecated("Buffer.type", "Buffer.accessor.type")();
|
|
5221
5221
|
return this.accessor.type;
|
|
5222
5222
|
}
|
|
5223
5223
|
get bytes() {
|
|
5224
|
-
log$
|
|
5224
|
+
log$4.deprecated("Buffer.bytes", "Buffer.byteLength")();
|
|
5225
5225
|
return this.byteLength;
|
|
5226
5226
|
}
|
|
5227
5227
|
setByteLength(byteLength) {
|
|
5228
|
-
log$
|
|
5228
|
+
log$4.deprecated("setByteLength", "reallocate")();
|
|
5229
5229
|
return this.reallocate(byteLength);
|
|
5230
5230
|
}
|
|
5231
5231
|
updateAccessor(opts) {
|
|
5232
|
-
log$
|
|
5232
|
+
log$4.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
|
|
5233
5233
|
this.accessor = new Accessor(this.accessor, opts);
|
|
5234
5234
|
return this;
|
|
5235
5235
|
}
|
|
@@ -5436,7 +5436,7 @@ class Texture extends Resource$1 {
|
|
|
5436
5436
|
this.gl.bindTexture(this.target, this.handle);
|
|
5437
5437
|
}
|
|
5438
5438
|
if (mipmaps && this._isNPOT()) {
|
|
5439
|
-
log$
|
|
5439
|
+
log$4.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
|
|
5440
5440
|
mipmaps = false;
|
|
5441
5441
|
this._updateForNPOT(parameters);
|
|
5442
5442
|
}
|
|
@@ -5512,7 +5512,7 @@ class Texture extends Resource$1 {
|
|
|
5512
5512
|
generateMipmap() {
|
|
5513
5513
|
let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5514
5514
|
if (this._isNPOT()) {
|
|
5515
|
-
log$
|
|
5515
|
+
log$4.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
|
|
5516
5516
|
return this;
|
|
5517
5517
|
}
|
|
5518
5518
|
this.mipmaps = true;
|
|
@@ -5686,7 +5686,7 @@ class Texture extends Resource$1 {
|
|
|
5686
5686
|
this.gl.bindTexture(this.target, null);
|
|
5687
5687
|
}
|
|
5688
5688
|
copyFramebuffer() {
|
|
5689
|
-
log$
|
|
5689
|
+
log$4.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
|
|
5690
5690
|
return null;
|
|
5691
5691
|
}
|
|
5692
5692
|
getActiveUnit() {
|
|
@@ -6017,7 +6017,7 @@ class TextureCube extends Texture {
|
|
|
6017
6017
|
this.bind();
|
|
6018
6018
|
FACES.forEach((face, index2) => {
|
|
6019
6019
|
if (resolvedFaces[index2].length > 1 && this.opts.mipmaps !== false) {
|
|
6020
|
-
log$
|
|
6020
|
+
log$4.warn("".concat(this.id, " has mipmap and multiple LODs."))();
|
|
6021
6021
|
}
|
|
6022
6022
|
resolvedFaces[index2].forEach((image, lodLevel) => {
|
|
6023
6023
|
if (width && height) {
|
|
@@ -6793,7 +6793,7 @@ function isFeatureSupported(gl, cap) {
|
|
|
6793
6793
|
gl.luma.caps[cap] = queryFeature(gl, cap);
|
|
6794
6794
|
}
|
|
6795
6795
|
if (!gl.luma.caps[cap]) {
|
|
6796
|
-
log$
|
|
6796
|
+
log$4.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
|
|
6797
6797
|
}
|
|
6798
6798
|
return gl.luma.caps[cap];
|
|
6799
6799
|
}
|
|
@@ -6967,7 +6967,7 @@ class Framebuffer extends Resource$1 {
|
|
|
6967
6967
|
height = this.gl.drawingBufferHeight;
|
|
6968
6968
|
}
|
|
6969
6969
|
if (width !== this.width && height !== this.height) {
|
|
6970
|
-
log$
|
|
6970
|
+
log$4.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
|
|
6971
6971
|
}
|
|
6972
6972
|
for (const attachmentPoint in this.attachments) {
|
|
6973
6973
|
this.attachments[attachmentPoint].resize({
|
|
@@ -7076,27 +7076,27 @@ class Framebuffer extends Resource$1 {
|
|
|
7076
7076
|
return this;
|
|
7077
7077
|
}
|
|
7078
7078
|
readPixels() {
|
|
7079
|
-
log$
|
|
7079
|
+
log$4.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
|
|
7080
7080
|
return null;
|
|
7081
7081
|
}
|
|
7082
7082
|
readPixelsToBuffer() {
|
|
7083
|
-
log$
|
|
7083
|
+
log$4.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
|
|
7084
7084
|
return null;
|
|
7085
7085
|
}
|
|
7086
7086
|
copyToDataUrl() {
|
|
7087
|
-
log$
|
|
7087
|
+
log$4.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
|
|
7088
7088
|
return null;
|
|
7089
7089
|
}
|
|
7090
7090
|
copyToImage() {
|
|
7091
|
-
log$
|
|
7091
|
+
log$4.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
|
|
7092
7092
|
return null;
|
|
7093
7093
|
}
|
|
7094
7094
|
copyToTexture() {
|
|
7095
|
-
log$
|
|
7095
|
+
log$4.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
|
|
7096
7096
|
return null;
|
|
7097
7097
|
}
|
|
7098
7098
|
blit() {
|
|
7099
|
-
log$
|
|
7099
|
+
log$4.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
|
|
7100
7100
|
return null;
|
|
7101
7101
|
}
|
|
7102
7102
|
invalidate(_ref3) {
|
|
@@ -7161,14 +7161,14 @@ class Framebuffer extends Resource$1 {
|
|
|
7161
7161
|
log() {
|
|
7162
7162
|
let logLevel = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
7163
7163
|
let message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7164
|
-
if (logLevel > log$
|
|
7164
|
+
if (logLevel > log$4.level || typeof window === "undefined") {
|
|
7165
7165
|
return this;
|
|
7166
7166
|
}
|
|
7167
7167
|
message = message || "Framebuffer ".concat(this.id);
|
|
7168
7168
|
const image = copyToDataUrl(this, {
|
|
7169
7169
|
targetMaxHeight: 100
|
|
7170
7170
|
});
|
|
7171
|
-
log$
|
|
7171
|
+
log$4.image({
|
|
7172
7172
|
logLevel,
|
|
7173
7173
|
message,
|
|
7174
7174
|
image
|
|
@@ -7558,8 +7558,8 @@ class Shader extends Resource$1 {
|
|
|
7558
7558
|
errors,
|
|
7559
7559
|
warnings
|
|
7560
7560
|
} = parseGLSLCompilerError(infoLog, this.source, this.shaderType, this.id);
|
|
7561
|
-
log$
|
|
7562
|
-
log$
|
|
7561
|
+
log$4.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
|
|
7562
|
+
log$4.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
|
|
7563
7563
|
throw new Error("GLSL compilation errors in ".concat(shaderName));
|
|
7564
7564
|
}
|
|
7565
7565
|
}
|
|
@@ -7667,7 +7667,7 @@ function toTypedArray$1(value, uniformLength, Type2, cache2) {
|
|
|
7667
7667
|
}
|
|
7668
7668
|
const length2 = value.length;
|
|
7669
7669
|
if (length2 % uniformLength) {
|
|
7670
|
-
log$
|
|
7670
|
+
log$4.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
|
|
7671
7671
|
}
|
|
7672
7672
|
if (value instanceof Type2) {
|
|
7673
7673
|
return value;
|
|
@@ -8132,13 +8132,13 @@ class Program extends Resource$1 {
|
|
|
8132
8132
|
samplers
|
|
8133
8133
|
} = _ref;
|
|
8134
8134
|
if (uniforms || samplers) {
|
|
8135
|
-
log$
|
|
8135
|
+
log$4.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
|
|
8136
8136
|
this.setUniforms(uniforms || {});
|
|
8137
8137
|
}
|
|
8138
|
-
if (log$
|
|
8138
|
+
if (log$4.priority >= logPriority) {
|
|
8139
8139
|
const fb = framebuffer ? framebuffer.id : "default";
|
|
8140
8140
|
const message = "mode=".concat(getKey(this.gl, drawMode), " verts=").concat(vertexCount, " ") + "instances=".concat(instanceCount, " indexType=").concat(getKey(this.gl, indexType), " ") + "isInstanced=".concat(isInstanced, " isIndexed=").concat(isIndexed, " ") + "Framebuffer=".concat(fb);
|
|
8141
|
-
log$
|
|
8141
|
+
log$4.log(logPriority, message)();
|
|
8142
8142
|
}
|
|
8143
8143
|
assert$9(vertexArray);
|
|
8144
8144
|
this.gl.useProgram(this.handle);
|
|
@@ -8177,7 +8177,7 @@ class Program extends Resource$1 {
|
|
|
8177
8177
|
}
|
|
8178
8178
|
setUniforms() {
|
|
8179
8179
|
let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8180
|
-
if (log$
|
|
8180
|
+
if (log$4.priority >= 2) {
|
|
8181
8181
|
checkUniformValues(uniforms, this.id, this._uniformSetters);
|
|
8182
8182
|
}
|
|
8183
8183
|
this.gl.useProgram(this.handle);
|
|
@@ -8278,10 +8278,10 @@ class Program extends Resource$1 {
|
|
|
8278
8278
|
} = this;
|
|
8279
8279
|
gl.attachShader(this.handle, this.vs.handle);
|
|
8280
8280
|
gl.attachShader(this.handle, this.fs.handle);
|
|
8281
|
-
log$
|
|
8281
|
+
log$4.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
|
|
8282
8282
|
gl.linkProgram(this.handle);
|
|
8283
|
-
log$
|
|
8284
|
-
if (gl.debug || log$
|
|
8283
|
+
log$4.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
|
|
8284
|
+
if (gl.debug || log$4.level > 0) {
|
|
8285
8285
|
const linked = gl.getProgramParameter(this.handle, 35714);
|
|
8286
8286
|
if (!linked) {
|
|
8287
8287
|
throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));
|
|
@@ -8504,7 +8504,7 @@ class TransformFeedback extends Resource$1 {
|
|
|
8504
8504
|
} = this._getBufferParams(bufferOrParams);
|
|
8505
8505
|
if (location < 0) {
|
|
8506
8506
|
this.unused[locationOrName] = buffer2;
|
|
8507
|
-
log$
|
|
8507
|
+
log$4.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
|
|
8508
8508
|
return this;
|
|
8509
8509
|
}
|
|
8510
8510
|
this.buffers[location] = bufferOrParams;
|
|
@@ -9053,7 +9053,7 @@ class VertexArray {
|
|
|
9053
9053
|
} = this._getAttributeIndex(locationOrName);
|
|
9054
9054
|
if (!Number.isFinite(location) || location < 0) {
|
|
9055
9055
|
this.unused[locationOrName] = value;
|
|
9056
|
-
log$
|
|
9056
|
+
log$4.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
|
|
9057
9057
|
return INVALID_RESULT;
|
|
9058
9058
|
}
|
|
9059
9059
|
const accessInfo = this._getAttributeInfo(name2 || location);
|
|
@@ -9191,7 +9191,7 @@ class VertexArray {
|
|
|
9191
9191
|
setElements() {
|
|
9192
9192
|
let elementBuffer = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
9193
9193
|
let accessor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
9194
|
-
log$
|
|
9194
|
+
log$4.deprecated("setElements", "setElementBuffer")();
|
|
9195
9195
|
return this.setElementBuffer(elementBuffer, accessor);
|
|
9196
9196
|
}
|
|
9197
9197
|
}
|
|
@@ -9485,7 +9485,7 @@ class AnimationLoop {
|
|
|
9485
9485
|
useDevicePixels = true
|
|
9486
9486
|
} = props;
|
|
9487
9487
|
if ("useDevicePixelRatio" in props) {
|
|
9488
|
-
log$
|
|
9488
|
+
log$4.deprecated("useDevicePixelRatio", "useDevicePixels")();
|
|
9489
9489
|
useDevicePixels = props.useDevicePixelRatio;
|
|
9490
9490
|
}
|
|
9491
9491
|
this.props = {
|
|
@@ -9651,7 +9651,7 @@ class AnimationLoop {
|
|
|
9651
9651
|
return element ? Number(element.value) : defaultValue2;
|
|
9652
9652
|
}
|
|
9653
9653
|
setViewParameters() {
|
|
9654
|
-
log$
|
|
9654
|
+
log$4.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
|
|
9655
9655
|
return this;
|
|
9656
9656
|
}
|
|
9657
9657
|
_startLoop() {
|
|
@@ -14960,7 +14960,7 @@ class Model {
|
|
|
14960
14960
|
this.updateModuleSettings(moduleSettings);
|
|
14961
14961
|
this.setUniforms(uniforms);
|
|
14962
14962
|
let logPriority;
|
|
14963
|
-
if (log$
|
|
14963
|
+
if (log$4.priority >= LOG_DRAW_PRIORITY) {
|
|
14964
14964
|
logPriority = this._logDrawCallStart(LOG_DRAW_PRIORITY);
|
|
14965
14965
|
}
|
|
14966
14966
|
const drawParams = this.vertexArray.getDrawParams();
|
|
@@ -14971,7 +14971,7 @@ class Model {
|
|
|
14971
14971
|
vertexArrayInstanced = drawParams.isInstanced
|
|
14972
14972
|
} = this.props;
|
|
14973
14973
|
if (vertexArrayInstanced && !this.isInstanced) {
|
|
14974
|
-
log$
|
|
14974
|
+
log$4.warn("Found instanced attributes on non-instanced model", this.id)();
|
|
14975
14975
|
}
|
|
14976
14976
|
const {
|
|
14977
14977
|
isInstanced,
|
|
@@ -14999,7 +14999,7 @@ class Model {
|
|
|
14999
14999
|
offset: isIndexed ? indexOffset : 0
|
|
15000
15000
|
}));
|
|
15001
15001
|
onAfterRender();
|
|
15002
|
-
if (log$
|
|
15002
|
+
if (log$4.priority >= LOG_DRAW_PRIORITY) {
|
|
15003
15003
|
this._logDrawCallEnd(logPriority, vertexArray, framebuffer);
|
|
15004
15004
|
}
|
|
15005
15005
|
return didDraw;
|
|
@@ -15034,7 +15034,7 @@ class Model {
|
|
|
15034
15034
|
}
|
|
15035
15035
|
render() {
|
|
15036
15036
|
let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
15037
|
-
log$
|
|
15037
|
+
log$4.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
|
|
15038
15038
|
return this.setUniforms(uniforms).draw();
|
|
15039
15039
|
}
|
|
15040
15040
|
_setModelProps(props) {
|
|
@@ -15146,8 +15146,8 @@ class Model {
|
|
|
15146
15146
|
return void 0;
|
|
15147
15147
|
}
|
|
15148
15148
|
this.lastLogTime = Date.now();
|
|
15149
|
-
log$
|
|
15150
|
-
collapsed: log$
|
|
15149
|
+
log$4.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
|
|
15150
|
+
collapsed: log$4.level <= 2
|
|
15151
15151
|
})();
|
|
15152
15152
|
return logLevel;
|
|
15153
15153
|
}
|
|
@@ -15179,22 +15179,22 @@ class Model {
|
|
|
15179
15179
|
undefinedOnly: true
|
|
15180
15180
|
});
|
|
15181
15181
|
if (missingCount > 0) {
|
|
15182
|
-
log$
|
|
15182
|
+
log$4.log("MISSING UNIFORMS", Object.keys(missingTable))();
|
|
15183
15183
|
}
|
|
15184
15184
|
if (unusedCount > 0) {
|
|
15185
|
-
log$
|
|
15185
|
+
log$4.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
|
|
15186
15186
|
}
|
|
15187
15187
|
const configTable = getDebugTableForProgramConfiguration(this.vertexArray.configuration);
|
|
15188
|
-
log$
|
|
15189
|
-
log$
|
|
15190
|
-
log$
|
|
15188
|
+
log$4.table(logLevel, attributeTable)();
|
|
15189
|
+
log$4.table(logLevel, uniformTable)();
|
|
15190
|
+
log$4.table(logLevel + 1, configTable)();
|
|
15191
15191
|
if (framebuffer) {
|
|
15192
15192
|
framebuffer.log({
|
|
15193
15193
|
logLevel: LOG_DRAW_PRIORITY,
|
|
15194
15194
|
message: "Rendered to ".concat(framebuffer.id)
|
|
15195
15195
|
});
|
|
15196
15196
|
}
|
|
15197
|
-
log$
|
|
15197
|
+
log$4.groupEnd(LOG_DRAW_PRIORITY)();
|
|
15198
15198
|
}
|
|
15199
15199
|
}
|
|
15200
15200
|
class BufferTransform {
|
|
@@ -16885,7 +16885,7 @@ const esm$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
16885
16885
|
instrumentGLContext,
|
|
16886
16886
|
isWebGL,
|
|
16887
16887
|
isWebGL2: isWebGL2$1,
|
|
16888
|
-
log: log$
|
|
16888
|
+
log: log$4,
|
|
16889
16889
|
lumaStats,
|
|
16890
16890
|
normalizeShaderModule,
|
|
16891
16891
|
pbr,
|
|
@@ -16916,7 +16916,7 @@ const COORDINATE_SYSTEM = {
|
|
|
16916
16916
|
};
|
|
16917
16917
|
Object.defineProperty(COORDINATE_SYSTEM, "IDENTITY", {
|
|
16918
16918
|
get: () => {
|
|
16919
|
-
log$
|
|
16919
|
+
log$5.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
|
|
16920
16920
|
return 0;
|
|
16921
16921
|
}
|
|
16922
16922
|
});
|
|
@@ -18918,7 +18918,7 @@ class Viewport {
|
|
|
18918
18918
|
this.pixelProjectionMatrix = pixelProjectionMatrix;
|
|
18919
18919
|
this.pixelUnprojectionMatrix = invert$1(createMat4(), this.pixelProjectionMatrix);
|
|
18920
18920
|
if (!this.pixelUnprojectionMatrix) {
|
|
18921
|
-
log$
|
|
18921
|
+
log$5.warn("Pixel project matrix not invertible")();
|
|
18922
18922
|
}
|
|
18923
18923
|
}
|
|
18924
18924
|
}
|
|
@@ -19867,7 +19867,7 @@ class LayerManager {
|
|
|
19867
19867
|
const oldLayerMap = {};
|
|
19868
19868
|
for (const oldLayer of oldLayers) {
|
|
19869
19869
|
if (oldLayerMap[oldLayer.id]) {
|
|
19870
|
-
log$
|
|
19870
|
+
log$5.warn("Multiple old layers with same id ".concat(oldLayer.id))();
|
|
19871
19871
|
} else {
|
|
19872
19872
|
oldLayerMap[oldLayer.id] = oldLayer;
|
|
19873
19873
|
}
|
|
@@ -19890,7 +19890,7 @@ class LayerManager {
|
|
|
19890
19890
|
newLayer.context = this.context;
|
|
19891
19891
|
const oldLayer = oldLayerMap[newLayer.id];
|
|
19892
19892
|
if (oldLayer === null) {
|
|
19893
|
-
log$
|
|
19893
|
+
log$5.warn("Multiple new layers with same id ".concat(newLayer.id))();
|
|
19894
19894
|
}
|
|
19895
19895
|
oldLayerMap[newLayer.id] = null;
|
|
19896
19896
|
let sublayers = null;
|
|
@@ -20126,7 +20126,7 @@ class ViewManager {
|
|
|
20126
20126
|
}
|
|
20127
20127
|
this.viewState = viewState;
|
|
20128
20128
|
} else {
|
|
20129
|
-
log$
|
|
20129
|
+
log$5.warn("missing `viewState` or `initialViewState`")();
|
|
20130
20130
|
}
|
|
20131
20131
|
}
|
|
20132
20132
|
_onViewStateChange(viewId, event) {
|
|
@@ -20900,9 +20900,9 @@ class Controller {
|
|
|
20900
20900
|
updateTransition() {
|
|
20901
20901
|
this.transitionManager.updateTransition();
|
|
20902
20902
|
}
|
|
20903
|
-
toggleEvents(
|
|
20903
|
+
toggleEvents(eventNames, enabled) {
|
|
20904
20904
|
if (this.eventManager) {
|
|
20905
|
-
|
|
20905
|
+
eventNames.forEach((eventName) => {
|
|
20906
20906
|
if (this._events[eventName] !== enabled) {
|
|
20907
20907
|
this._events[eventName] = enabled;
|
|
20908
20908
|
if (enabled) {
|
|
@@ -22429,7 +22429,7 @@ class MaskEffect {
|
|
|
22429
22429
|
let channelInfo = channelMap[id];
|
|
22430
22430
|
if (!channelInfo) {
|
|
22431
22431
|
if (++channelCount > 4) {
|
|
22432
|
-
log$
|
|
22432
|
+
log$5.warn("Too many mask layers. The max supported is 4")();
|
|
22433
22433
|
continue;
|
|
22434
22434
|
}
|
|
22435
22435
|
channelInfo = {
|
|
@@ -22654,7 +22654,7 @@ function encodeColor(encoded, layer, viewport) {
|
|
|
22654
22654
|
byLayer.set(layer, entry);
|
|
22655
22655
|
byAlpha[a2] = entry;
|
|
22656
22656
|
} else {
|
|
22657
|
-
log$
|
|
22657
|
+
log$5.warn("Too many pickable layers, only picking the first 255")();
|
|
22658
22658
|
a2 = 0;
|
|
22659
22659
|
}
|
|
22660
22660
|
}
|
|
@@ -22825,7 +22825,7 @@ function getClosestObject({
|
|
|
22825
22825
|
pickedY: y2 + dy
|
|
22826
22826
|
};
|
|
22827
22827
|
}
|
|
22828
|
-
log$
|
|
22828
|
+
log$5.error("Picked non-existent layer. Is picking buffer corrupt?")();
|
|
22829
22829
|
}
|
|
22830
22830
|
return NO_PICKED_OBJECT;
|
|
22831
22831
|
}
|
|
@@ -22848,7 +22848,7 @@ function getUniqueObjects({
|
|
|
22848
22848
|
color: pickedColor
|
|
22849
22849
|
});
|
|
22850
22850
|
} else {
|
|
22851
|
-
log$
|
|
22851
|
+
log$5.error("Picked non-existent layer. Is picking buffer corrupt?")();
|
|
22852
22852
|
}
|
|
22853
22853
|
}
|
|
22854
22854
|
}
|
|
@@ -24386,18 +24386,18 @@ var hammer$1 = { exports: {} };
|
|
|
24386
24386
|
emit: function(input) {
|
|
24387
24387
|
var self2 = this;
|
|
24388
24388
|
var state = this.state;
|
|
24389
|
-
function
|
|
24389
|
+
function emit(event) {
|
|
24390
24390
|
self2.manager.emit(event, input);
|
|
24391
24391
|
}
|
|
24392
24392
|
if (state < STATE_ENDED) {
|
|
24393
|
-
|
|
24393
|
+
emit(self2.options.event + stateStr(state));
|
|
24394
24394
|
}
|
|
24395
|
-
|
|
24395
|
+
emit(self2.options.event);
|
|
24396
24396
|
if (input.additionalEvent) {
|
|
24397
|
-
|
|
24397
|
+
emit(input.additionalEvent);
|
|
24398
24398
|
}
|
|
24399
24399
|
if (state >= STATE_ENDED) {
|
|
24400
|
-
|
|
24400
|
+
emit(self2.options.event + stateStr(state));
|
|
24401
24401
|
}
|
|
24402
24402
|
},
|
|
24403
24403
|
/**
|
|
@@ -25757,7 +25757,7 @@ class EventRegistrar {
|
|
|
25757
25757
|
isEmpty() {
|
|
25758
25758
|
return !this._active;
|
|
25759
25759
|
}
|
|
25760
|
-
add(type2, handler, options,
|
|
25760
|
+
add(type2, handler, options, once = false, passive = false) {
|
|
25761
25761
|
const { handlers, handlersByElement } = this;
|
|
25762
25762
|
let opts = DEFAULT_OPTIONS$2;
|
|
25763
25763
|
if (typeof options === "string" || options && options.addEventListener) {
|
|
@@ -25776,7 +25776,7 @@ class EventRegistrar {
|
|
|
25776
25776
|
srcElement: opts.srcElement,
|
|
25777
25777
|
priority: opts.priority
|
|
25778
25778
|
};
|
|
25779
|
-
if (
|
|
25779
|
+
if (once) {
|
|
25780
25780
|
entry.once = true;
|
|
25781
25781
|
}
|
|
25782
25782
|
if (passive) {
|
|
@@ -25824,7 +25824,7 @@ class EventRegistrar {
|
|
|
25824
25824
|
};
|
|
25825
25825
|
const entriesToRemove = [];
|
|
25826
25826
|
for (let i2 = 0; i2 < entries.length; i2++) {
|
|
25827
|
-
const { type: type2, handler, once
|
|
25827
|
+
const { type: type2, handler, once } = entries[i2];
|
|
25828
25828
|
handler({
|
|
25829
25829
|
...event,
|
|
25830
25830
|
// @ts-ignore
|
|
@@ -25832,7 +25832,7 @@ class EventRegistrar {
|
|
|
25832
25832
|
stopPropagation,
|
|
25833
25833
|
stopImmediatePropagation
|
|
25834
25834
|
});
|
|
25835
|
-
if (
|
|
25835
|
+
if (once) {
|
|
25836
25836
|
entriesToRemove.push(entries[i2]);
|
|
25837
25837
|
}
|
|
25838
25838
|
if (immediatePropagationStopped) {
|
|
@@ -26013,11 +26013,11 @@ class EventManager {
|
|
|
26013
26013
|
/**
|
|
26014
26014
|
* Process the event registration for a single event + handler.
|
|
26015
26015
|
*/
|
|
26016
|
-
_addEventHandler(event, handler, opts,
|
|
26016
|
+
_addEventHandler(event, handler, opts, once, passive) {
|
|
26017
26017
|
if (typeof event !== "string") {
|
|
26018
26018
|
opts = handler;
|
|
26019
26019
|
for (const eventName in event) {
|
|
26020
|
-
this._addEventHandler(eventName, event[eventName], opts,
|
|
26020
|
+
this._addEventHandler(eventName, event[eventName], opts, once, passive);
|
|
26021
26021
|
}
|
|
26022
26022
|
return;
|
|
26023
26023
|
}
|
|
@@ -26032,7 +26032,7 @@ class EventManager {
|
|
|
26032
26032
|
manager.on(eventAlias, eventRegistrar.handleEvent);
|
|
26033
26033
|
}
|
|
26034
26034
|
}
|
|
26035
|
-
eventRegistrar.add(event, handler, opts,
|
|
26035
|
+
eventRegistrar.add(event, handler, opts, once, passive);
|
|
26036
26036
|
if (!eventRegistrar.isEmpty()) {
|
|
26037
26037
|
this._toggleRecognizer(eventRegistrar.recognizerName, true);
|
|
26038
26038
|
}
|
|
@@ -26107,7 +26107,7 @@ const defaultProps$M = {
|
|
|
26107
26107
|
onBeforeRender: noop$2,
|
|
26108
26108
|
onAfterRender: noop$2,
|
|
26109
26109
|
onLoad: noop$2,
|
|
26110
|
-
onError: (error2) => log$
|
|
26110
|
+
onError: (error2) => log$5.error(error2.message)(),
|
|
26111
26111
|
onHover: null,
|
|
26112
26112
|
onClick: null,
|
|
26113
26113
|
onDragStart: null,
|
|
@@ -26222,10 +26222,10 @@ class Deck {
|
|
|
26222
26222
|
isDragging: false
|
|
26223
26223
|
};
|
|
26224
26224
|
if (props.viewState && props.initialViewState) {
|
|
26225
|
-
log$
|
|
26225
|
+
log$5.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
|
|
26226
26226
|
}
|
|
26227
26227
|
if (getBrowser() === "IE") {
|
|
26228
|
-
log$
|
|
26228
|
+
log$5.warn("IE 11 is not supported")();
|
|
26229
26229
|
}
|
|
26230
26230
|
this.viewState = props.initialViewState;
|
|
26231
26231
|
if (!props.gl) {
|
|
@@ -26288,10 +26288,10 @@ class Deck {
|
|
|
26288
26288
|
setProps(props) {
|
|
26289
26289
|
this.stats.get("setProps Time").timeStart();
|
|
26290
26290
|
if ("onLayerHover" in props) {
|
|
26291
|
-
log$
|
|
26291
|
+
log$5.removed("onLayerHover", "onHover")();
|
|
26292
26292
|
}
|
|
26293
26293
|
if ("onLayerClick" in props) {
|
|
26294
|
-
log$
|
|
26294
|
+
log$5.removed("onLayerClick", "onClick")();
|
|
26295
26295
|
}
|
|
26296
26296
|
if (props.initialViewState && !deepEqual$2(this.props.initialViewState, props.initialViewState)) {
|
|
26297
26297
|
this.viewState = props.initialViewState;
|
|
@@ -26638,7 +26638,7 @@ class Deck {
|
|
|
26638
26638
|
if (this._metricsCounter++ % 60 === 0) {
|
|
26639
26639
|
this._getMetrics();
|
|
26640
26640
|
this.stats.reset();
|
|
26641
|
-
log$
|
|
26641
|
+
log$5.table(4, this.metrics)();
|
|
26642
26642
|
if (this.props._onMetrics) {
|
|
26643
26643
|
this.props._onMetrics(this.metrics);
|
|
26644
26644
|
}
|
|
@@ -26778,7 +26778,7 @@ function getStride(accessor) {
|
|
|
26778
26778
|
}
|
|
26779
26779
|
function resolveShaderAttribute(baseAccessor, shaderAttributeOptions) {
|
|
26780
26780
|
if (shaderAttributeOptions.offset) {
|
|
26781
|
-
log$
|
|
26781
|
+
log$5.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
|
|
26782
26782
|
}
|
|
26783
26783
|
const stride = getStride(baseAccessor);
|
|
26784
26784
|
const vertexOffset = shaderAttributeOptions.vertexOffset !== void 0 ? shaderAttributeOptions.vertexOffset : baseAccessor.vertexOffset || 0;
|
|
@@ -27093,7 +27093,7 @@ class DataColumn {
|
|
|
27093
27093
|
throw new Error("Attribute ".concat(this.id, " does not support ").concat(value.constructor.name));
|
|
27094
27094
|
}
|
|
27095
27095
|
if (!(value instanceof ArrayType) && this.settings.normalized && !("normalized" in opts)) {
|
|
27096
|
-
log$
|
|
27096
|
+
log$5.warn("Attribute ".concat(this.id, " is normalized"))();
|
|
27097
27097
|
}
|
|
27098
27098
|
}
|
|
27099
27099
|
normalizeConstant(value) {
|
|
@@ -28151,7 +28151,7 @@ class AttributeTransitionManager {
|
|
|
28151
28151
|
let isNew = !transition || transition.type !== settings.type;
|
|
28152
28152
|
if (isNew) {
|
|
28153
28153
|
if (!this.isSupported) {
|
|
28154
|
-
log$
|
|
28154
|
+
log$5.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
|
|
28155
28155
|
return;
|
|
28156
28156
|
}
|
|
28157
28157
|
if (transition) {
|
|
@@ -28165,7 +28165,7 @@ class AttributeTransitionManager {
|
|
|
28165
28165
|
gl: this.gl
|
|
28166
28166
|
});
|
|
28167
28167
|
} else {
|
|
28168
|
-
log$
|
|
28168
|
+
log$5.error("unsupported transition type '".concat(settings.type, "'"))();
|
|
28169
28169
|
isNew = false;
|
|
28170
28170
|
}
|
|
28171
28171
|
}
|
|
@@ -28270,7 +28270,7 @@ class AttributeManager {
|
|
|
28270
28270
|
attribute.startIndices = startIndices;
|
|
28271
28271
|
attribute.numInstances = numInstances;
|
|
28272
28272
|
if (props[attributeName]) {
|
|
28273
|
-
log$
|
|
28273
|
+
log$5.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
|
|
28274
28274
|
}
|
|
28275
28275
|
if (attribute.setExternalBuffer(buffers[attributeName]))
|
|
28276
28276
|
;
|
|
@@ -28511,7 +28511,7 @@ class UniformTransitionManager {
|
|
|
28511
28511
|
}
|
|
28512
28512
|
const TransitionType = TRANSITION_TYPES[settings.type];
|
|
28513
28513
|
if (!TransitionType) {
|
|
28514
|
-
log$
|
|
28514
|
+
log$5.error("unsupported transition type '".concat(settings.type, "'"))();
|
|
28515
28515
|
return;
|
|
28516
28516
|
}
|
|
28517
28517
|
const transition = new TransitionType(this.timeline);
|
|
@@ -28753,7 +28753,7 @@ function getPropTypes(props) {
|
|
|
28753
28753
|
const ERR_NOT_OBJECT = "count(): argument not an object";
|
|
28754
28754
|
const ERR_NOT_CONTAINER = "count(): argument not a container";
|
|
28755
28755
|
function count(container) {
|
|
28756
|
-
if (!isObject$
|
|
28756
|
+
if (!isObject$5(container)) {
|
|
28757
28757
|
throw new Error(ERR_NOT_OBJECT);
|
|
28758
28758
|
}
|
|
28759
28759
|
if (typeof container.count === "function") {
|
|
@@ -28773,7 +28773,7 @@ function count(container) {
|
|
|
28773
28773
|
function isPlainObject$1(value) {
|
|
28774
28774
|
return value !== null && typeof value === "object" && value.constructor === Object;
|
|
28775
28775
|
}
|
|
28776
|
-
function isObject$
|
|
28776
|
+
function isObject$5(value) {
|
|
28777
28777
|
return value !== null && typeof value === "object";
|
|
28778
28778
|
}
|
|
28779
28779
|
function mergeShaders(target, source) {
|
|
@@ -29107,7 +29107,7 @@ function addDeprecatedPropsToPropPrototype(defaultProps2, deprecatedProps) {
|
|
|
29107
29107
|
this[newPropName] = newValue;
|
|
29108
29108
|
}
|
|
29109
29109
|
}
|
|
29110
|
-
log$
|
|
29110
|
+
log$5.deprecated(nameStr, deprecatedProps[propName].join("/"))();
|
|
29111
29111
|
}
|
|
29112
29112
|
});
|
|
29113
29113
|
}
|
|
@@ -29166,7 +29166,7 @@ function getOwnProperty(object2, prop) {
|
|
|
29166
29166
|
function getComponentName(componentClass) {
|
|
29167
29167
|
const componentName = getOwnProperty(componentClass, "layerName") || getOwnProperty(componentClass, "componentName");
|
|
29168
29168
|
if (!componentName) {
|
|
29169
|
-
log$
|
|
29169
|
+
log$5.once(0, "".concat(componentClass.name, ".componentName not specified"))();
|
|
29170
29170
|
}
|
|
29171
29171
|
return componentName || componentClass.name;
|
|
29172
29172
|
}
|
|
@@ -29995,7 +29995,7 @@ class Layer extends Component {
|
|
|
29995
29995
|
this.internalState.usesPickingColorCache = true;
|
|
29996
29996
|
if (cacheSize < numInstances) {
|
|
29997
29997
|
if (numInstances > MAX_PICKING_COLOR_CACHE_SIZE) {
|
|
29998
|
-
log$
|
|
29998
|
+
log$5.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
|
|
29999
29999
|
}
|
|
30000
30000
|
pickingColorCache = defaultTypedArrayManager.allocate(pickingColorCache, numInstances, {
|
|
30001
30001
|
size: 3,
|
|
@@ -30077,7 +30077,7 @@ class Layer extends Component {
|
|
|
30077
30077
|
this.state = {};
|
|
30078
30078
|
Object.defineProperty(this.state, "attributeManager", {
|
|
30079
30079
|
get: () => {
|
|
30080
|
-
log$
|
|
30080
|
+
log$5.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
|
|
30081
30081
|
return attributeManager;
|
|
30082
30082
|
}
|
|
30083
30083
|
});
|
|
@@ -31376,7 +31376,7 @@ const esm$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
31376
31376
|
createIterable,
|
|
31377
31377
|
fp64LowPart,
|
|
31378
31378
|
gouraudLighting,
|
|
31379
|
-
log: log$
|
|
31379
|
+
log: log$5,
|
|
31380
31380
|
phongLighting,
|
|
31381
31381
|
picking,
|
|
31382
31382
|
project: project$1,
|
|
@@ -32437,7 +32437,7 @@ class IconLayer extends Layer {
|
|
|
32437
32437
|
if (onIconError) {
|
|
32438
32438
|
onIconError(evt);
|
|
32439
32439
|
} else {
|
|
32440
|
-
log$
|
|
32440
|
+
log$5.error(evt.error.message)();
|
|
32441
32441
|
}
|
|
32442
32442
|
}
|
|
32443
32443
|
getInstanceOffset(icon) {
|
|
@@ -33854,7 +33854,7 @@ function tesselateColumn(props) {
|
|
|
33854
33854
|
vertices
|
|
33855
33855
|
} = props;
|
|
33856
33856
|
if (vertices) {
|
|
33857
|
-
log$
|
|
33857
|
+
log$5.assert(vertices.length >= nradial);
|
|
33858
33858
|
vertices = vertices.flatMap((v) => [v[0], v[1]]);
|
|
33859
33859
|
modifyPolygonWindingDirection(vertices, WINDING.COUNTER_CLOCKWISE);
|
|
33860
33860
|
}
|
|
@@ -35861,7 +35861,7 @@ class PolygonLayer extends CompositeLayer {
|
|
|
35861
35861
|
paths: []
|
|
35862
35862
|
};
|
|
35863
35863
|
if (this.props.getLineDashArray) {
|
|
35864
|
-
log$
|
|
35864
|
+
log$5.removed("getLineDashArray", "PathStyleExtension")();
|
|
35865
35865
|
}
|
|
35866
35866
|
}
|
|
35867
35867
|
updateState({
|
|
@@ -36133,7 +36133,7 @@ class MultiIconLayer extends IconLayer {
|
|
|
36133
36133
|
});
|
|
36134
36134
|
}
|
|
36135
36135
|
if (!props.sdf && props.outlineWidth) {
|
|
36136
|
-
log$
|
|
36136
|
+
log$5.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
|
|
36137
36137
|
}
|
|
36138
36138
|
}
|
|
36139
36139
|
draw(params) {
|
|
@@ -36436,7 +36436,7 @@ function transformRow(line, startIndex, endIndex, iconMapping, leftOffsets, rowS
|
|
|
36436
36436
|
leftOffsets[i2] = x2 + frame.width / 2;
|
|
36437
36437
|
x2 += frame.width;
|
|
36438
36438
|
} else {
|
|
36439
|
-
log$
|
|
36439
|
+
log$5.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
|
|
36440
36440
|
leftOffsets[i2] = x2;
|
|
36441
36441
|
x2 += MISSING_CHAR_WIDTH;
|
|
36442
36442
|
}
|
|
@@ -36630,7 +36630,7 @@ function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
|
|
|
36630
36630
|
ctx.textAlign = "left";
|
|
36631
36631
|
}
|
|
36632
36632
|
function setFontAtlasCacheLimit(limit) {
|
|
36633
|
-
log$
|
|
36633
|
+
log$5.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
|
|
36634
36634
|
cache = new LRUCache(limit);
|
|
36635
36635
|
}
|
|
36636
36636
|
class FontAtlasManager {
|
|
@@ -37452,12 +37452,12 @@ function getGeojsonFeatures(geojson) {
|
|
|
37452
37452
|
if (Array.isArray(geojson)) {
|
|
37453
37453
|
return geojson;
|
|
37454
37454
|
}
|
|
37455
|
-
log$
|
|
37455
|
+
log$5.assert(geojson.type, "GeoJSON does not have type");
|
|
37456
37456
|
switch (geojson.type) {
|
|
37457
37457
|
case "Feature":
|
|
37458
37458
|
return [geojson];
|
|
37459
37459
|
case "FeatureCollection":
|
|
37460
|
-
log$
|
|
37460
|
+
log$5.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
|
|
37461
37461
|
return geojson.features;
|
|
37462
37462
|
default:
|
|
37463
37463
|
return [{
|
|
@@ -37485,7 +37485,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
|
|
|
37485
37485
|
continue;
|
|
37486
37486
|
}
|
|
37487
37487
|
if (geometry2.type === "GeometryCollection") {
|
|
37488
|
-
log$
|
|
37488
|
+
log$5.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
|
|
37489
37489
|
const {
|
|
37490
37490
|
geometries
|
|
37491
37491
|
} = geometry2;
|
|
@@ -37511,7 +37511,7 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
|
|
|
37511
37511
|
polygonOutlineFeatures
|
|
37512
37512
|
} = separated;
|
|
37513
37513
|
if (!validateGeometry(type2, coordinates2)) {
|
|
37514
|
-
log$
|
|
37514
|
+
log$5.warn("".concat(type2, " coordinates are malformed"))();
|
|
37515
37515
|
return;
|
|
37516
37516
|
}
|
|
37517
37517
|
switch (type2) {
|
|
@@ -37588,7 +37588,7 @@ const COORDINATE_NEST_LEVEL = {
|
|
|
37588
37588
|
};
|
|
37589
37589
|
function validateGeometry(type2, coordinates2) {
|
|
37590
37590
|
let nestLevel = COORDINATE_NEST_LEVEL[type2];
|
|
37591
|
-
log$
|
|
37591
|
+
log$5.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
|
|
37592
37592
|
while (coordinates2 && --nestLevel > 0) {
|
|
37593
37593
|
coordinates2 = coordinates2[0];
|
|
37594
37594
|
}
|
|
@@ -38856,7 +38856,7 @@ class Tile2DHeader {
|
|
|
38856
38856
|
get byteLength() {
|
|
38857
38857
|
const result = this.content ? this.content.byteLength : 0;
|
|
38858
38858
|
if (!Number.isFinite(result)) {
|
|
38859
|
-
log$
|
|
38859
|
+
log$5.error("byteLength not defined in tile data")();
|
|
38860
38860
|
}
|
|
38861
38861
|
return result;
|
|
38862
38862
|
}
|
|
@@ -52651,7 +52651,7 @@ function validateGeometryAttributes$1(attributes, useMeshColors) {
|
|
|
52651
52651
|
value: new Float32Array([1, 1, 1])
|
|
52652
52652
|
};
|
|
52653
52653
|
}
|
|
52654
|
-
log$
|
|
52654
|
+
log$5.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
|
|
52655
52655
|
}
|
|
52656
52656
|
function getGeometry(data, useMeshColors) {
|
|
52657
52657
|
if (data.attributes) {
|
|
@@ -52993,7 +52993,7 @@ class GroupNode extends ScenegraphNode {
|
|
|
52993
52993
|
const {
|
|
52994
52994
|
children = []
|
|
52995
52995
|
} = props;
|
|
52996
|
-
log$
|
|
52996
|
+
log$4.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
|
|
52997
52997
|
super(props);
|
|
52998
52998
|
this.children = children;
|
|
52999
52999
|
}
|
|
@@ -53185,7 +53185,7 @@ function interpolate$1(time, _ref2, target, path) {
|
|
|
53185
53185
|
target[path] = [1, 1, 1];
|
|
53186
53186
|
break;
|
|
53187
53187
|
default:
|
|
53188
|
-
log$
|
|
53188
|
+
log$4.warn("Bad animation path ".concat(path))();
|
|
53189
53189
|
}
|
|
53190
53190
|
}
|
|
53191
53191
|
assert$9(target[path].length === output[previousIndex].length);
|
|
@@ -53220,7 +53220,7 @@ function interpolate$1(time, _ref2, target, path) {
|
|
|
53220
53220
|
}
|
|
53221
53221
|
break;
|
|
53222
53222
|
default:
|
|
53223
|
-
log$
|
|
53223
|
+
log$4.warn("Interpolation ".concat(interpolation, " not supported"))();
|
|
53224
53224
|
break;
|
|
53225
53225
|
}
|
|
53226
53226
|
}
|
|
@@ -53466,7 +53466,7 @@ class GLTFMaterialParser {
|
|
|
53466
53466
|
this.defines.ALPHA_CUTOFF = 1;
|
|
53467
53467
|
this.uniforms.u_AlphaCutoff = alphaCutoff;
|
|
53468
53468
|
} else if (material.alphaMode === "BLEND") {
|
|
53469
|
-
log$
|
|
53469
|
+
log$4.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
|
|
53470
53470
|
Object.assign(this.parameters, {
|
|
53471
53471
|
blend: true,
|
|
53472
53472
|
blendEquation: this.gl.FUNC_ADD,
|
|
@@ -53495,7 +53495,7 @@ function createGLTFModel(gl, options) {
|
|
|
53495
53495
|
modelOptions
|
|
53496
53496
|
} = options;
|
|
53497
53497
|
const materialParser = new GLTFMaterialParser(gl, options);
|
|
53498
|
-
log$
|
|
53498
|
+
log$4.info(4, "createGLTFModel defines: ", materialParser.defines)();
|
|
53499
53499
|
const managedResources = [];
|
|
53500
53500
|
managedResources.push(...materialParser.generatedTextures);
|
|
53501
53501
|
managedResources.push(...Object.values(attributes).map((attribute) => attribute.buffer));
|
|
@@ -53605,7 +53605,7 @@ class GLTFInstantiator {
|
|
|
53605
53605
|
return gltfMesh._mesh;
|
|
53606
53606
|
}
|
|
53607
53607
|
getVertexCount(attributes) {
|
|
53608
|
-
log$
|
|
53608
|
+
log$4.warn("getVertexCount() not found")();
|
|
53609
53609
|
}
|
|
53610
53610
|
createPrimitive(gltfPrimitive, i2, gltfMesh) {
|
|
53611
53611
|
const model = createGLTFModel(this.gl, Object.assign({
|
|
@@ -53626,7 +53626,7 @@ class GLTFInstantiator {
|
|
|
53626
53626
|
if (indices) {
|
|
53627
53627
|
loadedAttributes.indices = this.createAccessor(indices, this.createBuffer(indices, this.gl.ELEMENT_ARRAY_BUFFER));
|
|
53628
53628
|
}
|
|
53629
|
-
log$
|
|
53629
|
+
log$4.info(4, "glTF Attributes", {
|
|
53630
53630
|
attributes,
|
|
53631
53631
|
indices,
|
|
53632
53632
|
generated: loadedAttributes
|
|
@@ -56952,7 +56952,7 @@ class ScenegraphLayer extends Layer {
|
|
|
56952
56952
|
};
|
|
56953
56953
|
waitForGLTFAssets(gltfObjects).then(() => this.setNeedsRedraw());
|
|
56954
56954
|
} else if (props.scenegraph) {
|
|
56955
|
-
log$
|
|
56955
|
+
log$5.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
|
|
56956
56956
|
scenegraphData = props.scenegraph;
|
|
56957
56957
|
}
|
|
56958
56958
|
const options = {
|
|
@@ -56970,7 +56970,7 @@ class ScenegraphLayer extends Layer {
|
|
|
56970
56970
|
animator
|
|
56971
56971
|
});
|
|
56972
56972
|
} else if (scenegraph !== null) {
|
|
56973
|
-
log$
|
|
56973
|
+
log$5.warn("invalid scenegraph:", scenegraph)();
|
|
56974
56974
|
}
|
|
56975
56975
|
}
|
|
56976
56976
|
_applyAllAttributes(scenegraph) {
|
|
@@ -56997,7 +56997,7 @@ class ScenegraphLayer extends Layer {
|
|
|
56997
56997
|
if (number2 >= 0 && number2 < animations.length) {
|
|
56998
56998
|
Object.assign(animations[number2], value);
|
|
56999
56999
|
} else {
|
|
57000
|
-
log$
|
|
57000
|
+
log$5.warn("animation ".concat(key, " not found"))();
|
|
57001
57001
|
}
|
|
57002
57002
|
} else {
|
|
57003
57003
|
const findResult = animations.find(({
|
|
@@ -57006,7 +57006,7 @@ class ScenegraphLayer extends Layer {
|
|
|
57006
57006
|
if (findResult) {
|
|
57007
57007
|
Object.assign(findResult, value);
|
|
57008
57008
|
} else {
|
|
57009
|
-
log$
|
|
57009
|
+
log$5.warn("animation ".concat(key, " not found"))();
|
|
57010
57010
|
}
|
|
57011
57011
|
}
|
|
57012
57012
|
});
|
|
@@ -61477,7 +61477,7 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
61477
61477
|
}
|
|
61478
61478
|
initializeState() {
|
|
61479
61479
|
if ("onTileLoadFail" in this.props) {
|
|
61480
|
-
log$
|
|
61480
|
+
log$5.removed("onTileLoadFail", "onTileError")();
|
|
61481
61481
|
}
|
|
61482
61482
|
this.state = {
|
|
61483
61483
|
layerMap: {},
|
|
@@ -62647,7 +62647,7 @@ class TerrainLayer extends CompositeLayer {
|
|
|
62647
62647
|
});
|
|
62648
62648
|
}
|
|
62649
62649
|
if (props.workerUrl) {
|
|
62650
|
-
log$
|
|
62650
|
+
log$5.removed("workerUrl", "loadOptions.terrain.workerUrl")();
|
|
62651
62651
|
}
|
|
62652
62652
|
}
|
|
62653
62653
|
loadTerrain({
|
|
@@ -65097,7 +65097,7 @@ class MVTLayer extends TileLayer {
|
|
|
65097
65097
|
}
|
|
65098
65098
|
const subLayers = super.renderSubLayers(props);
|
|
65099
65099
|
if (this.state.binary && !(subLayers instanceof GeoJsonLayer)) {
|
|
65100
|
-
log$
|
|
65100
|
+
log$5.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
|
|
65101
65101
|
}
|
|
65102
65102
|
return subLayers;
|
|
65103
65103
|
}
|
|
@@ -65457,7 +65457,7 @@ function point(coordinates2, properties, options) {
|
|
|
65457
65457
|
if (coordinates2.length < 2) {
|
|
65458
65458
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
65459
65459
|
}
|
|
65460
|
-
if (!isNumber$
|
|
65460
|
+
if (!isNumber$2(coordinates2[0]) || !isNumber$2(coordinates2[1])) {
|
|
65461
65461
|
throw new Error("coordinates must contain numbers");
|
|
65462
65462
|
}
|
|
65463
65463
|
var geom = {
|
|
@@ -65658,10 +65658,10 @@ function convertArea(area2, originalUnit, finalUnit) {
|
|
|
65658
65658
|
}
|
|
65659
65659
|
return area2 / startFactor * finalFactor;
|
|
65660
65660
|
}
|
|
65661
|
-
function isNumber$
|
|
65661
|
+
function isNumber$2(num) {
|
|
65662
65662
|
return !isNaN(num) && num !== null && !Array.isArray(num);
|
|
65663
65663
|
}
|
|
65664
|
-
function isObject$
|
|
65664
|
+
function isObject$4(input) {
|
|
65665
65665
|
return !!input && input.constructor === Object;
|
|
65666
65666
|
}
|
|
65667
65667
|
function validateBBox(bbox2) {
|
|
@@ -65675,7 +65675,7 @@ function validateBBox(bbox2) {
|
|
|
65675
65675
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
65676
65676
|
}
|
|
65677
65677
|
bbox2.forEach(function(num) {
|
|
65678
|
-
if (!isNumber$
|
|
65678
|
+
if (!isNumber$2(num)) {
|
|
65679
65679
|
throw new Error("bbox must only contain numbers");
|
|
65680
65680
|
}
|
|
65681
65681
|
});
|
|
@@ -65701,8 +65701,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
65701
65701
|
featureCollection: featureCollection$1,
|
|
65702
65702
|
geometry,
|
|
65703
65703
|
geometryCollection,
|
|
65704
|
-
isNumber: isNumber$
|
|
65705
|
-
isObject: isObject$
|
|
65704
|
+
isNumber: isNumber$2,
|
|
65705
|
+
isObject: isObject$4,
|
|
65706
65706
|
lengthToDegrees,
|
|
65707
65707
|
lengthToRadians,
|
|
65708
65708
|
lineString,
|
|
@@ -66144,7 +66144,7 @@ function lineReduce$1(geojson, callback, initialValue) {
|
|
|
66144
66144
|
}
|
|
66145
66145
|
function findSegment$1(geojson, options) {
|
|
66146
66146
|
options = options || {};
|
|
66147
|
-
if (!isObject$
|
|
66147
|
+
if (!isObject$4(options))
|
|
66148
66148
|
throw new Error("options is invalid");
|
|
66149
66149
|
var featureIndex = options.featureIndex || 0;
|
|
66150
66150
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -66236,7 +66236,7 @@ function findSegment$1(geojson, options) {
|
|
|
66236
66236
|
}
|
|
66237
66237
|
function findPoint$1(geojson, options) {
|
|
66238
66238
|
options = options || {};
|
|
66239
|
-
if (!isObject$
|
|
66239
|
+
if (!isObject$4(options))
|
|
66240
66240
|
throw new Error("options is invalid");
|
|
66241
66241
|
var featureIndex = options.featureIndex || 0;
|
|
66242
66242
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -66380,7 +66380,7 @@ function getCoords$1(coords) {
|
|
|
66380
66380
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
66381
66381
|
}
|
|
66382
66382
|
function containsNumber$1(coordinates2) {
|
|
66383
|
-
if (coordinates2.length > 1 && isNumber$
|
|
66383
|
+
if (coordinates2.length > 1 && isNumber$2(coordinates2[0]) && isNumber$2(coordinates2[1])) {
|
|
66384
66384
|
return true;
|
|
66385
66385
|
}
|
|
66386
66386
|
if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
|
|
@@ -69436,7 +69436,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
|
|
|
69436
69436
|
var toStr$1 = Object.prototype.toString;
|
|
69437
69437
|
var concat = Array.prototype.concat;
|
|
69438
69438
|
var defineDataProperty2 = defineDataProperty$1;
|
|
69439
|
-
var isFunction$
|
|
69439
|
+
var isFunction$3 = function(fn) {
|
|
69440
69440
|
return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
|
|
69441
69441
|
};
|
|
69442
69442
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -69446,7 +69446,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
|
|
|
69446
69446
|
if (object2[name2] === value) {
|
|
69447
69447
|
return;
|
|
69448
69448
|
}
|
|
69449
|
-
} else if (!isFunction$
|
|
69449
|
+
} else if (!isFunction$3(predicate) || !predicate()) {
|
|
69450
69450
|
return;
|
|
69451
69451
|
}
|
|
69452
69452
|
}
|
|
@@ -69830,7 +69830,7 @@ function lineOverlap(line1, line2, options) {
|
|
|
69830
69830
|
options = {};
|
|
69831
69831
|
}
|
|
69832
69832
|
options = options || {};
|
|
69833
|
-
if (!isObject$
|
|
69833
|
+
if (!isObject$4(options))
|
|
69834
69834
|
throw new Error("options is invalid");
|
|
69835
69835
|
var tolerance = options.tolerance || 0;
|
|
69836
69836
|
var features = [];
|
|
@@ -70390,19 +70390,19 @@ var jsts_min = { exports: {} };
|
|
|
70390
70390
|
}, Object.defineProperties(w2, O);
|
|
70391
70391
|
var T = function(t2, e3) {
|
|
70392
70392
|
return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
|
|
70393
|
-
},
|
|
70393
|
+
}, R = function() {
|
|
70394
70394
|
}, P2 = { LOG_10: { configurable: true } };
|
|
70395
|
-
|
|
70395
|
+
R.prototype.interfaces_ = function() {
|
|
70396
70396
|
return [];
|
|
70397
|
-
},
|
|
70398
|
-
return
|
|
70399
|
-
},
|
|
70397
|
+
}, R.prototype.getClass = function() {
|
|
70398
|
+
return R;
|
|
70399
|
+
}, R.log10 = function(t2) {
|
|
70400
70400
|
var e3 = Math.log(t2);
|
|
70401
|
-
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 /
|
|
70402
|
-
},
|
|
70401
|
+
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
|
|
70402
|
+
}, R.min = function(t2, e3, n4, i3) {
|
|
70403
70403
|
var r3 = t2;
|
|
70404
70404
|
return e3 < r3 && (r3 = e3), n4 < r3 && (r3 = n4), i3 < r3 && (r3 = i3), r3;
|
|
70405
|
-
},
|
|
70405
|
+
}, R.clamp = function() {
|
|
70406
70406
|
if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
|
|
70407
70407
|
var t2 = arguments[0], e3 = arguments[1], n4 = arguments[2];
|
|
70408
70408
|
return t2 < e3 ? e3 : t2 > n4 ? n4 : t2;
|
|
@@ -70411,9 +70411,9 @@ var jsts_min = { exports: {} };
|
|
|
70411
70411
|
var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
|
|
70412
70412
|
return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
|
|
70413
70413
|
}
|
|
70414
|
-
},
|
|
70414
|
+
}, R.wrap = function(t2, e3) {
|
|
70415
70415
|
return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
|
|
70416
|
-
},
|
|
70416
|
+
}, R.max = function() {
|
|
70417
70417
|
if (3 === arguments.length) {
|
|
70418
70418
|
var t2 = arguments[0], e3 = arguments[1], n4 = arguments[2], i3 = t2;
|
|
70419
70419
|
return e3 > i3 && (i3 = e3), n4 > i3 && (i3 = n4), i3;
|
|
@@ -70422,11 +70422,11 @@ var jsts_min = { exports: {} };
|
|
|
70422
70422
|
var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
|
|
70423
70423
|
return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
|
|
70424
70424
|
}
|
|
70425
|
-
},
|
|
70425
|
+
}, R.average = function(t2, e3) {
|
|
70426
70426
|
return (t2 + e3) / 2;
|
|
70427
70427
|
}, P2.LOG_10.get = function() {
|
|
70428
70428
|
return Math.log(10);
|
|
70429
|
-
}, Object.defineProperties(
|
|
70429
|
+
}, Object.defineProperties(R, P2);
|
|
70430
70430
|
var D2 = function(t2) {
|
|
70431
70431
|
this.str = t2;
|
|
70432
70432
|
};
|
|
@@ -71581,7 +71581,7 @@ var jsts_min = { exports: {} };
|
|
|
71581
71581
|
}
|
|
71582
71582
|
} else
|
|
71583
71583
|
r3 = true;
|
|
71584
|
-
return r3 ?
|
|
71584
|
+
return r3 ? R.min(at.distancePointLine(t2, n4, i3), at.distancePointLine(e3, n4, i3), at.distancePointLine(n4, t2, e3), at.distancePointLine(i3, t2, e3)) : 0;
|
|
71585
71585
|
}, at.isPointInRing = function(t2, e3) {
|
|
71586
71586
|
return at.locatePointInRing(t2, e3) !== w2.EXTERIOR;
|
|
71587
71587
|
}, at.computeLength = function(t2) {
|
|
@@ -72171,8 +72171,8 @@ var jsts_min = { exports: {} };
|
|
|
72171
72171
|
(null === e3 || e3.compareTo(t2[n4]) > 0) && (e3 = t2[n4]);
|
|
72172
72172
|
return e3;
|
|
72173
72173
|
}, Lt.extract = function(t2, e3, n4) {
|
|
72174
|
-
e3 =
|
|
72175
|
-
var i3 = (n4 =
|
|
72174
|
+
e3 = R.clamp(e3, 0, t2.length);
|
|
72175
|
+
var i3 = (n4 = R.clamp(n4, -1, t2.length)) - e3 + 1;
|
|
72176
72176
|
n4 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n4 < e3 && (i3 = 0);
|
|
72177
72177
|
var r3 = new Array(i3).fill(null);
|
|
72178
72178
|
if (0 === i3)
|
|
@@ -77917,7 +77917,7 @@ var jsts_min = { exports: {} };
|
|
|
77917
77917
|
return f3.getResultGeometry(c2);
|
|
77918
77918
|
}
|
|
77919
77919
|
}, di.precisionScaleFactor = function(t2, e3, n4) {
|
|
77920
|
-
var i3 = t2.getEnvelopeInternal(), r3 =
|
|
77920
|
+
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 = n4 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
|
|
77921
77921
|
return Math.pow(10, o3);
|
|
77922
77922
|
}, yi.CAP_ROUND.get = function() {
|
|
77923
77923
|
return Cn.CAP_ROUND;
|
|
@@ -80278,7 +80278,7 @@ var atan2$1 = Math.atan2;
|
|
|
80278
80278
|
var cos$1 = Math.cos;
|
|
80279
80279
|
var ceil$2 = Math.ceil;
|
|
80280
80280
|
var exp$1 = Math.exp;
|
|
80281
|
-
var log$
|
|
80281
|
+
var log$2 = Math.log;
|
|
80282
80282
|
var pow$2 = Math.pow;
|
|
80283
80283
|
var sin$1 = Math.sin;
|
|
80284
80284
|
var sign$1 = Math.sign || function(x2) {
|
|
@@ -82374,7 +82374,7 @@ function azimuthalEquidistant() {
|
|
|
82374
82374
|
return projection(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180 - 1e-3);
|
|
82375
82375
|
}
|
|
82376
82376
|
function mercatorRaw(lambda, phi) {
|
|
82377
|
-
return [lambda, log$
|
|
82377
|
+
return [lambda, log$2(tan$1((halfPi + phi) / 2))];
|
|
82378
82378
|
}
|
|
82379
82379
|
mercatorRaw.invert = function(x2, y2) {
|
|
82380
82380
|
return [x2, 2 * atan$1(exp$1(y2)) - halfPi];
|
|
@@ -82406,7 +82406,7 @@ function tany(y2) {
|
|
|
82406
82406
|
return tan$1((halfPi + y2) / 2);
|
|
82407
82407
|
}
|
|
82408
82408
|
function conicConformalRaw(y02, y12) {
|
|
82409
|
-
var cy0 = cos$1(y02), n3 = y02 === y12 ? sin$1(y02) : log$
|
|
82409
|
+
var cy0 = cos$1(y02), n3 = y02 === y12 ? sin$1(y02) : log$2(cy0 / cos$1(y12)) / log$2(tany(y12) / tany(y02)), f2 = cy0 * pow$2(tany(y02), n3) / n3;
|
|
82410
82410
|
if (!n3)
|
|
82411
82411
|
return mercatorRaw;
|
|
82412
82412
|
function project2(x2, y2) {
|
|
@@ -82540,7 +82540,7 @@ function stereographic() {
|
|
|
82540
82540
|
return projection(stereographicRaw).scale(250).clipAngle(142);
|
|
82541
82541
|
}
|
|
82542
82542
|
function transverseMercatorRaw(lambda, phi) {
|
|
82543
|
-
return [log$
|
|
82543
|
+
return [log$2(tan$1((halfPi + phi) / 2)), -lambda];
|
|
82544
82544
|
}
|
|
82545
82545
|
transverseMercatorRaw.invert = function(x2, y2) {
|
|
82546
82546
|
return [-y2, 2 * atan$1(exp$1(x2)) - halfPi];
|
|
@@ -85308,372 +85308,216 @@ var layerMouseEvent = {};
|
|
|
85308
85308
|
exports2["default"] = LayerMouseEvent;
|
|
85309
85309
|
})(layerMouseEvent);
|
|
85310
85310
|
var nebulaLayer = {};
|
|
85311
|
-
var events = { exports: {} };
|
|
85312
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
85313
|
-
var ReflectApply$1 = R && typeof R.apply === "function" ? R.apply : function ReflectApply(target, receiver, args) {
|
|
85314
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
85315
|
-
};
|
|
85316
|
-
var ReflectOwnKeys$1;
|
|
85317
|
-
if (R && typeof R.ownKeys === "function") {
|
|
85318
|
-
ReflectOwnKeys$1 = R.ownKeys;
|
|
85319
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
85320
|
-
ReflectOwnKeys$1 = function ReflectOwnKeys2(target) {
|
|
85321
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
85322
|
-
};
|
|
85323
|
-
} else {
|
|
85324
|
-
ReflectOwnKeys$1 = function ReflectOwnKeys2(target) {
|
|
85325
|
-
return Object.getOwnPropertyNames(target);
|
|
85326
|
-
};
|
|
85327
|
-
}
|
|
85328
|
-
function ProcessEmitWarning(warning) {
|
|
85329
|
-
if (console && console.warn)
|
|
85330
|
-
console.warn(warning);
|
|
85331
|
-
}
|
|
85332
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
85333
|
-
return value !== value;
|
|
85334
|
-
};
|
|
85335
85311
|
function EventEmitter() {
|
|
85336
|
-
|
|
85312
|
+
this._events = this._events || {};
|
|
85313
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
85337
85314
|
}
|
|
85338
|
-
events
|
|
85339
|
-
events.exports.once = once2;
|
|
85315
|
+
var events = EventEmitter;
|
|
85340
85316
|
EventEmitter.EventEmitter = EventEmitter;
|
|
85341
85317
|
EventEmitter.prototype._events = void 0;
|
|
85342
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
85343
85318
|
EventEmitter.prototype._maxListeners = void 0;
|
|
85344
|
-
|
|
85345
|
-
function
|
|
85346
|
-
if (
|
|
85347
|
-
throw
|
|
85348
|
-
}
|
|
85349
|
-
}
|
|
85350
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
85351
|
-
enumerable: true,
|
|
85352
|
-
get: function() {
|
|
85353
|
-
return defaultMaxListeners;
|
|
85354
|
-
},
|
|
85355
|
-
set: function(arg) {
|
|
85356
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
85357
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
85358
|
-
}
|
|
85359
|
-
defaultMaxListeners = arg;
|
|
85360
|
-
}
|
|
85361
|
-
});
|
|
85362
|
-
EventEmitter.init = function() {
|
|
85363
|
-
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
85364
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
85365
|
-
this._eventsCount = 0;
|
|
85366
|
-
}
|
|
85367
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
85368
|
-
};
|
|
85369
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n3) {
|
|
85370
|
-
if (typeof n3 !== "number" || n3 < 0 || NumberIsNaN(n3)) {
|
|
85371
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n3 + ".");
|
|
85372
|
-
}
|
|
85319
|
+
EventEmitter.defaultMaxListeners = 10;
|
|
85320
|
+
EventEmitter.prototype.setMaxListeners = function(n3) {
|
|
85321
|
+
if (!isNumber$1(n3) || n3 < 0 || isNaN(n3))
|
|
85322
|
+
throw TypeError("n must be a positive number");
|
|
85373
85323
|
this._maxListeners = n3;
|
|
85374
85324
|
return this;
|
|
85375
85325
|
};
|
|
85376
|
-
function
|
|
85377
|
-
|
|
85378
|
-
|
|
85379
|
-
|
|
85380
|
-
|
|
85381
|
-
|
|
85382
|
-
|
|
85383
|
-
|
|
85384
|
-
|
|
85385
|
-
|
|
85386
|
-
|
|
85387
|
-
|
|
85388
|
-
|
|
85389
|
-
|
|
85390
|
-
|
|
85391
|
-
|
|
85392
|
-
|
|
85393
|
-
|
|
85394
|
-
if (doError) {
|
|
85395
|
-
var er;
|
|
85396
|
-
if (args.length > 0)
|
|
85397
|
-
er = args[0];
|
|
85398
|
-
if (er instanceof Error) {
|
|
85399
|
-
throw er;
|
|
85400
|
-
}
|
|
85401
|
-
var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
85402
|
-
err2.context = er;
|
|
85403
|
-
throw err2;
|
|
85404
|
-
}
|
|
85405
|
-
var handler = events2[type2];
|
|
85406
|
-
if (handler === void 0)
|
|
85326
|
+
EventEmitter.prototype.emit = function(type2) {
|
|
85327
|
+
var er, handler, len2, args, i2, listeners;
|
|
85328
|
+
if (!this._events)
|
|
85329
|
+
this._events = {};
|
|
85330
|
+
if (type2 === "error") {
|
|
85331
|
+
if (!this._events.error || isObject$3(this._events.error) && !this._events.error.length) {
|
|
85332
|
+
er = arguments[1];
|
|
85333
|
+
if (er instanceof Error) {
|
|
85334
|
+
throw er;
|
|
85335
|
+
} else {
|
|
85336
|
+
var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
|
|
85337
|
+
err2.context = er;
|
|
85338
|
+
throw err2;
|
|
85339
|
+
}
|
|
85340
|
+
}
|
|
85341
|
+
}
|
|
85342
|
+
handler = this._events[type2];
|
|
85343
|
+
if (isUndefined$1(handler))
|
|
85407
85344
|
return false;
|
|
85408
|
-
if (
|
|
85409
|
-
|
|
85410
|
-
|
|
85411
|
-
|
|
85412
|
-
|
|
85413
|
-
|
|
85414
|
-
|
|
85345
|
+
if (isFunction$2(handler)) {
|
|
85346
|
+
switch (arguments.length) {
|
|
85347
|
+
case 1:
|
|
85348
|
+
handler.call(this);
|
|
85349
|
+
break;
|
|
85350
|
+
case 2:
|
|
85351
|
+
handler.call(this, arguments[1]);
|
|
85352
|
+
break;
|
|
85353
|
+
case 3:
|
|
85354
|
+
handler.call(this, arguments[1], arguments[2]);
|
|
85355
|
+
break;
|
|
85356
|
+
default:
|
|
85357
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
85358
|
+
handler.apply(this, args);
|
|
85359
|
+
}
|
|
85360
|
+
} else if (isObject$3(handler)) {
|
|
85361
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
85362
|
+
listeners = handler.slice();
|
|
85363
|
+
len2 = listeners.length;
|
|
85364
|
+
for (i2 = 0; i2 < len2; i2++)
|
|
85365
|
+
listeners[i2].apply(this, args);
|
|
85415
85366
|
}
|
|
85416
85367
|
return true;
|
|
85417
85368
|
};
|
|
85418
|
-
function
|
|
85369
|
+
EventEmitter.prototype.addListener = function(type2, listener) {
|
|
85419
85370
|
var m;
|
|
85420
|
-
|
|
85421
|
-
|
|
85422
|
-
|
|
85423
|
-
|
|
85424
|
-
if (
|
|
85425
|
-
|
|
85426
|
-
|
|
85427
|
-
|
|
85428
|
-
|
|
85429
|
-
|
|
85430
|
-
|
|
85431
|
-
|
|
85432
|
-
|
|
85433
|
-
|
|
85434
|
-
|
|
85435
|
-
|
|
85436
|
-
|
|
85437
|
-
|
|
85438
|
-
|
|
85439
|
-
existing = events2[type2] = listener;
|
|
85440
|
-
++target._eventsCount;
|
|
85441
|
-
} else {
|
|
85442
|
-
if (typeof existing === "function") {
|
|
85443
|
-
existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
|
|
85444
|
-
} else if (prepend) {
|
|
85445
|
-
existing.unshift(listener);
|
|
85371
|
+
if (!isFunction$2(listener))
|
|
85372
|
+
throw TypeError("listener must be a function");
|
|
85373
|
+
if (!this._events)
|
|
85374
|
+
this._events = {};
|
|
85375
|
+
if (this._events.newListener)
|
|
85376
|
+
this.emit(
|
|
85377
|
+
"newListener",
|
|
85378
|
+
type2,
|
|
85379
|
+
isFunction$2(listener.listener) ? listener.listener : listener
|
|
85380
|
+
);
|
|
85381
|
+
if (!this._events[type2])
|
|
85382
|
+
this._events[type2] = listener;
|
|
85383
|
+
else if (isObject$3(this._events[type2]))
|
|
85384
|
+
this._events[type2].push(listener);
|
|
85385
|
+
else
|
|
85386
|
+
this._events[type2] = [this._events[type2], listener];
|
|
85387
|
+
if (isObject$3(this._events[type2]) && !this._events[type2].warned) {
|
|
85388
|
+
if (!isUndefined$1(this._maxListeners)) {
|
|
85389
|
+
m = this._maxListeners;
|
|
85446
85390
|
} else {
|
|
85447
|
-
|
|
85391
|
+
m = EventEmitter.defaultMaxListeners;
|
|
85448
85392
|
}
|
|
85449
|
-
m
|
|
85450
|
-
|
|
85451
|
-
|
|
85452
|
-
|
|
85453
|
-
|
|
85454
|
-
|
|
85455
|
-
|
|
85456
|
-
|
|
85457
|
-
|
|
85393
|
+
if (m && m > 0 && this._events[type2].length > m) {
|
|
85394
|
+
this._events[type2].warned = true;
|
|
85395
|
+
console.error(
|
|
85396
|
+
"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
|
|
85397
|
+
this._events[type2].length
|
|
85398
|
+
);
|
|
85399
|
+
if (typeof console.trace === "function") {
|
|
85400
|
+
console.trace();
|
|
85401
|
+
}
|
|
85458
85402
|
}
|
|
85459
85403
|
}
|
|
85460
|
-
return target;
|
|
85461
|
-
}
|
|
85462
|
-
EventEmitter.prototype.addListener = function addListener(type2, listener) {
|
|
85463
|
-
return _addListener(this, type2, listener, false);
|
|
85464
|
-
};
|
|
85465
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
85466
|
-
EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
|
|
85467
|
-
return _addListener(this, type2, listener, true);
|
|
85468
|
-
};
|
|
85469
|
-
function onceWrapper() {
|
|
85470
|
-
if (!this.fired) {
|
|
85471
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
85472
|
-
this.fired = true;
|
|
85473
|
-
if (arguments.length === 0)
|
|
85474
|
-
return this.listener.call(this.target);
|
|
85475
|
-
return this.listener.apply(this.target, arguments);
|
|
85476
|
-
}
|
|
85477
|
-
}
|
|
85478
|
-
function _onceWrap(target, type2, listener) {
|
|
85479
|
-
var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
|
|
85480
|
-
var wrapped = onceWrapper.bind(state);
|
|
85481
|
-
wrapped.listener = listener;
|
|
85482
|
-
state.wrapFn = wrapped;
|
|
85483
|
-
return wrapped;
|
|
85484
|
-
}
|
|
85485
|
-
EventEmitter.prototype.once = function once(type2, listener) {
|
|
85486
|
-
checkListener(listener);
|
|
85487
|
-
this.on(type2, _onceWrap(this, type2, listener));
|
|
85488
85404
|
return this;
|
|
85489
85405
|
};
|
|
85490
|
-
EventEmitter.prototype.
|
|
85491
|
-
|
|
85492
|
-
|
|
85406
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
85407
|
+
EventEmitter.prototype.once = function(type2, listener) {
|
|
85408
|
+
if (!isFunction$2(listener))
|
|
85409
|
+
throw TypeError("listener must be a function");
|
|
85410
|
+
var fired = false;
|
|
85411
|
+
function g2() {
|
|
85412
|
+
this.removeListener(type2, g2);
|
|
85413
|
+
if (!fired) {
|
|
85414
|
+
fired = true;
|
|
85415
|
+
listener.apply(this, arguments);
|
|
85416
|
+
}
|
|
85417
|
+
}
|
|
85418
|
+
g2.listener = listener;
|
|
85419
|
+
this.on(type2, g2);
|
|
85493
85420
|
return this;
|
|
85494
85421
|
};
|
|
85495
|
-
EventEmitter.prototype.removeListener = function
|
|
85496
|
-
var list,
|
|
85497
|
-
|
|
85498
|
-
|
|
85499
|
-
if (
|
|
85500
|
-
return this;
|
|
85501
|
-
list = events2[type2];
|
|
85502
|
-
if (list === void 0)
|
|
85422
|
+
EventEmitter.prototype.removeListener = function(type2, listener) {
|
|
85423
|
+
var list, position, length2, i2;
|
|
85424
|
+
if (!isFunction$2(listener))
|
|
85425
|
+
throw TypeError("listener must be a function");
|
|
85426
|
+
if (!this._events || !this._events[type2])
|
|
85503
85427
|
return this;
|
|
85504
|
-
|
|
85505
|
-
|
|
85506
|
-
|
|
85507
|
-
|
|
85508
|
-
|
|
85509
|
-
|
|
85510
|
-
|
|
85511
|
-
|
|
85512
|
-
|
|
85513
|
-
|
|
85514
|
-
for (i2 = list.length - 1; i2 >= 0; i2--) {
|
|
85515
|
-
if (list[i2] === listener || list[i2].listener === listener) {
|
|
85516
|
-
originalListener = list[i2].listener;
|
|
85428
|
+
list = this._events[type2];
|
|
85429
|
+
length2 = list.length;
|
|
85430
|
+
position = -1;
|
|
85431
|
+
if (list === listener || isFunction$2(list.listener) && list.listener === listener) {
|
|
85432
|
+
delete this._events[type2];
|
|
85433
|
+
if (this._events.removeListener)
|
|
85434
|
+
this.emit("removeListener", type2, listener);
|
|
85435
|
+
} else if (isObject$3(list)) {
|
|
85436
|
+
for (i2 = length2; i2-- > 0; ) {
|
|
85437
|
+
if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
|
|
85517
85438
|
position = i2;
|
|
85518
85439
|
break;
|
|
85519
85440
|
}
|
|
85520
85441
|
}
|
|
85521
85442
|
if (position < 0)
|
|
85522
85443
|
return this;
|
|
85523
|
-
if (
|
|
85524
|
-
list.
|
|
85525
|
-
|
|
85526
|
-
|
|
85444
|
+
if (list.length === 1) {
|
|
85445
|
+
list.length = 0;
|
|
85446
|
+
delete this._events[type2];
|
|
85447
|
+
} else {
|
|
85448
|
+
list.splice(position, 1);
|
|
85527
85449
|
}
|
|
85528
|
-
if (
|
|
85529
|
-
|
|
85530
|
-
if (events2.removeListener !== void 0)
|
|
85531
|
-
this.emit("removeListener", type2, originalListener || listener);
|
|
85450
|
+
if (this._events.removeListener)
|
|
85451
|
+
this.emit("removeListener", type2, listener);
|
|
85532
85452
|
}
|
|
85533
85453
|
return this;
|
|
85534
85454
|
};
|
|
85535
|
-
EventEmitter.prototype.
|
|
85536
|
-
|
|
85537
|
-
|
|
85538
|
-
events2 = this._events;
|
|
85539
|
-
if (events2 === void 0)
|
|
85455
|
+
EventEmitter.prototype.removeAllListeners = function(type2) {
|
|
85456
|
+
var key, listeners;
|
|
85457
|
+
if (!this._events)
|
|
85540
85458
|
return this;
|
|
85541
|
-
if (
|
|
85542
|
-
if (arguments.length === 0)
|
|
85543
|
-
this._events =
|
|
85544
|
-
|
|
85545
|
-
|
|
85546
|
-
if (--this._eventsCount === 0)
|
|
85547
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
85548
|
-
else
|
|
85549
|
-
delete events2[type2];
|
|
85550
|
-
}
|
|
85459
|
+
if (!this._events.removeListener) {
|
|
85460
|
+
if (arguments.length === 0)
|
|
85461
|
+
this._events = {};
|
|
85462
|
+
else if (this._events[type2])
|
|
85463
|
+
delete this._events[type2];
|
|
85551
85464
|
return this;
|
|
85552
85465
|
}
|
|
85553
85466
|
if (arguments.length === 0) {
|
|
85554
|
-
|
|
85555
|
-
var key;
|
|
85556
|
-
for (i2 = 0; i2 < keys3.length; ++i2) {
|
|
85557
|
-
key = keys3[i2];
|
|
85467
|
+
for (key in this._events) {
|
|
85558
85468
|
if (key === "removeListener")
|
|
85559
85469
|
continue;
|
|
85560
85470
|
this.removeAllListeners(key);
|
|
85561
85471
|
}
|
|
85562
85472
|
this.removeAllListeners("removeListener");
|
|
85563
|
-
this._events =
|
|
85564
|
-
this._eventsCount = 0;
|
|
85473
|
+
this._events = {};
|
|
85565
85474
|
return this;
|
|
85566
85475
|
}
|
|
85567
|
-
|
|
85568
|
-
if (
|
|
85569
|
-
this.removeListener(type2,
|
|
85570
|
-
} else if (
|
|
85571
|
-
|
|
85572
|
-
this.removeListener(type2,
|
|
85573
|
-
}
|
|
85476
|
+
listeners = this._events[type2];
|
|
85477
|
+
if (isFunction$2(listeners)) {
|
|
85478
|
+
this.removeListener(type2, listeners);
|
|
85479
|
+
} else if (listeners) {
|
|
85480
|
+
while (listeners.length)
|
|
85481
|
+
this.removeListener(type2, listeners[listeners.length - 1]);
|
|
85574
85482
|
}
|
|
85483
|
+
delete this._events[type2];
|
|
85575
85484
|
return this;
|
|
85576
85485
|
};
|
|
85577
|
-
function
|
|
85578
|
-
var
|
|
85579
|
-
if (
|
|
85580
|
-
|
|
85581
|
-
|
|
85582
|
-
|
|
85583
|
-
|
|
85584
|
-
|
|
85585
|
-
|
|
85586
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
85587
|
-
}
|
|
85588
|
-
EventEmitter.prototype.listeners = function listeners(type2) {
|
|
85589
|
-
return _listeners(this, type2, true);
|
|
85590
|
-
};
|
|
85591
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type2) {
|
|
85592
|
-
return _listeners(this, type2, false);
|
|
85593
|
-
};
|
|
85594
|
-
EventEmitter.listenerCount = function(emitter, type2) {
|
|
85595
|
-
if (typeof emitter.listenerCount === "function") {
|
|
85596
|
-
return emitter.listenerCount(type2);
|
|
85597
|
-
} else {
|
|
85598
|
-
return listenerCount.call(emitter, type2);
|
|
85599
|
-
}
|
|
85486
|
+
EventEmitter.prototype.listeners = function(type2) {
|
|
85487
|
+
var ret;
|
|
85488
|
+
if (!this._events || !this._events[type2])
|
|
85489
|
+
ret = [];
|
|
85490
|
+
else if (isFunction$2(this._events[type2]))
|
|
85491
|
+
ret = [this._events[type2]];
|
|
85492
|
+
else
|
|
85493
|
+
ret = this._events[type2].slice();
|
|
85494
|
+
return ret;
|
|
85600
85495
|
};
|
|
85601
|
-
EventEmitter.prototype.listenerCount =
|
|
85602
|
-
|
|
85603
|
-
|
|
85604
|
-
|
|
85605
|
-
var evlistener = events2[type2];
|
|
85606
|
-
if (typeof evlistener === "function") {
|
|
85496
|
+
EventEmitter.prototype.listenerCount = function(type2) {
|
|
85497
|
+
if (this._events) {
|
|
85498
|
+
var evlistener = this._events[type2];
|
|
85499
|
+
if (isFunction$2(evlistener))
|
|
85607
85500
|
return 1;
|
|
85608
|
-
|
|
85501
|
+
else if (evlistener)
|
|
85609
85502
|
return evlistener.length;
|
|
85610
|
-
}
|
|
85611
85503
|
}
|
|
85612
85504
|
return 0;
|
|
85613
|
-
}
|
|
85614
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
85615
|
-
return this._eventsCount > 0 ? ReflectOwnKeys$1(this._events) : [];
|
|
85616
85505
|
};
|
|
85617
|
-
function
|
|
85618
|
-
|
|
85619
|
-
|
|
85620
|
-
|
|
85621
|
-
return
|
|
85506
|
+
EventEmitter.listenerCount = function(emitter, type2) {
|
|
85507
|
+
return emitter.listenerCount(type2);
|
|
85508
|
+
};
|
|
85509
|
+
function isFunction$2(arg) {
|
|
85510
|
+
return typeof arg === "function";
|
|
85622
85511
|
}
|
|
85623
|
-
function
|
|
85624
|
-
|
|
85625
|
-
list[index2] = list[index2 + 1];
|
|
85626
|
-
list.pop();
|
|
85512
|
+
function isNumber$1(arg) {
|
|
85513
|
+
return typeof arg === "number";
|
|
85627
85514
|
}
|
|
85628
|
-
function
|
|
85629
|
-
|
|
85630
|
-
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
85631
|
-
ret[i2] = arr[i2].listener || arr[i2];
|
|
85632
|
-
}
|
|
85633
|
-
return ret;
|
|
85515
|
+
function isObject$3(arg) {
|
|
85516
|
+
return typeof arg === "object" && arg !== null;
|
|
85634
85517
|
}
|
|
85635
|
-
function
|
|
85636
|
-
return
|
|
85637
|
-
function errorListener(err2) {
|
|
85638
|
-
emitter.removeListener(name2, resolver);
|
|
85639
|
-
reject(err2);
|
|
85640
|
-
}
|
|
85641
|
-
function resolver() {
|
|
85642
|
-
if (typeof emitter.removeListener === "function") {
|
|
85643
|
-
emitter.removeListener("error", errorListener);
|
|
85644
|
-
}
|
|
85645
|
-
resolve([].slice.call(arguments));
|
|
85646
|
-
}
|
|
85647
|
-
eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
|
|
85648
|
-
if (name2 !== "error") {
|
|
85649
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
85650
|
-
}
|
|
85651
|
-
});
|
|
85652
|
-
}
|
|
85653
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
|
|
85654
|
-
if (typeof emitter.on === "function") {
|
|
85655
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
|
|
85656
|
-
}
|
|
85657
|
-
}
|
|
85658
|
-
function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
|
|
85659
|
-
if (typeof emitter.on === "function") {
|
|
85660
|
-
if (flags3.once) {
|
|
85661
|
-
emitter.once(name2, listener);
|
|
85662
|
-
} else {
|
|
85663
|
-
emitter.on(name2, listener);
|
|
85664
|
-
}
|
|
85665
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
85666
|
-
emitter.addEventListener(name2, function wrapListener(arg) {
|
|
85667
|
-
if (flags3.once) {
|
|
85668
|
-
emitter.removeEventListener(name2, wrapListener);
|
|
85669
|
-
}
|
|
85670
|
-
listener(arg);
|
|
85671
|
-
});
|
|
85672
|
-
} else {
|
|
85673
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
85674
|
-
}
|
|
85518
|
+
function isUndefined$1(arg) {
|
|
85519
|
+
return arg === void 0;
|
|
85675
85520
|
}
|
|
85676
|
-
var eventsExports = events.exports;
|
|
85677
85521
|
var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
85678
85522
|
var rnds8 = new Uint8Array(16);
|
|
85679
85523
|
function rng() {
|
|
@@ -86039,7 +85883,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
|
|
|
86039
85883
|
value: true
|
|
86040
85884
|
});
|
|
86041
85885
|
exports2["default"] = void 0;
|
|
86042
|
-
var _events = _interopRequireDefault2(
|
|
85886
|
+
var _events = _interopRequireDefault2(events);
|
|
86043
85887
|
var _uuid = _interopRequireDefault2(require$$1$3);
|
|
86044
85888
|
function _interopRequireDefault2(obj) {
|
|
86045
85889
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -86523,7 +86367,7 @@ function rhumbDistance$2(from, to, options) {
|
|
|
86523
86367
|
}
|
|
86524
86368
|
function calculateRhumbDistance(origin, destination2, radius) {
|
|
86525
86369
|
radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
|
|
86526
|
-
var
|
|
86370
|
+
var R = radius;
|
|
86527
86371
|
var phi12 = origin[1] * Math.PI / 180;
|
|
86528
86372
|
var phi2 = destination2[1] * Math.PI / 180;
|
|
86529
86373
|
var DeltaPhi = phi2 - phi12;
|
|
@@ -86534,7 +86378,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
|
|
|
86534
86378
|
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
|
|
86535
86379
|
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
|
|
86536
86380
|
var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
|
|
86537
|
-
var dist = delta *
|
|
86381
|
+
var dist = delta * R;
|
|
86538
86382
|
return dist;
|
|
86539
86383
|
}
|
|
86540
86384
|
js$e.default = rhumbDistance$2;
|
|
@@ -101081,7 +100925,7 @@ var document_1 = doccy;
|
|
|
101081
100925
|
value: true
|
|
101082
100926
|
});
|
|
101083
100927
|
exports2["default"] = void 0;
|
|
101084
|
-
var _events =
|
|
100928
|
+
var _events = events;
|
|
101085
100929
|
var _document = _interopRequireDefault2(document_1);
|
|
101086
100930
|
var _core = require$$2$2;
|
|
101087
100931
|
var _deckDrawer = _interopRequireDefault2(deckDrawer);
|
|
@@ -102997,7 +102841,7 @@ class SelectionExtension extends LayerExtension {
|
|
|
102997
102841
|
SelectionExtension.extensionName = "SelectionExtension";
|
|
102998
102842
|
function uncurryThis(target) {
|
|
102999
102843
|
return (thisArg, ...args) => {
|
|
103000
|
-
return
|
|
102844
|
+
return ReflectApply(target, thisArg, args);
|
|
103001
102845
|
};
|
|
103002
102846
|
}
|
|
103003
102847
|
function uncurryThisGetter(target, key) {
|
|
@@ -103009,7 +102853,7 @@ function uncurryThisGetter(target, key) {
|
|
|
103009
102853
|
);
|
|
103010
102854
|
}
|
|
103011
102855
|
const {
|
|
103012
|
-
apply:
|
|
102856
|
+
apply: ReflectApply,
|
|
103013
102857
|
construct: ReflectConstruct,
|
|
103014
102858
|
defineProperty: ReflectDefineProperty,
|
|
103015
102859
|
get: ReflectGet,
|
|
@@ -103681,16 +103525,16 @@ async function getDecoder(fileDirectory) {
|
|
|
103681
103525
|
const Decoder = await importFn();
|
|
103682
103526
|
return new Decoder(fileDirectory);
|
|
103683
103527
|
}
|
|
103684
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
103685
|
-
addDecoder(5, () => import("./lzw-
|
|
103528
|
+
addDecoder([void 0, 1], () => import("./raw-2e3daaf5.js").then((m) => m.default));
|
|
103529
|
+
addDecoder(5, () => import("./lzw-70ab864e.js").then((m) => m.default));
|
|
103686
103530
|
addDecoder(6, () => {
|
|
103687
103531
|
throw new Error("old style JPEG compression is not supported.");
|
|
103688
103532
|
});
|
|
103689
|
-
addDecoder(7, () => import("./jpeg-
|
|
103690
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
103691
|
-
addDecoder(32773, () => import("./packbits-
|
|
103692
|
-
addDecoder(34887, () => import("./lerc-
|
|
103693
|
-
addDecoder(50001, () => import("./webimage-
|
|
103533
|
+
addDecoder(7, () => import("./jpeg-a1a70411.js").then((m) => m.default));
|
|
103534
|
+
addDecoder([8, 32946], () => import("./deflate-b1b7c1a5.js").then((m) => m.default));
|
|
103535
|
+
addDecoder(32773, () => import("./packbits-fc34d3c1.js").then((m) => m.default));
|
|
103536
|
+
addDecoder(34887, () => import("./lerc-a64aa667.js").then((m) => m.default));
|
|
103537
|
+
addDecoder(50001, () => import("./webimage-8b6eefe8.js").then((m) => m.default));
|
|
103694
103538
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
103695
103539
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
103696
103540
|
}
|
|
@@ -110105,16 +109949,16 @@ createCommonjsModule(function(module2) {
|
|
|
110105
109949
|
if (!new Events().__proto__)
|
|
110106
109950
|
prefix = false;
|
|
110107
109951
|
}
|
|
110108
|
-
function EE(fn, context,
|
|
109952
|
+
function EE(fn, context, once) {
|
|
110109
109953
|
this.fn = fn;
|
|
110110
109954
|
this.context = context;
|
|
110111
|
-
this.once =
|
|
109955
|
+
this.once = once || false;
|
|
110112
109956
|
}
|
|
110113
|
-
function
|
|
109957
|
+
function addListener(emitter, event, fn, context, once) {
|
|
110114
109958
|
if (typeof fn !== "function") {
|
|
110115
109959
|
throw new TypeError("The listener must be a function");
|
|
110116
109960
|
}
|
|
110117
|
-
var listener = new EE(fn, context || emitter,
|
|
109961
|
+
var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;
|
|
110118
109962
|
if (!emitter._events[evt])
|
|
110119
109963
|
emitter._events[evt] = listener, emitter._eventsCount++;
|
|
110120
109964
|
else if (!emitter._events[evt].fn)
|
|
@@ -110133,7 +109977,7 @@ createCommonjsModule(function(module2) {
|
|
|
110133
109977
|
this._events = new Events();
|
|
110134
109978
|
this._eventsCount = 0;
|
|
110135
109979
|
}
|
|
110136
|
-
EventEmitter2.prototype.eventNames = function
|
|
109980
|
+
EventEmitter2.prototype.eventNames = function eventNames() {
|
|
110137
109981
|
var names = [], events2, name2;
|
|
110138
109982
|
if (this._eventsCount === 0)
|
|
110139
109983
|
return names;
|
|
@@ -110146,7 +109990,7 @@ createCommonjsModule(function(module2) {
|
|
|
110146
109990
|
}
|
|
110147
109991
|
return names;
|
|
110148
109992
|
};
|
|
110149
|
-
EventEmitter2.prototype.listeners = function
|
|
109993
|
+
EventEmitter2.prototype.listeners = function listeners(event) {
|
|
110150
109994
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
110151
109995
|
if (!handlers)
|
|
110152
109996
|
return [];
|
|
@@ -110157,76 +110001,76 @@ createCommonjsModule(function(module2) {
|
|
|
110157
110001
|
}
|
|
110158
110002
|
return ee;
|
|
110159
110003
|
};
|
|
110160
|
-
EventEmitter2.prototype.listenerCount = function
|
|
110161
|
-
var evt = prefix ? prefix + event : event,
|
|
110162
|
-
if (!
|
|
110004
|
+
EventEmitter2.prototype.listenerCount = function listenerCount(event) {
|
|
110005
|
+
var evt = prefix ? prefix + event : event, listeners = this._events[evt];
|
|
110006
|
+
if (!listeners)
|
|
110163
110007
|
return 0;
|
|
110164
|
-
if (
|
|
110008
|
+
if (listeners.fn)
|
|
110165
110009
|
return 1;
|
|
110166
|
-
return
|
|
110010
|
+
return listeners.length;
|
|
110167
110011
|
};
|
|
110168
|
-
EventEmitter2.prototype.emit = function
|
|
110012
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
110169
110013
|
var evt = prefix ? prefix + event : event;
|
|
110170
110014
|
if (!this._events[evt])
|
|
110171
110015
|
return false;
|
|
110172
|
-
var
|
|
110173
|
-
if (
|
|
110174
|
-
if (
|
|
110175
|
-
this.removeListener(event,
|
|
110016
|
+
var listeners = this._events[evt], len2 = arguments.length, args, i2;
|
|
110017
|
+
if (listeners.fn) {
|
|
110018
|
+
if (listeners.once)
|
|
110019
|
+
this.removeListener(event, listeners.fn, void 0, true);
|
|
110176
110020
|
switch (len2) {
|
|
110177
110021
|
case 1:
|
|
110178
|
-
return
|
|
110022
|
+
return listeners.fn.call(listeners.context), true;
|
|
110179
110023
|
case 2:
|
|
110180
|
-
return
|
|
110024
|
+
return listeners.fn.call(listeners.context, a1), true;
|
|
110181
110025
|
case 3:
|
|
110182
|
-
return
|
|
110026
|
+
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
110183
110027
|
case 4:
|
|
110184
|
-
return
|
|
110028
|
+
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
110185
110029
|
case 5:
|
|
110186
|
-
return
|
|
110030
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
110187
110031
|
case 6:
|
|
110188
|
-
return
|
|
110032
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
110189
110033
|
}
|
|
110190
110034
|
for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
|
|
110191
110035
|
args[i2 - 1] = arguments[i2];
|
|
110192
110036
|
}
|
|
110193
|
-
|
|
110037
|
+
listeners.fn.apply(listeners.context, args);
|
|
110194
110038
|
} else {
|
|
110195
|
-
var length2 =
|
|
110039
|
+
var length2 = listeners.length, j;
|
|
110196
110040
|
for (i2 = 0; i2 < length2; i2++) {
|
|
110197
|
-
if (
|
|
110198
|
-
this.removeListener(event,
|
|
110041
|
+
if (listeners[i2].once)
|
|
110042
|
+
this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
110199
110043
|
switch (len2) {
|
|
110200
110044
|
case 1:
|
|
110201
|
-
|
|
110045
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
110202
110046
|
break;
|
|
110203
110047
|
case 2:
|
|
110204
|
-
|
|
110048
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
110205
110049
|
break;
|
|
110206
110050
|
case 3:
|
|
110207
|
-
|
|
110051
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
110208
110052
|
break;
|
|
110209
110053
|
case 4:
|
|
110210
|
-
|
|
110054
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
|
|
110211
110055
|
break;
|
|
110212
110056
|
default:
|
|
110213
110057
|
if (!args)
|
|
110214
110058
|
for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
|
|
110215
110059
|
args[j - 1] = arguments[j];
|
|
110216
110060
|
}
|
|
110217
|
-
|
|
110061
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
110218
110062
|
}
|
|
110219
110063
|
}
|
|
110220
110064
|
}
|
|
110221
110065
|
return true;
|
|
110222
110066
|
};
|
|
110223
110067
|
EventEmitter2.prototype.on = function on(event, fn, context) {
|
|
110224
|
-
return
|
|
110068
|
+
return addListener(this, event, fn, context, false);
|
|
110225
110069
|
};
|
|
110226
|
-
EventEmitter2.prototype.once = function
|
|
110227
|
-
return
|
|
110070
|
+
EventEmitter2.prototype.once = function once(event, fn, context) {
|
|
110071
|
+
return addListener(this, event, fn, context, true);
|
|
110228
110072
|
};
|
|
110229
|
-
EventEmitter2.prototype.removeListener = function
|
|
110073
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
|
|
110230
110074
|
var evt = prefix ? prefix + event : event;
|
|
110231
110075
|
if (!this._events[evt])
|
|
110232
110076
|
return this;
|
|
@@ -110234,15 +110078,15 @@ createCommonjsModule(function(module2) {
|
|
|
110234
110078
|
clearEvent(this, evt);
|
|
110235
110079
|
return this;
|
|
110236
110080
|
}
|
|
110237
|
-
var
|
|
110238
|
-
if (
|
|
110239
|
-
if (
|
|
110081
|
+
var listeners = this._events[evt];
|
|
110082
|
+
if (listeners.fn) {
|
|
110083
|
+
if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
|
|
110240
110084
|
clearEvent(this, evt);
|
|
110241
110085
|
}
|
|
110242
110086
|
} else {
|
|
110243
|
-
for (var i2 = 0, events2 = [], length2 =
|
|
110244
|
-
if (
|
|
110245
|
-
events2.push(
|
|
110087
|
+
for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
|
|
110088
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
110089
|
+
events2.push(listeners[i2]);
|
|
110246
110090
|
}
|
|
110247
110091
|
}
|
|
110248
110092
|
if (events2.length)
|
|
@@ -110252,7 +110096,7 @@ createCommonjsModule(function(module2) {
|
|
|
110252
110096
|
}
|
|
110253
110097
|
return this;
|
|
110254
110098
|
};
|
|
110255
|
-
EventEmitter2.prototype.removeAllListeners = function
|
|
110099
|
+
EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
110256
110100
|
var evt;
|
|
110257
110101
|
if (event) {
|
|
110258
110102
|
evt = prefix ? prefix + event : event;
|
|
@@ -114735,7 +114579,7 @@ var blosc_codec = function() {
|
|
|
114735
114579
|
b += Ga[z[a2++]];
|
|
114736
114580
|
return b;
|
|
114737
114581
|
}
|
|
114738
|
-
var Q2 = {},
|
|
114582
|
+
var Q2 = {}, R = {}, S = {};
|
|
114739
114583
|
function Ha(a2) {
|
|
114740
114584
|
if (void 0 === a2)
|
|
114741
114585
|
return "_unknown";
|
|
@@ -114780,8 +114624,8 @@ var blosc_codec = function() {
|
|
|
114780
114624
|
});
|
|
114781
114625
|
var e2 = Array(a2.length), g2 = [], k = 0;
|
|
114782
114626
|
a2.forEach(function(h, l2) {
|
|
114783
|
-
|
|
114784
|
-
e2[l2] =
|
|
114627
|
+
R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
|
|
114628
|
+
e2[l2] = R[h];
|
|
114785
114629
|
++k;
|
|
114786
114630
|
k === g2.length && c(e2);
|
|
114787
114631
|
}));
|
|
@@ -114794,12 +114638,12 @@ var blosc_codec = function() {
|
|
|
114794
114638
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
114795
114639
|
var d = b.name;
|
|
114796
114640
|
a2 || T('type "' + d + '" must have a positive integer typeid pointer');
|
|
114797
|
-
if (
|
|
114641
|
+
if (R.hasOwnProperty(a2)) {
|
|
114798
114642
|
if (c.U)
|
|
114799
114643
|
return;
|
|
114800
114644
|
T("Cannot register type '" + d + "' twice");
|
|
114801
114645
|
}
|
|
114802
|
-
|
|
114646
|
+
R[a2] = b;
|
|
114803
114647
|
delete S[a2];
|
|
114804
114648
|
Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
|
|
114805
114649
|
e2();
|
|
@@ -114912,7 +114756,7 @@ var blosc_codec = function() {
|
|
|
114912
114756
|
}
|
|
114913
114757
|
function eb(a2, b) {
|
|
114914
114758
|
function c(g2) {
|
|
114915
|
-
e2[g2] ||
|
|
114759
|
+
e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
|
|
114916
114760
|
}
|
|
114917
114761
|
var d = [], e2 = {};
|
|
114918
114762
|
b.forEach(c);
|
|
@@ -115200,7 +115044,7 @@ var blosc_codec = function() {
|
|
|
115200
115044
|
}, n: Qa, x: function(a2) {
|
|
115201
115045
|
4 < a2 && (V[a2].P += 1);
|
|
115202
115046
|
}, C: function(a2, b) {
|
|
115203
|
-
var c =
|
|
115047
|
+
var c = R[a2];
|
|
115204
115048
|
void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
|
|
115205
115049
|
a2 = c.readValueFromPointer(b);
|
|
115206
115050
|
return Ra(a2);
|
|
@@ -121341,6 +121185,258 @@ function max$1(values2, valueof) {
|
|
|
121341
121185
|
}
|
|
121342
121186
|
return max2;
|
|
121343
121187
|
}
|
|
121188
|
+
var loglevel = { exports: {} };
|
|
121189
|
+
(function(module2) {
|
|
121190
|
+
(function(root2, definition) {
|
|
121191
|
+
if (module2.exports) {
|
|
121192
|
+
module2.exports = definition();
|
|
121193
|
+
} else {
|
|
121194
|
+
root2.log = definition();
|
|
121195
|
+
}
|
|
121196
|
+
})(commonjsGlobal, function() {
|
|
121197
|
+
var noop2 = function() {
|
|
121198
|
+
};
|
|
121199
|
+
var undefinedType = "undefined";
|
|
121200
|
+
var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
121201
|
+
var logMethods = [
|
|
121202
|
+
"trace",
|
|
121203
|
+
"debug",
|
|
121204
|
+
"info",
|
|
121205
|
+
"warn",
|
|
121206
|
+
"error"
|
|
121207
|
+
];
|
|
121208
|
+
var _loggersByName = {};
|
|
121209
|
+
var defaultLogger = null;
|
|
121210
|
+
function bindMethod(obj, methodName) {
|
|
121211
|
+
var method = obj[methodName];
|
|
121212
|
+
if (typeof method.bind === "function") {
|
|
121213
|
+
return method.bind(obj);
|
|
121214
|
+
} else {
|
|
121215
|
+
try {
|
|
121216
|
+
return Function.prototype.bind.call(method, obj);
|
|
121217
|
+
} catch (e2) {
|
|
121218
|
+
return function() {
|
|
121219
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
121220
|
+
};
|
|
121221
|
+
}
|
|
121222
|
+
}
|
|
121223
|
+
}
|
|
121224
|
+
function traceForIE() {
|
|
121225
|
+
if (console.log) {
|
|
121226
|
+
if (console.log.apply) {
|
|
121227
|
+
console.log.apply(console, arguments);
|
|
121228
|
+
} else {
|
|
121229
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
121230
|
+
}
|
|
121231
|
+
}
|
|
121232
|
+
if (console.trace)
|
|
121233
|
+
console.trace();
|
|
121234
|
+
}
|
|
121235
|
+
function realMethod(methodName) {
|
|
121236
|
+
if (methodName === "debug") {
|
|
121237
|
+
methodName = "log";
|
|
121238
|
+
}
|
|
121239
|
+
if (typeof console === undefinedType) {
|
|
121240
|
+
return false;
|
|
121241
|
+
} else if (methodName === "trace" && isIE) {
|
|
121242
|
+
return traceForIE;
|
|
121243
|
+
} else if (console[methodName] !== void 0) {
|
|
121244
|
+
return bindMethod(console, methodName);
|
|
121245
|
+
} else if (console.log !== void 0) {
|
|
121246
|
+
return bindMethod(console, "log");
|
|
121247
|
+
} else {
|
|
121248
|
+
return noop2;
|
|
121249
|
+
}
|
|
121250
|
+
}
|
|
121251
|
+
function replaceLoggingMethods() {
|
|
121252
|
+
var level = this.getLevel();
|
|
121253
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
121254
|
+
var methodName = logMethods[i2];
|
|
121255
|
+
this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
|
|
121256
|
+
}
|
|
121257
|
+
this.log = this.debug;
|
|
121258
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
121259
|
+
return "No console available for logging";
|
|
121260
|
+
}
|
|
121261
|
+
}
|
|
121262
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
121263
|
+
return function() {
|
|
121264
|
+
if (typeof console !== undefinedType) {
|
|
121265
|
+
replaceLoggingMethods.call(this);
|
|
121266
|
+
this[methodName].apply(this, arguments);
|
|
121267
|
+
}
|
|
121268
|
+
};
|
|
121269
|
+
}
|
|
121270
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
121271
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
121272
|
+
}
|
|
121273
|
+
function Logger(name2, factory2) {
|
|
121274
|
+
var self2 = this;
|
|
121275
|
+
var inheritedLevel;
|
|
121276
|
+
var defaultLevel;
|
|
121277
|
+
var userLevel;
|
|
121278
|
+
var storageKey = "loglevel";
|
|
121279
|
+
if (typeof name2 === "string") {
|
|
121280
|
+
storageKey += ":" + name2;
|
|
121281
|
+
} else if (typeof name2 === "symbol") {
|
|
121282
|
+
storageKey = void 0;
|
|
121283
|
+
}
|
|
121284
|
+
function persistLevelIfPossible(levelNum) {
|
|
121285
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
121286
|
+
if (typeof window === undefinedType || !storageKey)
|
|
121287
|
+
return;
|
|
121288
|
+
try {
|
|
121289
|
+
window.localStorage[storageKey] = levelName;
|
|
121290
|
+
return;
|
|
121291
|
+
} catch (ignore) {
|
|
121292
|
+
}
|
|
121293
|
+
try {
|
|
121294
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
121295
|
+
} catch (ignore) {
|
|
121296
|
+
}
|
|
121297
|
+
}
|
|
121298
|
+
function getPersistedLevel() {
|
|
121299
|
+
var storedLevel;
|
|
121300
|
+
if (typeof window === undefinedType || !storageKey)
|
|
121301
|
+
return;
|
|
121302
|
+
try {
|
|
121303
|
+
storedLevel = window.localStorage[storageKey];
|
|
121304
|
+
} catch (ignore) {
|
|
121305
|
+
}
|
|
121306
|
+
if (typeof storedLevel === undefinedType) {
|
|
121307
|
+
try {
|
|
121308
|
+
var cookie = window.document.cookie;
|
|
121309
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
121310
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
121311
|
+
if (location !== -1) {
|
|
121312
|
+
storedLevel = /^([^;]+)/.exec(
|
|
121313
|
+
cookie.slice(location + cookieName.length + 1)
|
|
121314
|
+
)[1];
|
|
121315
|
+
}
|
|
121316
|
+
} catch (ignore) {
|
|
121317
|
+
}
|
|
121318
|
+
}
|
|
121319
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
121320
|
+
storedLevel = void 0;
|
|
121321
|
+
}
|
|
121322
|
+
return storedLevel;
|
|
121323
|
+
}
|
|
121324
|
+
function clearPersistedLevel() {
|
|
121325
|
+
if (typeof window === undefinedType || !storageKey)
|
|
121326
|
+
return;
|
|
121327
|
+
try {
|
|
121328
|
+
window.localStorage.removeItem(storageKey);
|
|
121329
|
+
} catch (ignore) {
|
|
121330
|
+
}
|
|
121331
|
+
try {
|
|
121332
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
121333
|
+
} catch (ignore) {
|
|
121334
|
+
}
|
|
121335
|
+
}
|
|
121336
|
+
function normalizeLevel(input) {
|
|
121337
|
+
var level = input;
|
|
121338
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
121339
|
+
level = self2.levels[level.toUpperCase()];
|
|
121340
|
+
}
|
|
121341
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
121342
|
+
return level;
|
|
121343
|
+
} else {
|
|
121344
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
121345
|
+
}
|
|
121346
|
+
}
|
|
121347
|
+
self2.name = name2;
|
|
121348
|
+
self2.levels = {
|
|
121349
|
+
"TRACE": 0,
|
|
121350
|
+
"DEBUG": 1,
|
|
121351
|
+
"INFO": 2,
|
|
121352
|
+
"WARN": 3,
|
|
121353
|
+
"ERROR": 4,
|
|
121354
|
+
"SILENT": 5
|
|
121355
|
+
};
|
|
121356
|
+
self2.methodFactory = factory2 || defaultMethodFactory;
|
|
121357
|
+
self2.getLevel = function() {
|
|
121358
|
+
if (userLevel != null) {
|
|
121359
|
+
return userLevel;
|
|
121360
|
+
} else if (defaultLevel != null) {
|
|
121361
|
+
return defaultLevel;
|
|
121362
|
+
} else {
|
|
121363
|
+
return inheritedLevel;
|
|
121364
|
+
}
|
|
121365
|
+
};
|
|
121366
|
+
self2.setLevel = function(level, persist) {
|
|
121367
|
+
userLevel = normalizeLevel(level);
|
|
121368
|
+
if (persist !== false) {
|
|
121369
|
+
persistLevelIfPossible(userLevel);
|
|
121370
|
+
}
|
|
121371
|
+
return replaceLoggingMethods.call(self2);
|
|
121372
|
+
};
|
|
121373
|
+
self2.setDefaultLevel = function(level) {
|
|
121374
|
+
defaultLevel = normalizeLevel(level);
|
|
121375
|
+
if (!getPersistedLevel()) {
|
|
121376
|
+
self2.setLevel(level, false);
|
|
121377
|
+
}
|
|
121378
|
+
};
|
|
121379
|
+
self2.resetLevel = function() {
|
|
121380
|
+
userLevel = null;
|
|
121381
|
+
clearPersistedLevel();
|
|
121382
|
+
replaceLoggingMethods.call(self2);
|
|
121383
|
+
};
|
|
121384
|
+
self2.enableAll = function(persist) {
|
|
121385
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
121386
|
+
};
|
|
121387
|
+
self2.disableAll = function(persist) {
|
|
121388
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
121389
|
+
};
|
|
121390
|
+
self2.rebuild = function() {
|
|
121391
|
+
if (defaultLogger !== self2) {
|
|
121392
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
121393
|
+
}
|
|
121394
|
+
replaceLoggingMethods.call(self2);
|
|
121395
|
+
if (defaultLogger === self2) {
|
|
121396
|
+
for (var childName in _loggersByName) {
|
|
121397
|
+
_loggersByName[childName].rebuild();
|
|
121398
|
+
}
|
|
121399
|
+
}
|
|
121400
|
+
};
|
|
121401
|
+
inheritedLevel = normalizeLevel(
|
|
121402
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
121403
|
+
);
|
|
121404
|
+
var initialLevel = getPersistedLevel();
|
|
121405
|
+
if (initialLevel != null) {
|
|
121406
|
+
userLevel = normalizeLevel(initialLevel);
|
|
121407
|
+
}
|
|
121408
|
+
replaceLoggingMethods.call(self2);
|
|
121409
|
+
}
|
|
121410
|
+
defaultLogger = new Logger();
|
|
121411
|
+
defaultLogger.getLogger = function getLogger(name2) {
|
|
121412
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
121413
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
121414
|
+
}
|
|
121415
|
+
var logger = _loggersByName[name2];
|
|
121416
|
+
if (!logger) {
|
|
121417
|
+
logger = _loggersByName[name2] = new Logger(
|
|
121418
|
+
name2,
|
|
121419
|
+
defaultLogger.methodFactory
|
|
121420
|
+
);
|
|
121421
|
+
}
|
|
121422
|
+
return logger;
|
|
121423
|
+
};
|
|
121424
|
+
var _log = typeof window !== undefinedType ? window.log : void 0;
|
|
121425
|
+
defaultLogger.noConflict = function() {
|
|
121426
|
+
if (typeof window !== undefinedType && window.log === defaultLogger) {
|
|
121427
|
+
window.log = _log;
|
|
121428
|
+
}
|
|
121429
|
+
return defaultLogger;
|
|
121430
|
+
};
|
|
121431
|
+
defaultLogger.getLoggers = function getLoggers2() {
|
|
121432
|
+
return _loggersByName;
|
|
121433
|
+
};
|
|
121434
|
+
defaultLogger["default"] = defaultLogger;
|
|
121435
|
+
return defaultLogger;
|
|
121436
|
+
});
|
|
121437
|
+
})(loglevel);
|
|
121438
|
+
var loglevelExports = loglevel.exports;
|
|
121439
|
+
const log$1 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
121344
121440
|
function normalize(arr) {
|
|
121345
121441
|
const [min2, max2] = extent(arr);
|
|
121346
121442
|
const ratio = 255 / (max2 - min2);
|
|
@@ -121362,10 +121458,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
121362
121458
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
121363
121459
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
121364
121460
|
if (valueTexHeight > texSize) {
|
|
121365
|
-
|
|
121461
|
+
log$1.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
121366
121462
|
}
|
|
121367
121463
|
if (colorTexHeight > texSize) {
|
|
121368
|
-
|
|
121464
|
+
log$1.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
121369
121465
|
}
|
|
121370
121466
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
121371
121467
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|
|
@@ -137612,7 +137708,7 @@ class ImageWrapper {
|
|
|
137612
137708
|
const channelNames = this.getChannelNames();
|
|
137613
137709
|
const channelIndex = channelNames.indexOf(channelSpecifier);
|
|
137614
137710
|
if (channelIndex === -1) {
|
|
137615
|
-
|
|
137711
|
+
log$1.error(`Channel ${channelSpecifier} not found in image.`);
|
|
137616
137712
|
}
|
|
137617
137713
|
return channelIndex;
|
|
137618
137714
|
}
|