@loaders.gl/tile-converter 4.1.0-alpha.3 → 4.1.0-alpha.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.
- package/dist/converter.min.cjs +103 -103
- package/dist/deps-installer/deps-installer.js +1 -1
- package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
- package/dist/i3s-converter/i3s-converter.js +4 -0
- package/dist/i3s-converter/i3s-converter.js.map +1 -1
- package/dist/i3s-server/bin/i3s-server.min.cjs +40 -40
- package/dist/index.cjs +4 -0
- package/dist/pgm-loader.js +1 -1
- package/package.json +14 -14
- package/src/i3s-converter/i3s-converter.ts +5 -1
package/dist/index.cjs
CHANGED
|
@@ -3134,6 +3134,7 @@ function isAllVerticesInsideBoundingVolume(boundingVolume, positions) {
|
|
|
3134
3134
|
|
|
3135
3135
|
// src/i3s-converter/i3s-converter.ts
|
|
3136
3136
|
var import_textures = require("@loaders.gl/textures");
|
|
3137
|
+
var import_loader_utils4 = require("@loaders.gl/loader-utils");
|
|
3137
3138
|
var import_images = require("@loaders.gl/images");
|
|
3138
3139
|
var import_worker_utils2 = require("@loaders.gl/worker-utils");
|
|
3139
3140
|
|
|
@@ -3903,6 +3904,7 @@ var Progress = class {
|
|
|
3903
3904
|
};
|
|
3904
3905
|
|
|
3905
3906
|
// src/i3s-converter/i3s-converter.ts
|
|
3907
|
+
var import_zip = require("@loaders.gl/zip");
|
|
3906
3908
|
var _a;
|
|
3907
3909
|
var ION_DEFAULT_TOKEN = (_a = import_process3.default.env) == null ? void 0 : _a.IonToken;
|
|
3908
3910
|
var HARDCODED_NODES_PER_PAGE = 64;
|
|
@@ -4296,6 +4298,8 @@ var I3SConverter = class {
|
|
|
4296
4298
|
".",
|
|
4297
4299
|
this.options.sevenZipExe
|
|
4298
4300
|
);
|
|
4301
|
+
const hashTable = await (0, import_zip.composeHashFile)(new import_loader_utils4.FileHandleFile(slpkFileName));
|
|
4302
|
+
await (0, import_zip.addOneFile)(slpkFileName, hashTable, "@specialIndexFileHASH128@");
|
|
4299
4303
|
try {
|
|
4300
4304
|
await removeDir(tilesetPath);
|
|
4301
4305
|
} catch (e) {
|
package/dist/pgm-loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Geoid, parsePGM } from '@math.gl/geoid';
|
|
2
|
-
const VERSION = typeof "4.1.0-alpha.
|
|
2
|
+
const VERSION = typeof "4.1.0-alpha.5" !== 'undefined' ? "4.1.0-alpha.5" : 'latest';
|
|
3
3
|
export { Geoid };
|
|
4
4
|
export const PGMLoader = {
|
|
5
5
|
name: 'PGM - Netpbm grayscale image format',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tile-converter",
|
|
3
|
-
"version": "4.1.0-alpha.
|
|
3
|
+
"version": "4.1.0-alpha.5",
|
|
4
4
|
"description": "Converter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"build-i3s-server-bundle": "esbuild src/i3s-server/bin/www.ts --outfile=dist/i3s-server/bin/i3s-server.min.cjs --platform=node --target=esnext,node14 --minify --bundle --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@loaders.gl/3d-tiles": "4.1.0-alpha.
|
|
56
|
-
"@loaders.gl/crypto": "4.1.0-alpha.
|
|
57
|
-
"@loaders.gl/draco": "4.1.0-alpha.
|
|
58
|
-
"@loaders.gl/gltf": "4.1.0-alpha.
|
|
59
|
-
"@loaders.gl/i3s": "4.1.0-alpha.
|
|
60
|
-
"@loaders.gl/images": "4.1.0-alpha.
|
|
61
|
-
"@loaders.gl/loader-utils": "4.1.0-alpha.
|
|
62
|
-
"@loaders.gl/polyfills": "4.1.0-alpha.
|
|
63
|
-
"@loaders.gl/textures": "4.1.0-alpha.
|
|
64
|
-
"@loaders.gl/tiles": "4.1.0-alpha.
|
|
65
|
-
"@loaders.gl/worker-utils": "4.1.0-alpha.
|
|
66
|
-
"@loaders.gl/zip": "4.1.0-alpha.
|
|
55
|
+
"@loaders.gl/3d-tiles": "4.1.0-alpha.5",
|
|
56
|
+
"@loaders.gl/crypto": "4.1.0-alpha.5",
|
|
57
|
+
"@loaders.gl/draco": "4.1.0-alpha.5",
|
|
58
|
+
"@loaders.gl/gltf": "4.1.0-alpha.5",
|
|
59
|
+
"@loaders.gl/i3s": "4.1.0-alpha.5",
|
|
60
|
+
"@loaders.gl/images": "4.1.0-alpha.5",
|
|
61
|
+
"@loaders.gl/loader-utils": "4.1.0-alpha.5",
|
|
62
|
+
"@loaders.gl/polyfills": "4.1.0-alpha.5",
|
|
63
|
+
"@loaders.gl/textures": "4.1.0-alpha.5",
|
|
64
|
+
"@loaders.gl/tiles": "4.1.0-alpha.5",
|
|
65
|
+
"@loaders.gl/worker-utils": "4.1.0-alpha.5",
|
|
66
|
+
"@loaders.gl/zip": "4.1.0-alpha.5",
|
|
67
67
|
"@math.gl/core": "^4.0.0",
|
|
68
68
|
"@math.gl/culling": "^4.0.0",
|
|
69
69
|
"@math.gl/geoid": "^4.0.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"join-images": "^1.1.3",
|
|
88
88
|
"sharp": "^0.31.3"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "3250842d8cc0fc8b76a575168c1fd57e5a66b6ba",
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@types/express": "^4.17.17",
|
|
93
93
|
"@types/node": "^20.4.2"
|
|
@@ -51,7 +51,7 @@ import {GEOMETRY_DEFINITION as geometryDefinitionTemlate} from './json-templates
|
|
|
51
51
|
import {SHARED_RESOURCES as sharedResourcesTemplate} from './json-templates/shared-resources';
|
|
52
52
|
import {validateNodeBoundingVolumes} from './helpers/node-debug';
|
|
53
53
|
import {KTX2BasisWriterWorker} from '@loaders.gl/textures';
|
|
54
|
-
import {LoaderWithParser} from '@loaders.gl/loader-utils';
|
|
54
|
+
import {FileHandleFile, LoaderWithParser} from '@loaders.gl/loader-utils';
|
|
55
55
|
import {I3SMaterialDefinition, TextureSetDefinitionFormats} from '@loaders.gl/i3s';
|
|
56
56
|
import {ImageWriter} from '@loaders.gl/images';
|
|
57
57
|
import {GLTFImagePostprocessed} from '@loaders.gl/gltf';
|
|
@@ -81,6 +81,7 @@ import {createBoundingVolume} from '@loaders.gl/tiles';
|
|
|
81
81
|
import {TraversalConversionProps, traverseDatasetWith} from './helpers/tileset-traversal';
|
|
82
82
|
import {analyzeTileContent, mergePreprocessData} from './helpers/preprocess-3d-tiles';
|
|
83
83
|
import {Progress} from './helpers/progress';
|
|
84
|
+
import {addOneFile, composeHashFile} from '@loaders.gl/zip';
|
|
84
85
|
|
|
85
86
|
const ION_DEFAULT_TOKEN = process.env?.IonToken;
|
|
86
87
|
const HARDCODED_NODES_PER_PAGE = 64;
|
|
@@ -564,6 +565,9 @@ export default class I3SConverter {
|
|
|
564
565
|
this.options.sevenZipExe
|
|
565
566
|
);
|
|
566
567
|
|
|
568
|
+
const hashTable = await composeHashFile(new FileHandleFile(slpkFileName));
|
|
569
|
+
await addOneFile(slpkFileName, hashTable, '@specialIndexFileHASH128@');
|
|
570
|
+
|
|
567
571
|
// TODO: `addFileToZip` corrupts archive so it can't be validated with windows i3s_converter.exe
|
|
568
572
|
// const fileHash128Path = `${tilesetPath}/@specialIndexFileHASH128@`;
|
|
569
573
|
// try {
|