@loaders.gl/tile-converter 3.2.6 → 3.2.9
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/3d-tiles-attributes-worker.js +1 -1
- package/dist/converter.min.js +1 -1
- package/dist/dist.min.js +19 -5
- package/dist/es5/3d-tiles-attributes-worker.js +1 -1
- package/dist/es5/i3s-attributes-worker.js +1 -1
- package/dist/es5/pgm-loader.js +1 -1
- package/dist/esm/3d-tiles-attributes-worker.js +1 -1
- package/dist/esm/i3s-attributes-worker.js +1 -1
- package/dist/esm/pgm-loader.js +1 -1
- package/package.json +15 -15
package/dist/dist.min.js
CHANGED
|
@@ -73606,7 +73606,7 @@ var WorkerThread = class {
|
|
|
73606
73606
|
this.worker = isBrowser2 ? this._createBrowserWorker() : this._createNodeWorker();
|
|
73607
73607
|
}
|
|
73608
73608
|
static isSupported() {
|
|
73609
|
-
return typeof Worker !== "undefined" && isBrowser2 || typeof worker_threads_exports.Worker !==
|
|
73609
|
+
return typeof Worker !== "undefined" && isBrowser2 || typeof worker_threads_exports.Worker !== "undefined" && !isBrowser2;
|
|
73610
73610
|
}
|
|
73611
73611
|
destroy() {
|
|
73612
73612
|
this.onMessage = NOOP;
|
|
@@ -77216,7 +77216,11 @@ var Tileset3D = class {
|
|
|
77216
77216
|
this.zoom = 1;
|
|
77217
77217
|
return;
|
|
77218
77218
|
}
|
|
77219
|
-
|
|
77219
|
+
if (center[0] !== 0 || center[1] !== 0 || center[2] !== 0) {
|
|
77220
|
+
this.cartographicCenter = import_geospatial6.Ellipsoid.WGS84.cartesianToCartographic(center, new import_core10.Vector3());
|
|
77221
|
+
} else {
|
|
77222
|
+
this.cartographicCenter = new import_core10.Vector3(0, 0, -import_geospatial6.Ellipsoid.WGS84.radii[0]);
|
|
77223
|
+
}
|
|
77220
77224
|
this.cartesianCenter = center;
|
|
77221
77225
|
this.zoom = getZoomFromBoundingVolume(root.boundingVolume, this.cartographicCenter);
|
|
77222
77226
|
}
|
|
@@ -83361,13 +83365,23 @@ function getRefine(refine) {
|
|
|
83361
83365
|
return refine;
|
|
83362
83366
|
}
|
|
83363
83367
|
}
|
|
83368
|
+
function resolveUri(uri, basePath) {
|
|
83369
|
+
const urlSchemeRegex = /^[a-z][0-9a-z+.-]*:/i;
|
|
83370
|
+
if (urlSchemeRegex.test(basePath)) {
|
|
83371
|
+
const url = new URL(uri, `${basePath}/`);
|
|
83372
|
+
return decodeURI(url.toString());
|
|
83373
|
+
} else if (uri.startsWith("/")) {
|
|
83374
|
+
return uri;
|
|
83375
|
+
}
|
|
83376
|
+
return `${basePath}/${uri}`;
|
|
83377
|
+
}
|
|
83364
83378
|
function normalizeTileData(tile, options) {
|
|
83365
83379
|
if (!tile) {
|
|
83366
83380
|
return null;
|
|
83367
83381
|
}
|
|
83368
83382
|
if (tile.content) {
|
|
83369
83383
|
const contentUri = tile.content.uri || tile.content.url;
|
|
83370
|
-
tile.contentUrl =
|
|
83384
|
+
tile.contentUrl = resolveUri(contentUri, options.basePath);
|
|
83371
83385
|
}
|
|
83372
83386
|
tile.id = tile.contentUrl;
|
|
83373
83387
|
tile.lodMetricType = LOD_METRIC_TYPE.GEOMETRIC_ERROR;
|
|
@@ -83405,9 +83419,9 @@ async function normalizeImplicitTileHeaders(tileset) {
|
|
|
83405
83419
|
subtrees: { uri: subtreesUriTemplate }
|
|
83406
83420
|
} = implicitTilingExtension;
|
|
83407
83421
|
const subtreeUrl = replaceContentUrlTemplate(subtreesUriTemplate, 0, 0, 0, 0);
|
|
83408
|
-
const rootSubtreeUrl =
|
|
83422
|
+
const rootSubtreeUrl = resolveUri(subtreeUrl, basePath);
|
|
83409
83423
|
const rootSubtree = await load(rootSubtreeUrl, Tile3DSubtreeLoader);
|
|
83410
|
-
const contentUrlTemplate =
|
|
83424
|
+
const contentUrlTemplate = resolveUri(tileset.root.content.uri, basePath);
|
|
83411
83425
|
const refine = tileset.root.refine;
|
|
83412
83426
|
const rootLodMetricValue = tileset.root.geometricError;
|
|
83413
83427
|
const rootBoundingVolume = tileset.root.boundingVolume;
|
|
@@ -8,7 +8,7 @@ exports._typecheckI3SAttributesWorker = exports.Tile3dAttributesWorker = void 0;
|
|
|
8
8
|
|
|
9
9
|
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
10
10
|
|
|
11
|
-
var VERSION = typeof "3.2.
|
|
11
|
+
var VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
|
|
12
12
|
var Tile3dAttributesWorker = {
|
|
13
13
|
id: '3d-tiles-attributes',
|
|
14
14
|
name: '3DTiles Attributes Worker',
|
|
@@ -8,7 +8,7 @@ exports._typecheckI3SAttributesWorker = exports.I3SAttributesWorker = void 0;
|
|
|
8
8
|
|
|
9
9
|
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
10
10
|
|
|
11
|
-
var VERSION = typeof "3.2.
|
|
11
|
+
var VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
|
|
12
12
|
var I3SAttributesWorker = {
|
|
13
13
|
id: 'i3s-attributes',
|
|
14
14
|
name: 'I3S Attributes Worker',
|
package/dist/es5/pgm-loader.js
CHANGED
|
@@ -13,7 +13,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
13
13
|
|
|
14
14
|
var _geoid = require("@math.gl/geoid");
|
|
15
15
|
|
|
16
|
-
var VERSION = typeof "3.2.
|
|
16
|
+
var VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
|
|
17
17
|
var PGMLoader = {
|
|
18
18
|
name: 'PGM - Netpbm grayscale image format',
|
|
19
19
|
id: 'pgm',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { processOnWorker } from '@loaders.gl/worker-utils';
|
|
2
|
-
const VERSION = typeof "3.2.
|
|
2
|
+
const VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
|
|
3
3
|
export const Tile3dAttributesWorker = {
|
|
4
4
|
id: '3d-tiles-attributes',
|
|
5
5
|
name: '3DTiles Attributes Worker',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { processOnWorker } from '@loaders.gl/worker-utils';
|
|
2
|
-
const VERSION = typeof "3.2.
|
|
2
|
+
const VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
|
|
3
3
|
export const I3SAttributesWorker = {
|
|
4
4
|
id: 'i3s-attributes',
|
|
5
5
|
name: 'I3S Attributes Worker',
|
package/dist/esm/pgm-loader.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tile-converter",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.9",
|
|
4
4
|
"description": "Converter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"build-3d-tiles-attributes-worker": "esbuild src/workers/3d-tiles-attributes-worker.ts --outfile=dist/3d-tiles-attributes-worker.js --platform=node --target=esnext,node12 --minify --bundle --sourcemap --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@loaders.gl/3d-tiles": "3.2.
|
|
47
|
-
"@loaders.gl/crypto": "3.2.
|
|
48
|
-
"@loaders.gl/draco": "3.2.
|
|
49
|
-
"@loaders.gl/gltf": "3.2.
|
|
50
|
-
"@loaders.gl/i3s": "3.2.
|
|
51
|
-
"@loaders.gl/images": "3.2.
|
|
52
|
-
"@loaders.gl/loader-utils": "3.2.
|
|
53
|
-
"@loaders.gl/polyfills": "3.2.
|
|
54
|
-
"@loaders.gl/schema": "3.2.
|
|
55
|
-
"@loaders.gl/textures": "3.2.
|
|
56
|
-
"@loaders.gl/tiles": "3.2.
|
|
57
|
-
"@loaders.gl/worker-utils": "3.2.
|
|
58
|
-
"@loaders.gl/zip": "3.2.
|
|
46
|
+
"@loaders.gl/3d-tiles": "3.2.9",
|
|
47
|
+
"@loaders.gl/crypto": "3.2.9",
|
|
48
|
+
"@loaders.gl/draco": "3.2.9",
|
|
49
|
+
"@loaders.gl/gltf": "3.2.9",
|
|
50
|
+
"@loaders.gl/i3s": "3.2.9",
|
|
51
|
+
"@loaders.gl/images": "3.2.9",
|
|
52
|
+
"@loaders.gl/loader-utils": "3.2.9",
|
|
53
|
+
"@loaders.gl/polyfills": "3.2.9",
|
|
54
|
+
"@loaders.gl/schema": "3.2.9",
|
|
55
|
+
"@loaders.gl/textures": "3.2.9",
|
|
56
|
+
"@loaders.gl/tiles": "3.2.9",
|
|
57
|
+
"@loaders.gl/worker-utils": "3.2.9",
|
|
58
|
+
"@loaders.gl/zip": "3.2.9",
|
|
59
59
|
"@luma.gl/engine": "^8.5.4",
|
|
60
60
|
"@math.gl/core": "^3.5.1",
|
|
61
61
|
"@math.gl/culling": "^3.5.1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@loaders.gl/core": "^3.2.0"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "9369776dfbe8535bf9c3b4fd4786476107418117"
|
|
79
79
|
}
|