@loaders.gl/3d-tiles 3.2.0-alpha.2 → 3.2.0-alpha.3
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
CHANGED
|
@@ -674,10 +674,12 @@
|
|
|
674
674
|
const workerFarm = WorkerFarm.getWorkerFarm(options);
|
|
675
675
|
const workerPool = workerFarm.getWorkerPool({ name: name8, url });
|
|
676
676
|
options = JSON.parse(JSON.stringify(options));
|
|
677
|
+
context = JSON.parse(JSON.stringify(context || {}));
|
|
677
678
|
const job = await workerPool.startJob("process-on-worker", onMessage.bind(null, parseOnMainThread));
|
|
678
679
|
job.postMessage("process", {
|
|
679
680
|
input: data,
|
|
680
|
-
options
|
|
681
|
+
options,
|
|
682
|
+
context
|
|
681
683
|
});
|
|
682
684
|
const result = await job.result;
|
|
683
685
|
return await result.result;
|
|
@@ -6425,6 +6427,12 @@
|
|
|
6425
6427
|
}
|
|
6426
6428
|
async function parseWithLoader(loader, data, options, context) {
|
|
6427
6429
|
validateWorkerVersion(loader);
|
|
6430
|
+
if (isResponse(data)) {
|
|
6431
|
+
const response = data;
|
|
6432
|
+
const { ok, redirected, status, statusText, type, url } = response;
|
|
6433
|
+
const headers = Object.fromEntries(response.headers.entries());
|
|
6434
|
+
context.response = { headers, ok, redirected, status, statusText, type, url };
|
|
6435
|
+
}
|
|
6428
6436
|
data = await getArrayBufferOrStringFromData(data, loader, options);
|
|
6429
6437
|
if (loader.parseTextSync && typeof data === "string") {
|
|
6430
6438
|
options.dataType = "text";
|
|
@@ -6447,6 +6455,7 @@
|
|
|
6447
6455
|
init_src();
|
|
6448
6456
|
init_src2();
|
|
6449
6457
|
init_normalize_loader();
|
|
6458
|
+
init_is_type();
|
|
6450
6459
|
init_option_utils();
|
|
6451
6460
|
init_get_data();
|
|
6452
6461
|
init_loader_context();
|
|
@@ -11183,7 +11192,7 @@
|
|
|
11183
11192
|
metallicFactor: 1,
|
|
11184
11193
|
roughnessFactor: 1
|
|
11185
11194
|
};
|
|
11186
|
-
const textureId = material.values
|
|
11195
|
+
const textureId = material.values?.tex || material.values?.texture2d_0;
|
|
11187
11196
|
const textureIndex = json.textures.findIndex((texture) => texture.id === textureId);
|
|
11188
11197
|
if (textureIndex !== -1) {
|
|
11189
11198
|
material.pbrMetallicRoughness.baseColorTexture = { index: textureIndex };
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VERSION = void 0;
|
|
7
|
-
var VERSION = typeof "3.2.0-alpha.
|
|
7
|
+
var VERSION = typeof "3.2.0-alpha.3" !== 'undefined' ? "3.2.0-alpha.3" : 'latest';
|
|
8
8
|
exports.VERSION = VERSION;
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = typeof "3.2.0-alpha.
|
|
1
|
+
export const VERSION = typeof "3.2.0-alpha.3" !== 'undefined' ? "3.2.0-alpha.3" : 'latest';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/3d-tiles",
|
|
3
|
-
"version": "3.2.0-alpha.
|
|
3
|
+
"version": "3.2.0-alpha.3",
|
|
4
4
|
"description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@loaders.gl/draco": "3.2.0-alpha.
|
|
38
|
-
"@loaders.gl/gltf": "3.2.0-alpha.
|
|
39
|
-
"@loaders.gl/loader-utils": "3.2.0-alpha.
|
|
40
|
-
"@loaders.gl/math": "3.2.0-alpha.
|
|
41
|
-
"@loaders.gl/tiles": "3.2.0-alpha.
|
|
37
|
+
"@loaders.gl/draco": "3.2.0-alpha.3",
|
|
38
|
+
"@loaders.gl/gltf": "3.2.0-alpha.3",
|
|
39
|
+
"@loaders.gl/loader-utils": "3.2.0-alpha.3",
|
|
40
|
+
"@loaders.gl/math": "3.2.0-alpha.3",
|
|
41
|
+
"@loaders.gl/tiles": "3.2.0-alpha.3",
|
|
42
42
|
"@math.gl/core": "^3.5.1",
|
|
43
43
|
"@math.gl/geospatial": "^3.5.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@loaders.gl/core": "3.2.0-alpha.
|
|
46
|
+
"@loaders.gl/core": "3.2.0-alpha.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "f0d4b801efeb7094283106352ee759eccfb21f10"
|
|
49
49
|
}
|