@loaders.gl/tile-converter 4.3.1 → 4.4.0-alpha.1
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/converter-cli.js +4 -3
- package/dist/converter.min.cjs +84 -84
- package/dist/deps-installer/deps-installer.js +1 -1
- package/dist/i3s-converter/helpers/batch-ids-extensions.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/geometry-converter.js +2 -2
- package/dist/i3s-server/bin/i3s-server.min.cjs +79 -79
- package/dist/i3s-server/routes/slpk-router.d.ts +2 -2
- package/dist/i3s-server/routes/slpk-router.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +2 -2
- package/dist/pgm-loader.js +1 -1
- package/package.json +17 -17
- package/src/converter-cli.ts +10 -7
- package/src/i3s-converter/helpers/batch-ids-extensions.ts +1 -2
- package/src/i3s-converter/helpers/geometry-converter.ts +2 -2
- package/src/i3s-server/routes/slpk-router.ts +2 -2
|
@@ -9,7 +9,7 @@ import { ChildProcessProxy } from '@loaders.gl/worker-utils';
|
|
|
9
9
|
import { DRACO_EXTERNAL_LIBRARIES, DRACO_EXTERNAL_LIBRARY_URLS } from '@loaders.gl/draco';
|
|
10
10
|
import { BASIS_EXTERNAL_LIBRARIES } from '@loaders.gl/textures';
|
|
11
11
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
12
|
-
const VERSION = typeof "4.
|
|
12
|
+
const VERSION = typeof "4.4.0-alpha.0" !== 'undefined' ? "4.4.0-alpha.0" : 'latest';
|
|
13
13
|
const PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
|
|
14
14
|
/**
|
|
15
15
|
* Install external dependencies for converter:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-ids-extensions.d.ts","sourceRoot":"","sources":["../../../src/i3s-converter/helpers/batch-ids-extensions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EACV,yBAAyB,EACzB,8BAA8B,EAK/B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAC,sBAAsB,EAAC,oBAAiB;
|
|
1
|
+
{"version":3,"file":"batch-ids-extensions.d.ts","sourceRoot":"","sources":["../../../src/i3s-converter/helpers/batch-ids-extensions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EACV,yBAAyB,EACzB,8BAA8B,EAK/B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAC,sBAAsB,EAAC,oBAAiB;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,kBAAkB,EAC/B,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,GAAG,IAAI,CAcf;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,yBAAyB,CAAC;CAC1C,EACD,SAAS,EAAE,8BAA8B,EACzC,MAAM,EAAE,CAAC,sBAAsB,GAAG,IAAI,CAAC,EAAE,EACzC,cAAc,EAAE,MAAM,GAAG,IAAI,GAC5B,YAAY,CAuBd"}
|
|
@@ -303,7 +303,7 @@ function convertNode({ node, images, cartographicOrigin, cartesianModelMatrix, a
|
|
|
303
303
|
const transformationMatrix = getCompositeTransformationMatrix(node, matrix);
|
|
304
304
|
const mesh = node.mesh;
|
|
305
305
|
if (mesh) {
|
|
306
|
-
|
|
306
|
+
convertMeshToTable({
|
|
307
307
|
mesh,
|
|
308
308
|
images,
|
|
309
309
|
cartographicOrigin,
|
|
@@ -340,7 +340,7 @@ function convertNode({ node, images, cartographicOrigin, cartesianModelMatrix, a
|
|
|
340
340
|
* @param matrix - transformation matrix - cumulative transformation matrix formed from all parent node matrices
|
|
341
341
|
* @param featureTexture - feature texture key
|
|
342
342
|
*/
|
|
343
|
-
function
|
|
343
|
+
function convertMeshToTable({ mesh, images, cartographicOrigin, cartesianModelMatrix, attributesMap, useCartesianPositions = false, matrix, featureTexture }) {
|
|
344
344
|
for (const primitive of mesh.primitives) {
|
|
345
345
|
let outputAttributes = null;
|
|
346
346
|
let materialUvRegion;
|