@loaders.gl/tile-converter 4.0.0-alpha.8 → 4.0.0-beta.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/bin/i3s-server.js +4 -0
- package/bin/slpk-extractor.js +4 -0
- package/dist/3d-tiles-converter/3d-tiles-converter.d.ts +5 -5
- package/dist/3d-tiles-converter/3d-tiles-converter.d.ts.map +1 -1
- package/dist/3d-tiles-converter/helpers/b3dm-converter.d.ts +10 -5
- package/dist/3d-tiles-converter/helpers/b3dm-converter.d.ts.map +1 -1
- package/dist/3d-tiles-converter/helpers/load-i3s.d.ts +10 -0
- package/dist/3d-tiles-converter/helpers/load-i3s.d.ts.map +1 -0
- package/dist/3d-tiles-converter/helpers/texture-atlas.d.ts +2 -1
- package/dist/3d-tiles-converter/helpers/texture-atlas.d.ts.map +1 -1
- package/dist/converter.min.js +172 -103
- package/dist/deps-installer/deps-installer.d.ts +3 -2
- package/dist/deps-installer/deps-installer.d.ts.map +1 -1
- package/dist/dist.min.js +32718 -32568
- package/dist/es5/3d-tiles-converter/3d-tiles-converter.js +97 -117
- package/dist/es5/3d-tiles-converter/3d-tiles-converter.js.map +1 -1
- package/dist/es5/3d-tiles-converter/helpers/b3dm-converter.js +24 -22
- package/dist/es5/3d-tiles-converter/helpers/b3dm-converter.js.map +1 -1
- package/dist/es5/3d-tiles-converter/helpers/load-i3s.js +63 -0
- package/dist/es5/3d-tiles-converter/helpers/load-i3s.js.map +1 -0
- package/dist/es5/3d-tiles-converter/helpers/texture-atlas.js.map +1 -1
- package/dist/es5/converter-cli.js +25 -65
- package/dist/es5/converter-cli.js.map +1 -1
- package/dist/es5/deps-installer/deps-installer.js +115 -40
- package/dist/es5/deps-installer/deps-installer.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/batch-ids-extensions.js +45 -15
- package/dist/es5/i3s-converter/helpers/batch-ids-extensions.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/coordinate-converter.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/feature-attributes.js +8 -18
- package/dist/es5/i3s-converter/helpers/feature-attributes.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/geometry-attributes.js +83 -43
- package/dist/es5/i3s-converter/helpers/geometry-attributes.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/geometry-converter.js +100 -102
- package/dist/es5/i3s-converter/helpers/geometry-converter.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/gltf-attributes.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/load-3d-tiles.js +70 -4
- package/dist/es5/i3s-converter/helpers/load-3d-tiles.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/node-index-document.js +3 -2
- package/dist/es5/i3s-converter/helpers/node-index-document.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/preprocess-3d-tiles.js +47 -12
- package/dist/es5/i3s-converter/helpers/preprocess-3d-tiles.js.map +1 -1
- package/dist/es5/i3s-converter/i3s-converter.js +187 -174
- package/dist/es5/i3s-converter/i3s-converter.js.map +1 -1
- package/dist/es5/i3s-converter/types.js +11 -11
- package/dist/es5/i3s-converter/types.js.map +1 -1
- package/dist/es5/i3s-server/README.md +46 -2
- package/dist/es5/i3s-server/app.js +23 -15
- package/dist/es5/i3s-server/app.js.map +1 -1
- package/dist/es5/i3s-server/bin/www.js +33 -0
- package/dist/es5/i3s-server/bin/www.js.map +1 -0
- package/dist/es5/i3s-server/controllers/index-controller.js +23 -22
- package/dist/es5/i3s-server/controllers/index-controller.js.map +1 -1
- package/dist/es5/i3s-server/controllers/slpk-controller.js +35 -38
- package/dist/es5/i3s-server/controllers/slpk-controller.js.map +1 -1
- package/dist/es5/i3s-server/routes/index.js +2 -2
- package/dist/es5/i3s-server/routes/index.js.map +1 -1
- package/dist/es5/i3s-server/routes/slpk-router.js +14 -13
- package/dist/es5/i3s-server/routes/slpk-router.js.map +1 -1
- package/dist/es5/i3s-server/utils/create-scene-server.js +7 -4
- package/dist/es5/i3s-server/utils/create-scene-server.js.map +1 -1
- package/dist/es5/i3s-server/utils/server-utils.js +49 -0
- package/dist/es5/i3s-server/utils/server-utils.js.map +1 -0
- package/dist/es5/lib/utils/cli-utils.js +57 -0
- package/dist/es5/lib/utils/cli-utils.js.map +1 -0
- package/dist/es5/lib/utils/compress-util.js +1 -1
- package/dist/es5/lib/utils/compress-util.js.map +1 -1
- package/dist/es5/lib/utils/lod-conversion-utils.js +10 -4
- package/dist/es5/lib/utils/lod-conversion-utils.js.map +1 -1
- package/dist/es5/pgm-loader.js +11 -3
- package/dist/es5/pgm-loader.js.map +1 -1
- package/dist/es5/slpk-extractor/slpk-extractor.js +171 -0
- package/dist/es5/slpk-extractor/slpk-extractor.js.map +1 -0
- package/dist/es5/slpk-extractor-cli.js +117 -0
- package/dist/es5/slpk-extractor-cli.js.map +1 -0
- package/dist/esm/3d-tiles-converter/3d-tiles-converter.js +51 -58
- package/dist/esm/3d-tiles-converter/3d-tiles-converter.js.map +1 -1
- package/dist/esm/3d-tiles-converter/helpers/b3dm-converter.js +12 -11
- package/dist/esm/3d-tiles-converter/helpers/b3dm-converter.js.map +1 -1
- package/dist/esm/3d-tiles-converter/helpers/load-i3s.js +32 -0
- package/dist/esm/3d-tiles-converter/helpers/load-i3s.js.map +1 -0
- package/dist/esm/3d-tiles-converter/helpers/texture-atlas.js.map +1 -1
- package/dist/esm/converter-cli.js +8 -48
- package/dist/esm/converter-cli.js.map +1 -1
- package/dist/esm/deps-installer/deps-installer.js +40 -13
- package/dist/esm/deps-installer/deps-installer.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/batch-ids-extensions.js +28 -11
- package/dist/esm/i3s-converter/helpers/batch-ids-extensions.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/coordinate-converter.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/feature-attributes.js +10 -8
- package/dist/esm/i3s-converter/helpers/feature-attributes.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/geometry-attributes.js +77 -34
- package/dist/esm/i3s-converter/helpers/geometry-attributes.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/geometry-converter.js +60 -61
- package/dist/esm/i3s-converter/helpers/geometry-converter.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/gltf-attributes.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/load-3d-tiles.js +33 -4
- package/dist/esm/i3s-converter/helpers/load-3d-tiles.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/node-index-document.js +2 -1
- package/dist/esm/i3s-converter/helpers/node-index-document.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/preprocess-3d-tiles.js +37 -12
- package/dist/esm/i3s-converter/helpers/preprocess-3d-tiles.js.map +1 -1
- package/dist/esm/i3s-converter/i3s-converter.js +101 -73
- package/dist/esm/i3s-converter/i3s-converter.js.map +1 -1
- package/dist/esm/i3s-converter/types.js +9 -9
- package/dist/esm/i3s-converter/types.js.map +1 -1
- package/dist/esm/i3s-server/README.md +46 -2
- package/dist/esm/i3s-server/app.js +13 -11
- package/dist/esm/i3s-server/app.js.map +1 -1
- package/dist/esm/i3s-server/bin/i3s-server.min.js +516 -0
- package/dist/esm/i3s-server/bin/www.js +30 -0
- package/dist/esm/i3s-server/bin/www.js.map +1 -0
- package/dist/esm/i3s-server/controllers/index-controller.js +4 -7
- package/dist/esm/i3s-server/controllers/index-controller.js.map +1 -1
- package/dist/esm/i3s-server/controllers/slpk-controller.js +9 -26
- package/dist/esm/i3s-server/controllers/slpk-controller.js.map +1 -1
- package/dist/esm/i3s-server/routes/index.js +1 -1
- package/dist/esm/i3s-server/routes/index.js.map +1 -1
- package/dist/esm/i3s-server/routes/slpk-router.js +5 -11
- package/dist/esm/i3s-server/routes/slpk-router.js.map +1 -1
- package/dist/esm/i3s-server/utils/create-scene-server.js +2 -5
- package/dist/esm/i3s-server/utils/create-scene-server.js.map +1 -1
- package/dist/esm/i3s-server/utils/server-utils.js +40 -0
- package/dist/esm/i3s-server/utils/server-utils.js.map +1 -0
- package/dist/esm/lib/utils/cli-utils.js +47 -0
- package/dist/esm/lib/utils/cli-utils.js.map +1 -0
- package/dist/esm/lib/utils/compress-util.js +1 -1
- package/dist/esm/lib/utils/compress-util.js.map +1 -1
- package/dist/esm/lib/utils/lod-conversion-utils.js +6 -4
- package/dist/esm/lib/utils/lod-conversion-utils.js.map +1 -1
- package/dist/esm/pgm-loader.js +7 -4
- package/dist/esm/pgm-loader.js.map +1 -1
- package/dist/esm/slpk-extractor/slpk-extractor.js +63 -0
- package/dist/esm/slpk-extractor/slpk-extractor.js.map +1 -0
- package/dist/esm/slpk-extractor-cli.js +74 -0
- package/dist/esm/slpk-extractor-cli.js.map +1 -0
- package/dist/i3s-converter/helpers/batch-ids-extensions.d.ts +15 -2
- package/dist/i3s-converter/helpers/batch-ids-extensions.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/coordinate-converter.d.ts +1 -2
- package/dist/i3s-converter/helpers/coordinate-converter.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/feature-attributes.d.ts +8 -8
- package/dist/i3s-converter/helpers/feature-attributes.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/geometry-attributes.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/geometry-converter.d.ts +9 -9
- package/dist/i3s-converter/helpers/geometry-converter.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/gltf-attributes.d.ts +3 -3
- package/dist/i3s-converter/helpers/gltf-attributes.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/load-3d-tiles.d.ts +15 -0
- package/dist/i3s-converter/helpers/load-3d-tiles.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/node-index-document.d.ts.map +1 -1
- package/dist/i3s-converter/helpers/preprocess-3d-tiles.d.ts +4 -5
- package/dist/i3s-converter/helpers/preprocess-3d-tiles.d.ts.map +1 -1
- package/dist/i3s-converter/i3s-converter.d.ts +3 -2
- package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
- package/dist/i3s-converter/types.d.ts +48 -7
- package/dist/i3s-converter/types.d.ts.map +1 -1
- package/dist/i3s-server/app.d.ts +1 -2
- package/dist/i3s-server/app.d.ts.map +1 -1
- package/dist/i3s-server/bin/www.d.ts +3 -0
- package/dist/i3s-server/bin/www.d.ts.map +1 -0
- package/dist/i3s-server/controllers/index-controller.d.ts +6 -1
- package/dist/i3s-server/controllers/index-controller.d.ts.map +1 -1
- package/dist/i3s-server/controllers/slpk-controller.d.ts +13 -2
- package/dist/i3s-server/controllers/slpk-controller.d.ts.map +1 -1
- package/dist/i3s-server/routes/index.d.ts +1 -2
- package/dist/i3s-server/routes/index.d.ts.map +1 -1
- 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/i3s-server/utils/create-scene-server.d.ts +11 -5
- package/dist/i3s-server/utils/create-scene-server.d.ts.map +1 -1
- package/dist/i3s-server/utils/server-utils.d.ts +24 -0
- package/dist/i3s-server/utils/server-utils.d.ts.map +1 -0
- package/dist/lib/utils/cli-utils.d.ts +34 -0
- package/dist/lib/utils/cli-utils.d.ts.map +1 -0
- package/dist/lib/utils/lod-conversion-utils.d.ts +2 -2
- package/dist/lib/utils/lod-conversion-utils.d.ts.map +1 -1
- package/dist/pgm-loader.d.ts +9 -2
- package/dist/pgm-loader.d.ts.map +1 -1
- package/dist/slpk-extractor/slpk-extractor.d.ts +23 -0
- package/dist/slpk-extractor/slpk-extractor.d.ts.map +1 -0
- package/dist/slpk-extractor-cli.d.ts +17 -0
- package/dist/slpk-extractor-cli.d.ts.map +1 -0
- package/dist/slpk-extractor.min.js +189 -0
- package/package.json +28 -22
- package/src/3d-tiles-converter/3d-tiles-converter.ts +65 -69
- package/src/3d-tiles-converter/helpers/b3dm-converter.ts +23 -19
- package/src/3d-tiles-converter/helpers/load-i3s.ts +52 -0
- package/src/3d-tiles-converter/helpers/texture-atlas.ts +6 -2
- package/src/converter-cli.ts +16 -74
- package/src/deps-installer/deps-installer.ts +58 -12
- package/src/i3s-converter/helpers/batch-ids-extensions.ts +77 -32
- package/src/i3s-converter/helpers/coordinate-converter.ts +1 -2
- package/src/i3s-converter/helpers/feature-attributes.ts +23 -18
- package/src/i3s-converter/helpers/geometry-attributes.ts +81 -44
- package/src/i3s-converter/helpers/geometry-converter.ts +149 -126
- package/src/i3s-converter/helpers/gltf-attributes.ts +9 -10
- package/src/i3s-converter/helpers/load-3d-tiles.ts +61 -5
- package/src/i3s-converter/helpers/node-index-document.ts +5 -1
- package/src/i3s-converter/helpers/preprocess-3d-tiles.ts +70 -21
- package/src/i3s-converter/i3s-converter.ts +145 -73
- package/src/i3s-converter/types.ts +49 -7
- package/src/i3s-server/README.md +46 -2
- package/src/i3s-server/{app.js → app.ts} +11 -9
- package/src/i3s-server/bin/www.ts +38 -0
- package/src/i3s-server/controllers/{index-controller.js → index-controller.ts} +10 -9
- package/src/i3s-server/controllers/slpk-controller.ts +32 -0
- package/src/i3s-server/routes/{index.js → index.ts} +2 -1
- package/src/i3s-server/routes/{slpk-router.js → slpk-router.ts} +5 -10
- package/src/i3s-server/utils/create-scene-server.ts +20 -0
- package/src/i3s-server/utils/server-utils.ts +70 -0
- package/src/lib/utils/cli-utils.ts +78 -0
- package/src/lib/utils/compress-util.ts +1 -1
- package/src/lib/utils/lod-conversion-utils.ts +10 -6
- package/src/pgm-loader.ts +15 -7
- package/src/slpk-extractor/slpk-extractor.ts +101 -0
- package/src/slpk-extractor-cli.ts +128 -0
- package/dist/3d-tiles-attributes-worker.d.ts +0 -28
- package/dist/3d-tiles-attributes-worker.d.ts.map +0 -1
- package/dist/3d-tiles-attributes-worker.js +0 -3
- package/dist/3d-tiles-attributes-worker.js.map +0 -7
- package/dist/3d-tiles-converter/3d-tiles-converter.js +0 -288
- package/dist/3d-tiles-converter/helpers/b3dm-converter.js +0 -269
- package/dist/3d-tiles-converter/helpers/i3s-obb-to-3d-tiles-obb.js +0 -23
- package/dist/3d-tiles-converter/helpers/texture-atlas.js +0 -52
- package/dist/3d-tiles-converter/json-templates/tileset.js +0 -43
- package/dist/bundle.js +0 -5
- package/dist/constants.js +0 -4
- package/dist/converter-cli.js +0 -280
- package/dist/deps-installer/deps-installer.js +0 -62
- package/dist/es5/3d-tiles-attributes-worker.js +0 -25
- package/dist/es5/3d-tiles-attributes-worker.js.map +0 -1
- package/dist/es5/i3s-attributes-worker.js +0 -25
- package/dist/es5/i3s-attributes-worker.js.map +0 -1
- package/dist/es5/i3s-server/bin/www +0 -102
- package/dist/es5/workers/3d-tiles-attributes-worker.js +0 -28
- package/dist/es5/workers/3d-tiles-attributes-worker.js.map +0 -1
- package/dist/es5/workers/i3s-attributes-worker.js +0 -30
- package/dist/es5/workers/i3s-attributes-worker.js.map +0 -1
- package/dist/esm/3d-tiles-attributes-worker.js +0 -16
- package/dist/esm/3d-tiles-attributes-worker.js.map +0 -1
- package/dist/esm/i3s-attributes-worker.js +0 -16
- package/dist/esm/i3s-attributes-worker.js.map +0 -1
- package/dist/esm/i3s-server/bin/www +0 -102
- package/dist/esm/workers/3d-tiles-attributes-worker.js +0 -8
- package/dist/esm/workers/3d-tiles-attributes-worker.js.map +0 -1
- package/dist/esm/workers/i3s-attributes-worker.js +0 -7
- package/dist/esm/workers/i3s-attributes-worker.js.map +0 -1
- package/dist/i3s-attributes-worker.d.ts +0 -45
- package/dist/i3s-attributes-worker.d.ts.map +0 -1
- package/dist/i3s-attributes-worker.js +0 -9
- package/dist/i3s-attributes-worker.js.map +0 -7
- package/dist/i3s-converter/helpers/batch-ids-extensions.js +0 -138
- package/dist/i3s-converter/helpers/coordinate-converter.js +0 -123
- package/dist/i3s-converter/helpers/create-scene-server-path.js +0 -28
- package/dist/i3s-converter/helpers/feature-attributes.js +0 -216
- package/dist/i3s-converter/helpers/geometry-attributes.js +0 -202
- package/dist/i3s-converter/helpers/geometry-converter.js +0 -1225
- package/dist/i3s-converter/helpers/gltf-attributes.js +0 -128
- package/dist/i3s-converter/helpers/load-3d-tiles.js +0 -53
- package/dist/i3s-converter/helpers/node-debug.js +0 -120
- package/dist/i3s-converter/helpers/node-index-document.js +0 -268
- package/dist/i3s-converter/helpers/node-pages.js +0 -316
- package/dist/i3s-converter/helpers/preprocess-3d-tiles.js +0 -76
- package/dist/i3s-converter/helpers/tileset-traversal.js +0 -29
- package/dist/i3s-converter/i3s-converter.js +0 -911
- package/dist/i3s-converter/json-templates/geometry-definitions.js +0 -87
- package/dist/i3s-converter/json-templates/layers.js +0 -139
- package/dist/i3s-converter/json-templates/metadata.js +0 -25
- package/dist/i3s-converter/json-templates/node.js +0 -89
- package/dist/i3s-converter/json-templates/scene-server.js +0 -31
- package/dist/i3s-converter/json-templates/shared-resources.js +0 -129
- package/dist/i3s-converter/json-templates/store.js +0 -103
- package/dist/i3s-converter/types.js +0 -17
- package/dist/i3s-server/app.js +0 -22
- package/dist/i3s-server/controllers/index-controller.js +0 -23
- package/dist/i3s-server/controllers/slpk-controller.js +0 -32
- package/dist/i3s-server/routes/index.js +0 -16
- package/dist/i3s-server/routes/slpk-router.js +0 -33
- package/dist/i3s-server/utils/create-scene-server.js +0 -14
- package/dist/index.js +0 -10
- package/dist/lib/utils/compress-util.js +0 -257
- package/dist/lib/utils/file-utils.js +0 -139
- package/dist/lib/utils/geometry-utils.js +0 -18
- package/dist/lib/utils/lod-conversion-utils.js +0 -76
- package/dist/lib/utils/queue.js +0 -18
- package/dist/lib/utils/statistic-utills.js +0 -64
- package/dist/lib/utils/write-queue.js +0 -80
- package/dist/pgm-loader.js +0 -24
- package/dist/workers/3d-tiles-attributes-worker.d.ts +0 -2
- package/dist/workers/3d-tiles-attributes-worker.d.ts.map +0 -1
- package/dist/workers/3d-tiles-attributes-worker.js +0 -9
- package/dist/workers/i3s-attributes-worker.d.ts +0 -2
- package/dist/workers/i3s-attributes-worker.d.ts.map +0 -1
- package/dist/workers/i3s-attributes-worker.js +0 -5
- package/src/3d-tiles-attributes-worker.ts +0 -43
- package/src/i3s-attributes-worker.ts +0 -59
- package/src/i3s-server/bin/www +0 -102
- package/src/i3s-server/controllers/slpk-controller.js +0 -38
- package/src/i3s-server/utils/create-scene-server.js +0 -15
- package/src/workers/3d-tiles-attributes-worker.ts +0 -6
- package/src/workers/i3s-attributes-worker.ts +0 -7
package/dist/constants.js
DELETED
package/dist/converter-cli.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/* eslint-disable no-console */
|
|
4
|
-
require("@loaders.gl/polyfills");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const tile_converter_1 = require("@loaders.gl/tile-converter");
|
|
7
|
-
const deps_installer_1 = require("./deps-installer/deps-installer");
|
|
8
|
-
const TILESET_TYPE = {
|
|
9
|
-
I3S: 'I3S',
|
|
10
|
-
_3DTILES: '3DTILES'
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* CLI entry
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
async function main() {
|
|
17
|
-
const [, , ...args] = process.argv;
|
|
18
|
-
if (args.length === 0) {
|
|
19
|
-
printHelp();
|
|
20
|
-
}
|
|
21
|
-
const validatedOptionsArr = validateOptionsWithEqual(args);
|
|
22
|
-
const options = parseOptions(validatedOptionsArr);
|
|
23
|
-
if (options.installDependencies) {
|
|
24
|
-
const depthInstaller = new deps_installer_1.DepsInstaller();
|
|
25
|
-
depthInstaller.install('deps');
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const validatedOptions = validateOptions(options);
|
|
29
|
-
await convert(validatedOptions);
|
|
30
|
-
}
|
|
31
|
-
main().catch((error) => {
|
|
32
|
-
console.log(error);
|
|
33
|
-
process.exit(1); // eslint-disable-line
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* Output for `npx tile-converter --help`
|
|
37
|
-
*/
|
|
38
|
-
function printHelp() {
|
|
39
|
-
console.log('cli: converter 3dTiles to I3S or I3S to 3dTiles...');
|
|
40
|
-
console.log('--install-dependencies [Run the script for installing dependencies. Run this options separate from others. Now "*.pgm" file installation is implemented]');
|
|
41
|
-
console.log('--max-depth [Maximal depth of hierarchical tiles tree traversal, default: infinite]');
|
|
42
|
-
console.log('--name [Tileset name]');
|
|
43
|
-
console.log('--output [Output folder, default: "data" folder]');
|
|
44
|
-
console.log('--instant-node-writing [Keep created 3DNodeIndexDocument files on disk instead of memory. This option reduce memory usage but decelerates conversion speed]');
|
|
45
|
-
console.log('--split-nodes [Prevent to merge similar materials that could lead to incorrect visualization (I3S to 3DTiles conversion only)]');
|
|
46
|
-
console.log('--slpk [Generate slpk (Scene Layer Packages) I3S output file]');
|
|
47
|
-
console.log('--tileset [tileset.json file (3DTiles) / http://..../SceneServer/layers/0 resource (I3S)]');
|
|
48
|
-
console.log('--input-type [tileset input type: I3S or 3DTILES]');
|
|
49
|
-
console.log('--7zExe [location of 7z.exe archiver to create slpk on Windows, default: "C:\\Program Files\\7-Zip\\7z.exe"]');
|
|
50
|
-
console.log('--egm [location of Earth Gravity Model *.pgm file to convert heights from ellipsoidal to gravity-related format. A model file can be loaded from GeographicLib https://geographiclib.sourceforge.io/html/geoid.html], default: "./deps/egm2008-5.zip"');
|
|
51
|
-
console.log('--token [Token for Cesium ION tilesets authentication]');
|
|
52
|
-
console.log('--no-draco [Disable draco compression for geometry]');
|
|
53
|
-
console.log('--generate-textures [Enable KTX2 textures generation if only one of (JPG, PNG) texture is provided or generate JPG texture if only KTX2 is provided]');
|
|
54
|
-
console.log('--generate-bounding-volumes [Will generate obb and mbs bounding volumes from geometry]');
|
|
55
|
-
console.log('--validate [Enable validation]');
|
|
56
|
-
process.exit(0); // eslint-disable-line
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Run conversion process
|
|
60
|
-
* @param options validated tile-converter options
|
|
61
|
-
*/
|
|
62
|
-
async function convert(options) {
|
|
63
|
-
console.log(`------------------------------------------------`); // eslint-disable-line
|
|
64
|
-
console.log(`Starting conversion of ${options.inputType}`); // eslint-disable-line
|
|
65
|
-
console.log(`------------------------------------------------`); // eslint-disable-line
|
|
66
|
-
const inputType = options.inputType.toUpperCase();
|
|
67
|
-
switch (inputType) {
|
|
68
|
-
case TILESET_TYPE.I3S:
|
|
69
|
-
const tiles3DConverter = new tile_converter_1.Tiles3DConverter();
|
|
70
|
-
tiles3DConverter.convert({
|
|
71
|
-
inputUrl: options.tileset,
|
|
72
|
-
outputPath: options.output,
|
|
73
|
-
tilesetName: options.name,
|
|
74
|
-
maxDepth: options.maxDepth,
|
|
75
|
-
egmFilePath: options.egm
|
|
76
|
-
});
|
|
77
|
-
break;
|
|
78
|
-
case TILESET_TYPE._3DTILES:
|
|
79
|
-
const converter = new tile_converter_1.I3SConverter();
|
|
80
|
-
await converter.convert({
|
|
81
|
-
inputUrl: options.tileset,
|
|
82
|
-
outputPath: options.output,
|
|
83
|
-
tilesetName: options.name,
|
|
84
|
-
maxDepth: options.maxDepth,
|
|
85
|
-
slpk: options.slpk,
|
|
86
|
-
sevenZipExe: options.sevenZipExe,
|
|
87
|
-
egmFilePath: options.egm,
|
|
88
|
-
token: options.token,
|
|
89
|
-
draco: options.draco,
|
|
90
|
-
mergeMaterials: options.mergeMaterials,
|
|
91
|
-
generateTextures: options.generateTextures,
|
|
92
|
-
generateBoundingVolumes: options.generateBoundingVolumes,
|
|
93
|
-
validate: options.validate,
|
|
94
|
-
instantNodeWriting: options.instantNodeWriting
|
|
95
|
-
});
|
|
96
|
-
break;
|
|
97
|
-
default:
|
|
98
|
-
printHelp();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
// OPTIONS
|
|
102
|
-
/**
|
|
103
|
-
* Validate input options of the CLI command
|
|
104
|
-
* @param options - input options of the CLI command
|
|
105
|
-
* @returns validated options
|
|
106
|
-
*/
|
|
107
|
-
function validateOptions(options) {
|
|
108
|
-
const mandatoryOptionsWithExceptions = {
|
|
109
|
-
name: () => console.log('Missed: --name [Tileset name]'),
|
|
110
|
-
output: () => console.log('Missed: --output [Output path name]'),
|
|
111
|
-
sevenZipExe: () => console.log('Missed: --7zExe [7z archiver executable path]'),
|
|
112
|
-
egm: () => console.log('Missed: --egm [*.pgm earth gravity model file path]'),
|
|
113
|
-
tileset: () => console.log('Missed: --tileset [tileset.json file]'),
|
|
114
|
-
inputType: () => console.log('Missed/Incorrect: --input-type [tileset input type: I3S or 3DTILES]')
|
|
115
|
-
};
|
|
116
|
-
const exceptions = [];
|
|
117
|
-
for (const mandatoryOption in mandatoryOptionsWithExceptions) {
|
|
118
|
-
const optionValue = options[mandatoryOption];
|
|
119
|
-
const isWrongInputType = Boolean(optionValue) &&
|
|
120
|
-
mandatoryOption === 'inputType' &&
|
|
121
|
-
!Object.values(TILESET_TYPE).includes(optionValue.toUpperCase());
|
|
122
|
-
if (!optionValue || isWrongInputType) {
|
|
123
|
-
exceptions.push(mandatoryOptionsWithExceptions[mandatoryOption]);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (exceptions.length) {
|
|
127
|
-
exceptions.forEach((exeption) => exeption());
|
|
128
|
-
process.exit(1);
|
|
129
|
-
}
|
|
130
|
-
return options;
|
|
131
|
-
}
|
|
132
|
-
function validateOptionsWithEqual(args) {
|
|
133
|
-
return args.reduce((acc, curr) => {
|
|
134
|
-
const equalSignIndex = curr.indexOf('=');
|
|
135
|
-
const beforeEqual = curr.slice(0, equalSignIndex);
|
|
136
|
-
const afterEqual = curr.slice(equalSignIndex + 1, curr.length);
|
|
137
|
-
const condition = curr.includes('=') && curr.startsWith('--') && afterEqual;
|
|
138
|
-
if (condition) {
|
|
139
|
-
return acc.concat(beforeEqual, afterEqual);
|
|
140
|
-
}
|
|
141
|
-
return acc.concat(curr);
|
|
142
|
-
}, []);
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Parse option from the cli arguments array
|
|
146
|
-
* @param args
|
|
147
|
-
* @returns
|
|
148
|
-
*/
|
|
149
|
-
function parseOptions(args) {
|
|
150
|
-
const opts = {
|
|
151
|
-
output: 'data',
|
|
152
|
-
instantNodeWriting: false,
|
|
153
|
-
mergeMaterials: true,
|
|
154
|
-
sevenZipExe: 'C:\\Program Files\\7-Zip\\7z.exe',
|
|
155
|
-
egm: (0, path_1.join)(process.cwd(), 'deps', 'egm2008-5.pgm'),
|
|
156
|
-
draco: true,
|
|
157
|
-
installDependencies: false,
|
|
158
|
-
generateTextures: false,
|
|
159
|
-
generateBoundingVolumes: false,
|
|
160
|
-
validate: false,
|
|
161
|
-
slpk: false
|
|
162
|
-
};
|
|
163
|
-
// eslint-disable-next-line complexity
|
|
164
|
-
args.forEach((arg, index) => {
|
|
165
|
-
if (arg.indexOf('--') === 0) {
|
|
166
|
-
switch (arg) {
|
|
167
|
-
case '--input-type':
|
|
168
|
-
opts.inputType = getStringValue(index, args);
|
|
169
|
-
break;
|
|
170
|
-
case '--tileset':
|
|
171
|
-
opts.tileset = getURLValue(index, args);
|
|
172
|
-
break;
|
|
173
|
-
case '--name':
|
|
174
|
-
opts.name = getStringValue(index, args);
|
|
175
|
-
break;
|
|
176
|
-
case '--output':
|
|
177
|
-
opts.output = getStringValue(index, args);
|
|
178
|
-
break;
|
|
179
|
-
case '--instant-node-writing':
|
|
180
|
-
opts.instantNodeWriting = getBooleanValue(index, args);
|
|
181
|
-
break;
|
|
182
|
-
case '--split-nodes':
|
|
183
|
-
opts.mergeMaterials = getBooleanValue(index, args);
|
|
184
|
-
break;
|
|
185
|
-
case '--max-depth':
|
|
186
|
-
opts.maxDepth = getIntegerValue(index, args);
|
|
187
|
-
break;
|
|
188
|
-
case '--slpk':
|
|
189
|
-
opts.slpk = getBooleanValue(index, args);
|
|
190
|
-
break;
|
|
191
|
-
case '--7zExe':
|
|
192
|
-
opts.sevenZipExe = getStringValue(index, args);
|
|
193
|
-
break;
|
|
194
|
-
case '--egm':
|
|
195
|
-
opts.egm = getStringValue(index, args);
|
|
196
|
-
break;
|
|
197
|
-
case '--token':
|
|
198
|
-
opts.token = getStringValue(index, args);
|
|
199
|
-
break;
|
|
200
|
-
case '--no-draco':
|
|
201
|
-
opts.draco = getBooleanValue(index, args);
|
|
202
|
-
break;
|
|
203
|
-
case '--validate':
|
|
204
|
-
opts.validate = getBooleanValue(index, args);
|
|
205
|
-
break;
|
|
206
|
-
case '--install-dependencies':
|
|
207
|
-
opts.installDependencies = getBooleanValue(index, args);
|
|
208
|
-
break;
|
|
209
|
-
case '--generate-textures':
|
|
210
|
-
opts.generateTextures = getBooleanValue(index, args);
|
|
211
|
-
break;
|
|
212
|
-
case '--generate-bounding-volumes':
|
|
213
|
-
opts.generateBoundingVolumes = getBooleanValue(index, args);
|
|
214
|
-
break;
|
|
215
|
-
case '--help':
|
|
216
|
-
printHelp();
|
|
217
|
-
break;
|
|
218
|
-
default:
|
|
219
|
-
console.warn(`Unknown option ${arg}`);
|
|
220
|
-
process.exit(0); // eslint-disable-line
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
return opts;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Get string option value from cli arguments
|
|
228
|
-
* @param index - option's name index in the argument's array.
|
|
229
|
-
* The value of the option should be next to name of the option.
|
|
230
|
-
* @param args - cli arguments array
|
|
231
|
-
* @returns - string value of the option
|
|
232
|
-
*/
|
|
233
|
-
function getStringValue(index, args) {
|
|
234
|
-
if (index + 1 >= args.length) {
|
|
235
|
-
return '';
|
|
236
|
-
}
|
|
237
|
-
const value = args[index + 1];
|
|
238
|
-
if (value.indexOf('--') === 0) {
|
|
239
|
-
return '';
|
|
240
|
-
}
|
|
241
|
-
return value;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Modyfy URL path to be compatible with fetch
|
|
245
|
-
* @param index - option's name index in the argument's array.
|
|
246
|
-
* The value of the option should be next to name of the option.
|
|
247
|
-
* @param args - cli arguments array
|
|
248
|
-
* @returns - string value of the option
|
|
249
|
-
*/
|
|
250
|
-
function getURLValue(index, args) {
|
|
251
|
-
const value = getStringValue(index, args);
|
|
252
|
-
console.log(`Input tileset value: ${value}`);
|
|
253
|
-
console.log(`Modified tileset value: ${value.replace(/\\/g, '/')}`);
|
|
254
|
-
return value.replace(/\\/g, '/');
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Get integer option value from cli arguments
|
|
258
|
-
* @param index - option's name index in the argument's array
|
|
259
|
-
* The value of the option should be next to name of the option.
|
|
260
|
-
* @param args - cli arguments array
|
|
261
|
-
* @returns - number value of the option
|
|
262
|
-
*/
|
|
263
|
-
function getIntegerValue(index, args) {
|
|
264
|
-
const stringValue = getStringValue(index, args);
|
|
265
|
-
const result = Number.parseInt(stringValue);
|
|
266
|
-
if (isFinite(result)) {
|
|
267
|
-
return result;
|
|
268
|
-
}
|
|
269
|
-
return NaN;
|
|
270
|
-
}
|
|
271
|
-
function getBooleanValue(index, args) {
|
|
272
|
-
const stringValue = getStringValue(index, args).toLowerCase().trim();
|
|
273
|
-
if (['--no-draco', '--split-nodes'].includes(args[index]) && !stringValue) {
|
|
274
|
-
return false;
|
|
275
|
-
}
|
|
276
|
-
if (!stringValue || stringValue === 'true') {
|
|
277
|
-
return true;
|
|
278
|
-
}
|
|
279
|
-
return false;
|
|
280
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DepsInstaller = void 0;
|
|
4
|
-
const core_1 = require("@loaders.gl/core");
|
|
5
|
-
const zip_1 = require("@loaders.gl/zip");
|
|
6
|
-
const file_utils_1 = require("../lib/utils/file-utils");
|
|
7
|
-
const path_1 = require("path");
|
|
8
|
-
const worker_utils_1 = require("@loaders.gl/worker-utils");
|
|
9
|
-
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
10
|
-
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'beta';
|
|
11
|
-
const PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
|
|
12
|
-
/**
|
|
13
|
-
* Install external dependencies for converter:
|
|
14
|
-
* * PGM file (implemented);
|
|
15
|
-
* * Draco library (not implemented);
|
|
16
|
-
* * 7z archiver (not implemented);
|
|
17
|
-
*/
|
|
18
|
-
class DepsInstaller {
|
|
19
|
-
/**
|
|
20
|
-
* Run instalation
|
|
21
|
-
* @param path destination folder
|
|
22
|
-
* @param workersPath destination folder for workers.
|
|
23
|
-
* This path is '' by default and is not used by tile-converter.
|
|
24
|
-
* It is used in tests to prevent rewriting actual workers during tests running
|
|
25
|
-
*/
|
|
26
|
-
async install(path = '', workersPath = '') {
|
|
27
|
-
console.log('Installing "EGM2008-5" model...'); // eslint-disable-line no-console
|
|
28
|
-
const fileMap = await (0, core_1.load)(PGM_LINK, zip_1.ZipLoader, {});
|
|
29
|
-
let depsPath = process.cwd();
|
|
30
|
-
if (path) {
|
|
31
|
-
depsPath = (0, path_1.join)(depsPath, path);
|
|
32
|
-
}
|
|
33
|
-
await (0, file_utils_1.writeFile)(depsPath, new Uint8Array(fileMap['geoids/egm2008-5.pgm']), 'egm2008-5.pgm');
|
|
34
|
-
console.log('Installing "I3S Content Loader worker"'); // eslint-disable-line no-console
|
|
35
|
-
await this.installWorker('i3s', 'i3s-content-worker-node.js', workersPath);
|
|
36
|
-
console.log('Installing "Draco Loader worker"'); // eslint-disable-line no-console
|
|
37
|
-
await this.installWorker('draco', 'draco-worker-node.js', workersPath);
|
|
38
|
-
console.log('Installing "Basis Loader worker"'); // eslint-disable-line no-console
|
|
39
|
-
await this.installWorker('textures', 'basis-worker-node.js', workersPath);
|
|
40
|
-
console.log('Installing "join-images" npm package');
|
|
41
|
-
const childProcess = new worker_utils_1.ChildProcessProxy();
|
|
42
|
-
await childProcess.start({
|
|
43
|
-
command: 'npm',
|
|
44
|
-
// `npm install sharp join-images` works unstable. It fails because installed `sharp` version
|
|
45
|
-
// may be different from the version required by `join-images`. Pointing to specific versions
|
|
46
|
-
// resolve this issue
|
|
47
|
-
arguments: ['install', 'sharp@0.30.4', 'join-images@1.1.3'],
|
|
48
|
-
wait: 0
|
|
49
|
-
});
|
|
50
|
-
console.log('All dependencies were installed succesfully.'); // eslint-disable-line no-console
|
|
51
|
-
}
|
|
52
|
-
async installWorker(module, name, extraPath) {
|
|
53
|
-
const fileResponse = await (0, core_1.fetchFile)(`https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${name}`);
|
|
54
|
-
const fileData = await fileResponse.arrayBuffer();
|
|
55
|
-
if (!fileData) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const path = (0, path_1.join)(process.cwd(), extraPath, 'modules', module, 'dist');
|
|
59
|
-
await (0, file_utils_1.writeFile)(path, fileData, name);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.DepsInstaller = DepsInstaller;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports._typecheckI3SAttributesWorker = exports.Tile3dAttributesWorker = void 0;
|
|
7
|
-
exports.transform3DTilesAttributesOnWorker = transform3DTilesAttributesOnWorker;
|
|
8
|
-
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
9
|
-
var VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : 'latest';
|
|
10
|
-
var Tile3dAttributesWorker = {
|
|
11
|
-
id: '3d-tiles-attributes',
|
|
12
|
-
name: '3DTiles Attributes Worker',
|
|
13
|
-
module: 'tile-converter',
|
|
14
|
-
version: VERSION,
|
|
15
|
-
options: {
|
|
16
|
-
featureAttributes: null
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.Tile3dAttributesWorker = Tile3dAttributesWorker;
|
|
20
|
-
function transform3DTilesAttributesOnWorker(i3sAttributesData, options) {
|
|
21
|
-
return (0, _workerUtils.processOnWorker)(Tile3dAttributesWorker, i3sAttributesData, options);
|
|
22
|
-
}
|
|
23
|
-
var _typecheckI3SAttributesWorker = Tile3dAttributesWorker;
|
|
24
|
-
exports._typecheckI3SAttributesWorker = _typecheckI3SAttributesWorker;
|
|
25
|
-
//# sourceMappingURL=3d-tiles-attributes-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"3d-tiles-attributes-worker.js","names":["_workerUtils","require","VERSION","Tile3dAttributesWorker","id","name","module","version","options","featureAttributes","exports","transform3DTilesAttributesOnWorker","i3sAttributesData","processOnWorker","_typecheckI3SAttributesWorker"],"sources":["../../src/3d-tiles-attributes-worker.ts"],"sourcesContent":["import type {WorkerObject} from '@loaders.gl/worker-utils';\nimport type {FeatureAttribute} from '@loaders.gl/i3s';\n\nimport {processOnWorker} from '@loaders.gl/worker-utils';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type Tile3DAttributesWorkerOptions = {\n featureAttributes: FeatureAttribute | null;\n source: string;\n};\n\nexport type I3SAttributesData = {\n tileContent: any;\n textureFormat: string;\n};\n\n/**\n * I3S Attributes Worker to handle B3DM object\n */\nexport const Tile3dAttributesWorker = {\n id: '3d-tiles-attributes',\n name: '3DTiles Attributes Worker',\n module: 'tile-converter',\n version: VERSION,\n options: {\n featureAttributes: null\n }\n};\n\n/**\n * Performs I3S attributes transformation\n */\nexport function transform3DTilesAttributesOnWorker(\n i3sAttributesData: I3SAttributesData,\n options: Tile3DAttributesWorkerOptions\n): Promise<ArrayBuffer> {\n return processOnWorker(Tile3dAttributesWorker, i3sAttributesData, options);\n}\n\nexport const _typecheckI3SAttributesWorker: WorkerObject = Tile3dAttributesWorker;\n"],"mappings":";;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAepE,IAAMC,sBAAsB,GAAG;EACpCC,EAAE,EAAE,qBAAqB;EACzBC,IAAI,EAAE,2BAA2B;EACjCC,MAAM,EAAE,gBAAgB;EACxBC,OAAO,EAAEL,OAAO;EAChBM,OAAO,EAAE;IACPC,iBAAiB,EAAE;EACrB;AACF,CAAC;AAACC,OAAA,CAAAP,sBAAA,GAAAA,sBAAA;AAKK,SAASQ,kCAAkCA,CAChDC,iBAAoC,EACpCJ,OAAsC,EAChB;EACtB,OAAO,IAAAK,4BAAe,EAACV,sBAAsB,EAAES,iBAAiB,EAAEJ,OAAO,CAAC;AAC5E;AAEO,IAAMM,6BAA2C,GAAGX,sBAAsB;AAACO,OAAA,CAAAI,6BAAA,GAAAA,6BAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports._typecheckI3SAttributesWorker = exports.I3SAttributesWorker = void 0;
|
|
7
|
-
exports.transformI3SAttributesOnWorker = transformI3SAttributesOnWorker;
|
|
8
|
-
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
9
|
-
var VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : 'latest';
|
|
10
|
-
var I3SAttributesWorker = {
|
|
11
|
-
id: 'i3s-attributes',
|
|
12
|
-
name: 'I3S Attributes Worker',
|
|
13
|
-
module: 'tile-converter',
|
|
14
|
-
version: VERSION,
|
|
15
|
-
options: {
|
|
16
|
-
useCartesianPositions: false
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.I3SAttributesWorker = I3SAttributesWorker;
|
|
20
|
-
function transformI3SAttributesOnWorker(attributesData, options) {
|
|
21
|
-
return (0, _workerUtils.processOnWorker)(I3SAttributesWorker, attributesData, options);
|
|
22
|
-
}
|
|
23
|
-
var _typecheckI3SAttributesWorker = I3SAttributesWorker;
|
|
24
|
-
exports._typecheckI3SAttributesWorker = _typecheckI3SAttributesWorker;
|
|
25
|
-
//# sourceMappingURL=i3s-attributes-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-attributes-worker.js","names":["_workerUtils","require","VERSION","I3SAttributesWorker","id","name","module","version","options","useCartesianPositions","exports","transformI3SAttributesOnWorker","attributesData","processOnWorker","_typecheckI3SAttributesWorker"],"sources":["../../src/i3s-attributes-worker.ts"],"sourcesContent":["import type {WorkerObject} from '@loaders.gl/worker-utils';\nimport type {ConvertedAttributes} from './i3s-converter/types';\nimport type {Matrix4, Vector3} from '@math.gl/core';\nimport type {GLTFNodePostprocessed} from '@loaders.gl/gltf';\n\nimport {processOnWorker} from '@loaders.gl/worker-utils';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type I3SAttributesWorkerOptions = {\n _nodeWorkers: boolean;\n reuseWorkers: boolean;\n useCartesianPositions: boolean;\n source: string;\n};\n\nexport type TextureImageProperties = {\n data: Uint8Array;\n compressed?: boolean;\n height?: number;\n width?: number;\n components?: number;\n mimeType?: string;\n};\n\nexport type B3DMAttributesData = {\n gltfMaterials?: {id: string}[];\n nodes: GLTFNodePostprocessed[];\n images: (null | TextureImageProperties)[];\n cartographicOrigin: Vector3;\n cartesianModelMatrix: Matrix4;\n};\n\n/**\n * I3S Attributes Worker to handle B3DM object\n */\nexport const I3SAttributesWorker = {\n id: 'i3s-attributes',\n name: 'I3S Attributes Worker',\n module: 'tile-converter',\n version: VERSION,\n options: {\n useCartesianPositions: false\n }\n};\n\n/**\n * Performs I3S attributes transformation\n */\nexport function transformI3SAttributesOnWorker(\n attributesData: B3DMAttributesData,\n options: I3SAttributesWorkerOptions\n): Promise<Map<string, ConvertedAttributes>> {\n return processOnWorker(I3SAttributesWorker, attributesData, options);\n}\n\nexport const _typecheckI3SAttributesWorker: WorkerObject = I3SAttributesWorker;\n"],"mappings":";;;;;;;AAKA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AA6BpE,IAAMC,mBAAmB,GAAG;EACjCC,EAAE,EAAE,gBAAgB;EACpBC,IAAI,EAAE,uBAAuB;EAC7BC,MAAM,EAAE,gBAAgB;EACxBC,OAAO,EAAEL,OAAO;EAChBM,OAAO,EAAE;IACPC,qBAAqB,EAAE;EACzB;AACF,CAAC;AAACC,OAAA,CAAAP,mBAAA,GAAAA,mBAAA;AAKK,SAASQ,8BAA8BA,CAC5CC,cAAkC,EAClCJ,OAAmC,EACQ;EAC3C,OAAO,IAAAK,4BAAe,EAACV,mBAAmB,EAAES,cAAc,EAAEJ,OAAO,CAAC;AACtE;AAEO,IAAMM,6BAA2C,GAAGX,mBAAmB;AAACO,OAAA,CAAAI,6BAAA,GAAAA,6BAAA"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Module dependencies.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
const app = require('../app');
|
|
8
|
-
const debug = require('debug')('i3s-server:server');
|
|
9
|
-
const https = require('https');
|
|
10
|
-
const http = require('http');
|
|
11
|
-
const fs = require('fs');
|
|
12
|
-
const path = require('path');
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Get port from environment and store in Express.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
const httpPort = normalizePort(process.env.PORT || '80'); // eslint-disable-line no-process-env, no-undef
|
|
19
|
-
const httpsPort = normalizePort(process.env.HTTPS_PORT || '443'); // eslint-disable-line no-process-env, no-undef
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create HTTP server.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
const options = {
|
|
26
|
-
key: fs.readFileSync(path.join(__dirname, '../certs/key.pem')),
|
|
27
|
-
cert: fs.readFileSync(path.join(__dirname, '../certs/cert.pem'))
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const httpServer = http.createServer(app);
|
|
31
|
-
const httpsServer = https.createServer(options, app);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Listen on provided port, on all network interfaces.
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
httpServer.listen(httpPort);
|
|
38
|
-
httpServer.on('error', formErrorHandler(httpPort));
|
|
39
|
-
httpServer.on('listening', formListeningHandler(httpServer));
|
|
40
|
-
|
|
41
|
-
httpsServer.listen(httpsPort);
|
|
42
|
-
httpsServer.on('error', formErrorHandler(httpsPort));
|
|
43
|
-
httpsServer.on('listening', formListeningHandler(httpsServer));
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Normalize a port into a number, string, or false.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
function normalizePort(val) {
|
|
50
|
-
const chkPort = parseInt(val, 10);
|
|
51
|
-
|
|
52
|
-
if (isNaN(chkPort)) {
|
|
53
|
-
// named pipe
|
|
54
|
-
return val;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (chkPort >= 0) {
|
|
58
|
-
// port number
|
|
59
|
-
return chkPort;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Event listener for HTTP/HTTPS server "error" event.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
function formErrorHandler(optionalPort) {
|
|
70
|
-
return function onError(error) {
|
|
71
|
-
if (error.syscall !== 'listen') {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const bind = typeof port === 'string' ? `Pipe ${optionalPort}`: `Port ${optionalPort}`;
|
|
76
|
-
|
|
77
|
-
// handle specific listen errors with friendly messages
|
|
78
|
-
switch (error.code) {
|
|
79
|
-
case 'EACCES':
|
|
80
|
-
console.error(`${bind} requires elevated privileges`);// eslint-disable-line no-console, no-undef
|
|
81
|
-
process.exit(1);// eslint-disable-line no-process-exit, no-undef
|
|
82
|
-
break;
|
|
83
|
-
case 'EADDRINUSE':
|
|
84
|
-
console.error(`${bind} is already in use`);// eslint-disable-line no-console, no-undef
|
|
85
|
-
process.exit(1);// eslint-disable-line no-process-exit, no-undef
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
throw error;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Event listener for HTTP/HTTPS server "listening" event.
|
|
95
|
-
*/
|
|
96
|
-
function formListeningHandler(optionalServer) {
|
|
97
|
-
return function onListening() {
|
|
98
|
-
const addr = optionalServer.address();
|
|
99
|
-
const bind = typeof addr === 'string' ? `pipe ${addr}` : `port ${addr.port}`;
|
|
100
|
-
debug(`Listening on ${bind}`);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
|
-
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
7
|
-
var _b3dmConverter = _interopRequireDefault(require("../3d-tiles-converter/helpers/b3dm-converter"));
|
|
8
|
-
var b3dmConverter = new _b3dmConverter.default();
|
|
9
|
-
(0, _workerUtils.createWorker)(function () {
|
|
10
|
-
var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(data) {
|
|
11
|
-
var options,
|
|
12
|
-
_args = arguments;
|
|
13
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
14
|
-
while (1) switch (_context.prev = _context.next) {
|
|
15
|
-
case 0:
|
|
16
|
-
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
17
|
-
return _context.abrupt("return", b3dmConverter.convert(data, options.featureAttributes));
|
|
18
|
-
case 2:
|
|
19
|
-
case "end":
|
|
20
|
-
return _context.stop();
|
|
21
|
-
}
|
|
22
|
-
}, _callee);
|
|
23
|
-
}));
|
|
24
|
-
return function (_x) {
|
|
25
|
-
return _ref.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
}());
|
|
28
|
-
//# sourceMappingURL=3d-tiles-attributes-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"3d-tiles-attributes-worker.js","names":["_workerUtils","require","_b3dmConverter","_interopRequireDefault","b3dmConverter","B3dmConverter","createWorker","_ref","_asyncToGenerator2","default","_regenerator","mark","_callee","data","options","_args","arguments","wrap","_callee$","_context","prev","next","length","undefined","abrupt","convert","featureAttributes","stop","_x","apply"],"sources":["../../../src/workers/3d-tiles-attributes-worker.ts"],"sourcesContent":["import {createWorker} from '@loaders.gl/worker-utils';\nimport B3dmConverter from '../3d-tiles-converter/helpers/b3dm-converter';\n\nconst b3dmConverter = new B3dmConverter();\n\ncreateWorker(async (data, options = {}) => b3dmConverter.convert(data, options.featureAttributes));\n"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAMG,aAAa,GAAG,IAAIC,sBAAa,CAAC,CAAC;AAEzC,IAAAC,yBAAY;EAAA,IAAAC,IAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAC,SAAAC,QAAOC,IAAI;IAAA,IAAAC,OAAA;MAAAC,KAAA,GAAAC,SAAA;IAAA,OAAAN,YAAA,CAAAD,OAAA,CAAAQ,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UAAEP,OAAO,GAAAC,KAAA,CAAAO,MAAA,QAAAP,KAAA,QAAAQ,SAAA,GAAAR,KAAA,MAAG,CAAC,CAAC;UAAA,OAAAI,QAAA,CAAAK,MAAA,WAAKpB,aAAa,CAACqB,OAAO,CAACZ,IAAI,EAAEC,OAAO,CAACY,iBAAiB,CAAC;QAAA;QAAA;UAAA,OAAAP,QAAA,CAAAQ,IAAA;MAAA;IAAA,GAAAf,OAAA;EAAA;EAAA,iBAAAgB,EAAA;IAAA,OAAArB,IAAA,CAAAsB,KAAA,OAAAb,SAAA;EAAA;AAAA,IAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
5
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
6
|
-
var _workerUtils = require("@loaders.gl/worker-utils");
|
|
7
|
-
var _geometryConverter = require("../i3s-converter/helpers/geometry-converter");
|
|
8
|
-
(0, _workerUtils.createWorker)(function () {
|
|
9
|
-
var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(data) {
|
|
10
|
-
var options,
|
|
11
|
-
_args = arguments;
|
|
12
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
13
|
-
while (1) switch (_context.prev = _context.next) {
|
|
14
|
-
case 0:
|
|
15
|
-
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
16
|
-
_context.next = 3;
|
|
17
|
-
return (0, _geometryConverter.convertAttributes)(data, options.materialAndTextureList, options.useCartesianPositions);
|
|
18
|
-
case 3:
|
|
19
|
-
return _context.abrupt("return", _context.sent);
|
|
20
|
-
case 4:
|
|
21
|
-
case "end":
|
|
22
|
-
return _context.stop();
|
|
23
|
-
}
|
|
24
|
-
}, _callee);
|
|
25
|
-
}));
|
|
26
|
-
return function (_x) {
|
|
27
|
-
return _ref.apply(this, arguments);
|
|
28
|
-
};
|
|
29
|
-
}());
|
|
30
|
-
//# sourceMappingURL=i3s-attributes-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-attributes-worker.js","names":["_workerUtils","require","_geometryConverter","createWorker","_ref","_asyncToGenerator2","default","_regenerator","mark","_callee","data","options","_args","arguments","wrap","_callee$","_context","prev","next","length","undefined","convertAttributes","materialAndTextureList","useCartesianPositions","abrupt","sent","stop","_x","apply"],"sources":["../../../src/workers/i3s-attributes-worker.ts"],"sourcesContent":["import {createWorker} from '@loaders.gl/worker-utils';\nimport {convertAttributes} from '../i3s-converter/helpers/geometry-converter';\n\ncreateWorker(\n async (data, options = {}) =>\n await convertAttributes(data, options.materialAndTextureList, options.useCartesianPositions)\n);\n"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAEA,IAAAE,yBAAY;EAAA,IAAAC,IAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CACV,SAAAC,QAAOC,IAAI;IAAA,IAAAC,OAAA;MAAAC,KAAA,GAAAC,SAAA;IAAA,OAAAN,YAAA,CAAAD,OAAA,CAAAQ,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UAAEP,OAAO,GAAAC,KAAA,CAAAO,MAAA,QAAAP,KAAA,QAAAQ,SAAA,GAAAR,KAAA,MAAG,CAAC,CAAC;UAAAI,QAAA,CAAAE,IAAA;UAAA,OACjB,IAAAG,oCAAiB,EAACX,IAAI,EAAEC,OAAO,CAACW,sBAAsB,EAAEX,OAAO,CAACY,qBAAqB,CAAC;QAAA;UAAA,OAAAP,QAAA,CAAAQ,MAAA,WAAAR,QAAA,CAAAS,IAAA;QAAA;QAAA;UAAA,OAAAT,QAAA,CAAAU,IAAA;MAAA;IAAA,GAAAjB,OAAA;EAAA;EAAA,iBAAAkB,EAAA;IAAA,OAAAvB,IAAA,CAAAwB,KAAA,OAAAf,SAAA;EAAA;AAAA,GAChG,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { processOnWorker } from '@loaders.gl/worker-utils';
|
|
2
|
-
const VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : 'latest';
|
|
3
|
-
export const Tile3dAttributesWorker = {
|
|
4
|
-
id: '3d-tiles-attributes',
|
|
5
|
-
name: '3DTiles Attributes Worker',
|
|
6
|
-
module: 'tile-converter',
|
|
7
|
-
version: VERSION,
|
|
8
|
-
options: {
|
|
9
|
-
featureAttributes: null
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export function transform3DTilesAttributesOnWorker(i3sAttributesData, options) {
|
|
13
|
-
return processOnWorker(Tile3dAttributesWorker, i3sAttributesData, options);
|
|
14
|
-
}
|
|
15
|
-
export const _typecheckI3SAttributesWorker = Tile3dAttributesWorker;
|
|
16
|
-
//# sourceMappingURL=3d-tiles-attributes-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"3d-tiles-attributes-worker.js","names":["processOnWorker","VERSION","Tile3dAttributesWorker","id","name","module","version","options","featureAttributes","transform3DTilesAttributesOnWorker","i3sAttributesData","_typecheckI3SAttributesWorker"],"sources":["../../src/3d-tiles-attributes-worker.ts"],"sourcesContent":["import type {WorkerObject} from '@loaders.gl/worker-utils';\nimport type {FeatureAttribute} from '@loaders.gl/i3s';\n\nimport {processOnWorker} from '@loaders.gl/worker-utils';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type Tile3DAttributesWorkerOptions = {\n featureAttributes: FeatureAttribute | null;\n source: string;\n};\n\nexport type I3SAttributesData = {\n tileContent: any;\n textureFormat: string;\n};\n\n/**\n * I3S Attributes Worker to handle B3DM object\n */\nexport const Tile3dAttributesWorker = {\n id: '3d-tiles-attributes',\n name: '3DTiles Attributes Worker',\n module: 'tile-converter',\n version: VERSION,\n options: {\n featureAttributes: null\n }\n};\n\n/**\n * Performs I3S attributes transformation\n */\nexport function transform3DTilesAttributesOnWorker(\n i3sAttributesData: I3SAttributesData,\n options: Tile3DAttributesWorkerOptions\n): Promise<ArrayBuffer> {\n return processOnWorker(Tile3dAttributesWorker, i3sAttributesData, options);\n}\n\nexport const _typecheckI3SAttributesWorker: WorkerObject = Tile3dAttributesWorker;\n"],"mappings":"AAGA,SAAQA,eAAe,QAAO,0BAA0B;AAIxD,MAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAe3E,OAAO,MAAMC,sBAAsB,GAAG;EACpCC,EAAE,EAAE,qBAAqB;EACzBC,IAAI,EAAE,2BAA2B;EACjCC,MAAM,EAAE,gBAAgB;EACxBC,OAAO,EAAEL,OAAO;EAChBM,OAAO,EAAE;IACPC,iBAAiB,EAAE;EACrB;AACF,CAAC;AAKD,OAAO,SAASC,kCAAkCA,CAChDC,iBAAoC,EACpCH,OAAsC,EAChB;EACtB,OAAOP,eAAe,CAACE,sBAAsB,EAAEQ,iBAAiB,EAAEH,OAAO,CAAC;AAC5E;AAEA,OAAO,MAAMI,6BAA2C,GAAGT,sBAAsB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { processOnWorker } from '@loaders.gl/worker-utils';
|
|
2
|
-
const VERSION = typeof "4.0.0-alpha.8" !== 'undefined' ? "4.0.0-alpha.8" : 'latest';
|
|
3
|
-
export const I3SAttributesWorker = {
|
|
4
|
-
id: 'i3s-attributes',
|
|
5
|
-
name: 'I3S Attributes Worker',
|
|
6
|
-
module: 'tile-converter',
|
|
7
|
-
version: VERSION,
|
|
8
|
-
options: {
|
|
9
|
-
useCartesianPositions: false
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export function transformI3SAttributesOnWorker(attributesData, options) {
|
|
13
|
-
return processOnWorker(I3SAttributesWorker, attributesData, options);
|
|
14
|
-
}
|
|
15
|
-
export const _typecheckI3SAttributesWorker = I3SAttributesWorker;
|
|
16
|
-
//# sourceMappingURL=i3s-attributes-worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i3s-attributes-worker.js","names":["processOnWorker","VERSION","I3SAttributesWorker","id","name","module","version","options","useCartesianPositions","transformI3SAttributesOnWorker","attributesData","_typecheckI3SAttributesWorker"],"sources":["../../src/i3s-attributes-worker.ts"],"sourcesContent":["import type {WorkerObject} from '@loaders.gl/worker-utils';\nimport type {ConvertedAttributes} from './i3s-converter/types';\nimport type {Matrix4, Vector3} from '@math.gl/core';\nimport type {GLTFNodePostprocessed} from '@loaders.gl/gltf';\n\nimport {processOnWorker} from '@loaders.gl/worker-utils';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type I3SAttributesWorkerOptions = {\n _nodeWorkers: boolean;\n reuseWorkers: boolean;\n useCartesianPositions: boolean;\n source: string;\n};\n\nexport type TextureImageProperties = {\n data: Uint8Array;\n compressed?: boolean;\n height?: number;\n width?: number;\n components?: number;\n mimeType?: string;\n};\n\nexport type B3DMAttributesData = {\n gltfMaterials?: {id: string}[];\n nodes: GLTFNodePostprocessed[];\n images: (null | TextureImageProperties)[];\n cartographicOrigin: Vector3;\n cartesianModelMatrix: Matrix4;\n};\n\n/**\n * I3S Attributes Worker to handle B3DM object\n */\nexport const I3SAttributesWorker = {\n id: 'i3s-attributes',\n name: 'I3S Attributes Worker',\n module: 'tile-converter',\n version: VERSION,\n options: {\n useCartesianPositions: false\n }\n};\n\n/**\n * Performs I3S attributes transformation\n */\nexport function transformI3SAttributesOnWorker(\n attributesData: B3DMAttributesData,\n options: I3SAttributesWorkerOptions\n): Promise<Map<string, ConvertedAttributes>> {\n return processOnWorker(I3SAttributesWorker, attributesData, options);\n}\n\nexport const _typecheckI3SAttributesWorker: WorkerObject = I3SAttributesWorker;\n"],"mappings":"AAKA,SAAQA,eAAe,QAAO,0BAA0B;AAIxD,MAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AA6B3E,OAAO,MAAMC,mBAAmB,GAAG;EACjCC,EAAE,EAAE,gBAAgB;EACpBC,IAAI,EAAE,uBAAuB;EAC7BC,MAAM,EAAE,gBAAgB;EACxBC,OAAO,EAAEL,OAAO;EAChBM,OAAO,EAAE;IACPC,qBAAqB,EAAE;EACzB;AACF,CAAC;AAKD,OAAO,SAASC,8BAA8BA,CAC5CC,cAAkC,EAClCH,OAAmC,EACQ;EAC3C,OAAOP,eAAe,CAACE,mBAAmB,EAAEQ,cAAc,EAAEH,OAAO,CAAC;AACtE;AAEA,OAAO,MAAMI,6BAA2C,GAAGT,mBAAmB"}
|