@loaders.gl/tiles 4.0.0-alpha.24 → 4.0.0-alpha.26
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/dist.min.js +38 -7
- package/package.json +4 -4
package/dist/dist.min.js
CHANGED
|
@@ -3659,16 +3659,45 @@
|
|
|
3659
3659
|
}
|
|
3660
3660
|
});
|
|
3661
3661
|
|
|
3662
|
+
// ../loader-utils/src/lib/option-utils/merge-loader-options.ts
|
|
3663
|
+
function mergeLoaderOptions(baseOptions, newOptions) {
|
|
3664
|
+
return mergeOptionsRecursively(baseOptions || {}, newOptions);
|
|
3665
|
+
}
|
|
3666
|
+
function mergeOptionsRecursively(baseOptions, newOptions) {
|
|
3667
|
+
const options = { ...baseOptions };
|
|
3668
|
+
for (const [key, newValue] of Object.entries(newOptions)) {
|
|
3669
|
+
if (newValue && typeof newValue === "object" && !Array.isArray(newValue)) {
|
|
3670
|
+
options[key] = mergeOptionsRecursively(options[key] || {}, newOptions[key]);
|
|
3671
|
+
} else {
|
|
3672
|
+
options[key] = newOptions[key];
|
|
3673
|
+
}
|
|
3674
|
+
}
|
|
3675
|
+
return options;
|
|
3676
|
+
}
|
|
3677
|
+
var init_merge_loader_options = __esm({
|
|
3678
|
+
"../loader-utils/src/lib/option-utils/merge-loader-options.ts"() {
|
|
3679
|
+
}
|
|
3680
|
+
});
|
|
3681
|
+
|
|
3662
3682
|
// ../worker-utils/src/lib/env-utils/version.ts
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
DEFAULT_VERSION = "beta";
|
|
3667
|
-
VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : DEFAULT_VERSION;
|
|
3683
|
+
function getVersion() {
|
|
3684
|
+
if (!globalThis._loadersgl_?.version) {
|
|
3685
|
+
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
|
|
3668
3686
|
if (typeof __VERSION__ === "undefined") {
|
|
3669
3687
|
console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
|
|
3688
|
+
globalThis._loadersgl_.version = NPM_TAG;
|
|
3689
|
+
} else {
|
|
3690
|
+
globalThis._loadersgl_.version = __VERSION__;
|
|
3670
3691
|
}
|
|
3671
3692
|
}
|
|
3693
|
+
return globalThis._loadersgl_.version;
|
|
3694
|
+
}
|
|
3695
|
+
var NPM_TAG, VERSION;
|
|
3696
|
+
var init_version = __esm({
|
|
3697
|
+
"../worker-utils/src/lib/env-utils/version.ts"() {
|
|
3698
|
+
NPM_TAG = "beta";
|
|
3699
|
+
VERSION = getVersion();
|
|
3700
|
+
}
|
|
3672
3701
|
});
|
|
3673
3702
|
|
|
3674
3703
|
// ../worker-utils/src/lib/env-utils/assert.ts
|
|
@@ -4132,12 +4161,11 @@
|
|
|
4132
4161
|
assert3(url);
|
|
4133
4162
|
return url;
|
|
4134
4163
|
}
|
|
4135
|
-
var NPM_TAG;
|
|
4136
4164
|
var init_get_worker_url = __esm({
|
|
4137
4165
|
"../worker-utils/src/lib/worker-api/get-worker-url.ts"() {
|
|
4138
4166
|
init_assert3();
|
|
4139
4167
|
init_globals2();
|
|
4140
|
-
|
|
4168
|
+
init_version();
|
|
4141
4169
|
}
|
|
4142
4170
|
});
|
|
4143
4171
|
|
|
@@ -4809,6 +4837,7 @@
|
|
|
4809
4837
|
"../loader-utils/src/index.ts"() {
|
|
4810
4838
|
init_assert2();
|
|
4811
4839
|
init_globals();
|
|
4840
|
+
init_merge_loader_options();
|
|
4812
4841
|
init_parse_with_worker();
|
|
4813
4842
|
init_array_buffer_utils();
|
|
4814
4843
|
init_async_iteration();
|
|
@@ -7280,6 +7309,7 @@
|
|
|
7280
7309
|
}
|
|
7281
7310
|
async function parseWithLoader(loader, data, options, context) {
|
|
7282
7311
|
validateWorkerVersion(loader);
|
|
7312
|
+
options = mergeLoaderOptions(loader.options, options);
|
|
7283
7313
|
if (isResponse(data)) {
|
|
7284
7314
|
const response = data;
|
|
7285
7315
|
const { ok, redirected, status, statusText, type, url } = response;
|
|
@@ -7310,6 +7340,7 @@
|
|
|
7310
7340
|
init_normalize_loader();
|
|
7311
7341
|
init_is_type();
|
|
7312
7342
|
init_option_utils();
|
|
7343
|
+
init_src2();
|
|
7313
7344
|
init_get_data();
|
|
7314
7345
|
init_loader_context();
|
|
7315
7346
|
init_resource_utils();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tiles",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.26",
|
|
4
4
|
"description": "Common components for different tiles loaders.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@loaders.gl/loader-utils": "4.0.0-alpha.
|
|
37
|
-
"@loaders.gl/math": "4.0.0-alpha.
|
|
36
|
+
"@loaders.gl/loader-utils": "4.0.0-alpha.26",
|
|
37
|
+
"@loaders.gl/math": "4.0.0-alpha.26",
|
|
38
38
|
"@math.gl/core": "^3.5.1",
|
|
39
39
|
"@math.gl/culling": "^3.5.1",
|
|
40
40
|
"@math.gl/geospatial": "^3.5.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@deck.gl/core": "^8.9.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "91adce71f74dacc7c8bfc379f0d122f2beae70d9"
|
|
51
51
|
}
|