@loaders.gl/i3s 4.0.3 → 4.0.5
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.
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
);
|
|
103
103
|
globalThis._loadersgl_.version = NPM_TAG;
|
|
104
104
|
} else {
|
|
105
|
-
globalThis._loadersgl_.version = "4.0.
|
|
105
|
+
globalThis._loadersgl_.version = "4.0.5";
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return globalThis._loadersgl_.version;
|
|
@@ -186,10 +186,11 @@
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
// ../worker-utils/src/lib/node/worker_threads-browser.ts
|
|
189
|
-
var
|
|
189
|
+
var NodeWorker = class {
|
|
190
190
|
terminate() {
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
+
var parentPort = null;
|
|
193
194
|
|
|
194
195
|
// ../worker-utils/src/lib/worker-utils/get-loadable-worker-url.ts
|
|
195
196
|
var workerURLCache = /* @__PURE__ */ new Map();
|
|
@@ -278,7 +279,7 @@
|
|
|
278
279
|
_loadableURL = "";
|
|
279
280
|
/** Checks if workers are supported on this platform */
|
|
280
281
|
static isSupported() {
|
|
281
|
-
return typeof Worker !== "undefined" && isBrowser2 || typeof
|
|
282
|
+
return typeof Worker !== "undefined" && isBrowser2 || typeof NodeWorker !== "undefined" && !isBrowser2;
|
|
282
283
|
}
|
|
283
284
|
constructor(props) {
|
|
284
285
|
const { name, source, url } = props;
|
|
@@ -357,9 +358,9 @@
|
|
|
357
358
|
if (this.url) {
|
|
358
359
|
const absolute = this.url.includes(":/") || this.url.startsWith("/");
|
|
359
360
|
const url = absolute ? this.url : `./${this.url}`;
|
|
360
|
-
worker = new
|
|
361
|
+
worker = new NodeWorker(url, { eval: false });
|
|
361
362
|
} else if (this.source) {
|
|
362
|
-
worker = new
|
|
363
|
+
worker = new NodeWorker(this.source, { eval: true });
|
|
363
364
|
} else {
|
|
364
365
|
throw new Error("no worker");
|
|
365
366
|
}
|
|
@@ -603,19 +604,6 @@
|
|
|
603
604
|
|
|
604
605
|
// ../worker-utils/src/lib/worker-farm/worker-body.ts
|
|
605
606
|
async function getParentPort() {
|
|
606
|
-
let parentPort;
|
|
607
|
-
try {
|
|
608
|
-
eval("globalThis.parentPort = require('worker_threads').parentPort");
|
|
609
|
-
parentPort = globalThis.parentPort;
|
|
610
|
-
} catch {
|
|
611
|
-
try {
|
|
612
|
-
eval("globalThis.workerThreadsPromise = import('worker_threads')");
|
|
613
|
-
const workerThreads = await globalThis.workerThreadsPromise;
|
|
614
|
-
parentPort = workerThreads.parentPort;
|
|
615
|
-
} catch (error) {
|
|
616
|
-
console.error(error.message);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
607
|
return parentPort;
|
|
620
608
|
}
|
|
621
609
|
var onMessageWrapperMap = /* @__PURE__ */ new Map();
|
|
@@ -1447,7 +1435,7 @@
|
|
|
1447
1435
|
var navigator_ = globalThis.navigator || {};
|
|
1448
1436
|
|
|
1449
1437
|
// ../../node_modules/@probe.gl/log/node_modules/@probe.gl/env/dist/utils/globals.js
|
|
1450
|
-
var VERSION2 = true ? "4.0.
|
|
1438
|
+
var VERSION2 = true ? "4.0.5" : "untranspiled source";
|
|
1451
1439
|
var isBrowser4 = isBrowser3();
|
|
1452
1440
|
|
|
1453
1441
|
// ../../node_modules/@probe.gl/log/dist/utils/local-storage.js
|
|
@@ -5315,7 +5303,7 @@
|
|
|
5315
5303
|
_defineProperty(Ellipsoid, "WGS84", new Ellipsoid(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z));
|
|
5316
5304
|
|
|
5317
5305
|
// ../images/src/lib/utils/version.ts
|
|
5318
|
-
var VERSION3 = true ? "4.0.
|
|
5306
|
+
var VERSION3 = true ? "4.0.5" : "latest";
|
|
5319
5307
|
|
|
5320
5308
|
// ../images/src/lib/category-api/image-type.ts
|
|
5321
5309
|
var parseImageNode = globalThis.loaders?.parseImageNode;
|
|
@@ -5721,7 +5709,7 @@
|
|
|
5721
5709
|
};
|
|
5722
5710
|
|
|
5723
5711
|
// ../draco/src/lib/utils/version.ts
|
|
5724
|
-
var VERSION4 = true ? "4.0.
|
|
5712
|
+
var VERSION4 = true ? "4.0.5" : "latest";
|
|
5725
5713
|
|
|
5726
5714
|
// ../draco/src/draco-loader.ts
|
|
5727
5715
|
var DEFAULT_DRACO_OPTIONS = {
|
|
@@ -6325,7 +6313,7 @@
|
|
|
6325
6313
|
}
|
|
6326
6314
|
|
|
6327
6315
|
// ../textures/src/lib/utils/version.ts
|
|
6328
|
-
var VERSION5 = true ? "4.0.
|
|
6316
|
+
var VERSION5 = true ? "4.0.5" : "latest";
|
|
6329
6317
|
|
|
6330
6318
|
// ../textures/src/lib/parsers/basis-module-loader.ts
|
|
6331
6319
|
var BASIS_EXTERNAL_LIBRARIES = {
|
|
@@ -7853,7 +7841,7 @@
|
|
|
7853
7841
|
}
|
|
7854
7842
|
|
|
7855
7843
|
// src/i3s-content-loader.ts
|
|
7856
|
-
var VERSION6 = true ? "4.0.
|
|
7844
|
+
var VERSION6 = true ? "4.0.5" : "latest";
|
|
7857
7845
|
var I3SContentLoader = {
|
|
7858
7846
|
name: "I3S Content (Indexed Scene Layers)",
|
|
7859
7847
|
id: "i3s-content",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/i3s",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "i3s .",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"build-worker-node": "esbuild src/workers/i3s-content-worker-node.ts --outfile=dist/i3s-content-worker-node.js --platform=node --target=node16 --minify --bundle --sourcemap --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@loaders.gl/compression": "4.0.
|
|
45
|
-
"@loaders.gl/crypto": "4.0.
|
|
46
|
-
"@loaders.gl/draco": "4.0.
|
|
47
|
-
"@loaders.gl/images": "4.0.
|
|
48
|
-
"@loaders.gl/loader-utils": "4.0.
|
|
49
|
-
"@loaders.gl/schema": "4.0.
|
|
50
|
-
"@loaders.gl/textures": "4.0.
|
|
51
|
-
"@loaders.gl/tiles": "4.0.
|
|
44
|
+
"@loaders.gl/compression": "4.0.5",
|
|
45
|
+
"@loaders.gl/crypto": "4.0.5",
|
|
46
|
+
"@loaders.gl/draco": "4.0.5",
|
|
47
|
+
"@loaders.gl/images": "4.0.5",
|
|
48
|
+
"@loaders.gl/loader-utils": "4.0.5",
|
|
49
|
+
"@loaders.gl/schema": "4.0.5",
|
|
50
|
+
"@loaders.gl/textures": "4.0.5",
|
|
51
|
+
"@loaders.gl/tiles": "4.0.5",
|
|
52
52
|
"@math.gl/core": "^4.0.0",
|
|
53
53
|
"@math.gl/culling": "^4.0.0",
|
|
54
54
|
"@math.gl/geospatial": "^4.0.0"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@loaders.gl/core": "^4.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "9cc48b95bdad8842ebfd9a19f487c534f32526e9"
|
|
60
60
|
}
|