@loaders.gl/i3s 4.3.2 → 4.4.0-alpha.2
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/arcgis-webscene-loader.js +1 -1
- package/dist/dist.dev.js +1736 -1734
- package/dist/dist.min.js +1 -1
- package/dist/i3s-attribute-loader.js +1 -1
- package/dist/i3s-building-scene-layer-loader.js +1 -1
- package/dist/i3s-content-loader.js +1 -1
- package/dist/i3s-content-worker-node.js +39 -39
- package/dist/i3s-content-worker-node.js.map +4 -4
- package/dist/i3s-content-worker.js +125 -123
- package/dist/i3s-loader.js +1 -1
- package/dist/i3s-node-page-loader.js +1 -1
- package/dist/i3s-slpk-loader.js +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +2 -2
- package/dist/lib/parsers/parse-slpk/slpk-archieve.js +1 -1
- package/package.json +13 -13
- package/src/lib/parsers/parse-slpk/slpk-archieve.ts +1 -1
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
|
|
42
42
|
var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/@probe.gl/
|
|
44
|
+
// ../../node_modules/@probe.gl/env/dist/lib/globals.js
|
|
45
45
|
var window_2 = globalThis;
|
|
46
46
|
var document_2 = globalThis.document || {};
|
|
47
47
|
var process_ = globalThis.process || {};
|
|
48
48
|
var console_ = globalThis.console;
|
|
49
49
|
var navigator_ = globalThis.navigator || {};
|
|
50
50
|
|
|
51
|
-
// ../../node_modules/@probe.gl/
|
|
51
|
+
// ../../node_modules/@probe.gl/env/dist/lib/is-electron.js
|
|
52
52
|
function isElectron(mockUserAgent) {
|
|
53
53
|
if (typeof window !== "undefined" && window.process?.type === "renderer") {
|
|
54
54
|
return true;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
return Boolean(userAgent && userAgent.indexOf("Electron") >= 0);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// ../../node_modules/@probe.gl/
|
|
64
|
+
// ../../node_modules/@probe.gl/env/dist/lib/is-browser.js
|
|
65
65
|
function isBrowser2() {
|
|
66
66
|
const isNode = (
|
|
67
67
|
// @ts-expect-error
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
return !isNode || isElectron();
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// ../../node_modules/@probe.gl/
|
|
73
|
+
// ../../node_modules/@probe.gl/env/dist/index.js
|
|
74
74
|
var VERSION = true ? "4.0.7" : "untranspiled source";
|
|
75
75
|
|
|
76
76
|
// ../../node_modules/@probe.gl/log/dist/utils/local-storage.js
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
var dist_default = new Log({ id: "@probe.gl/log" });
|
|
474
474
|
|
|
475
475
|
// ../loader-utils/src/lib/log-utils/log.ts
|
|
476
|
-
var VERSION2 = true ? "4.
|
|
476
|
+
var VERSION2 = true ? "4.4.0-alpha.1" : "latest";
|
|
477
477
|
var version = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
|
|
478
478
|
function createLog() {
|
|
479
479
|
const log2 = new Log({ id: "loaders.gl" });
|
|
@@ -486,8 +486,8 @@
|
|
|
486
486
|
}
|
|
487
487
|
var log = createLog();
|
|
488
488
|
|
|
489
|
-
// ../loader-utils/src/lib/option-utils/merge-
|
|
490
|
-
function
|
|
489
|
+
// ../loader-utils/src/lib/option-utils/merge-options.ts
|
|
490
|
+
function mergeOptions(baseOptions, newOptions) {
|
|
491
491
|
return mergeOptionsRecursively(baseOptions || {}, newOptions);
|
|
492
492
|
}
|
|
493
493
|
function mergeOptionsRecursively(baseOptions, newOptions, level = 0) {
|
|
@@ -520,8 +520,10 @@
|
|
|
520
520
|
return module || null;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
+
// ../worker-utils/src/lib/npm-tag.ts
|
|
524
|
+
var NPM_TAG = "beta";
|
|
525
|
+
|
|
523
526
|
// ../worker-utils/src/lib/env-utils/version.ts
|
|
524
|
-
var NPM_TAG = "latest";
|
|
525
527
|
function getVersion() {
|
|
526
528
|
if (!globalThis._loadersgl_?.version) {
|
|
527
529
|
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
|
|
@@ -531,7 +533,7 @@
|
|
|
531
533
|
);
|
|
532
534
|
globalThis._loadersgl_.version = NPM_TAG;
|
|
533
535
|
} else {
|
|
534
|
-
globalThis._loadersgl_.version = "4.
|
|
536
|
+
globalThis._loadersgl_.version = "4.4.0-alpha.1";
|
|
535
537
|
}
|
|
536
538
|
}
|
|
537
539
|
return globalThis._loadersgl_.version;
|
|
@@ -2467,7 +2469,7 @@
|
|
|
2467
2469
|
}
|
|
2468
2470
|
async function parseWithLoader(loader, data, options, context) {
|
|
2469
2471
|
validateWorkerVersion(loader);
|
|
2470
|
-
options =
|
|
2472
|
+
options = mergeOptions(loader.options, options);
|
|
2471
2473
|
if (isResponse(data)) {
|
|
2472
2474
|
const response = data;
|
|
2473
2475
|
const { ok, redirected, status, statusText, type, url } = response;
|
|
@@ -2492,7 +2494,7 @@
|
|
|
2492
2494
|
throw new Error(`${loader.id} loader - no parser found and worker is disabled`);
|
|
2493
2495
|
}
|
|
2494
2496
|
|
|
2495
|
-
// ../schema/src/lib/
|
|
2497
|
+
// ../schema-utils/src/lib/schema/data-type.ts
|
|
2496
2498
|
function getDataTypeFromTypedArray(array) {
|
|
2497
2499
|
switch (array.constructor) {
|
|
2498
2500
|
case Int8Array:
|
|
@@ -2517,7 +2519,7 @@
|
|
|
2517
2519
|
}
|
|
2518
2520
|
}
|
|
2519
2521
|
|
|
2520
|
-
// ../schema/src/lib/mesh/mesh-utils.ts
|
|
2522
|
+
// ../schema-utils/src/lib/mesh/mesh-utils.ts
|
|
2521
2523
|
function getMeshBoundingBox(attributes) {
|
|
2522
2524
|
let minX = Infinity;
|
|
2523
2525
|
let minY = Infinity;
|
|
@@ -2544,7 +2546,7 @@
|
|
|
2544
2546
|
];
|
|
2545
2547
|
}
|
|
2546
2548
|
|
|
2547
|
-
// ../schema/src/lib/mesh/deduce-mesh-schema.ts
|
|
2549
|
+
// ../schema-utils/src/lib/mesh/deduce-mesh-schema.ts
|
|
2548
2550
|
function deduceMeshField(name, attribute, optionalMetadata) {
|
|
2549
2551
|
const type = getDataTypeFromTypedArray(attribute.value);
|
|
2550
2552
|
const metadata = optionalMetadata ? optionalMetadata : makeMeshAttributeMetadata(attribute);
|
|
@@ -5346,7 +5348,7 @@
|
|
|
5346
5348
|
Ellipsoid.WGS84 = new Ellipsoid(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z);
|
|
5347
5349
|
|
|
5348
5350
|
// ../images/src/lib/utils/version.ts
|
|
5349
|
-
var VERSION4 = true ? "4.
|
|
5351
|
+
var VERSION4 = true ? "4.4.0-alpha.1" : "latest";
|
|
5350
5352
|
|
|
5351
5353
|
// ../images/src/lib/category-api/image-type.ts
|
|
5352
5354
|
var parseImageNode = globalThis.loaders?.parseImageNode;
|
|
@@ -5753,33 +5755,86 @@
|
|
|
5753
5755
|
options: DEFAULT_IMAGE_LOADER_OPTIONS
|
|
5754
5756
|
};
|
|
5755
5757
|
|
|
5756
|
-
// ../draco/src/lib/
|
|
5757
|
-
var
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
var
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
extensions: ["drc"],
|
|
5770
|
-
mimeTypes: ["application/octet-stream"],
|
|
5771
|
-
binary: true,
|
|
5772
|
-
tests: ["DRACO"],
|
|
5773
|
-
options: {
|
|
5774
|
-
draco: {
|
|
5775
|
-
decoderType: typeof WebAssembly === "object" ? "wasm" : "js",
|
|
5776
|
-
// 'js' for IE11
|
|
5777
|
-
libraryPath: "libs/",
|
|
5778
|
-
extraAttributes: {},
|
|
5779
|
-
attributeNameEntry: void 0
|
|
5780
|
-
}
|
|
5781
|
-
}
|
|
5758
|
+
// ../draco/src/lib/draco-module-loader.ts
|
|
5759
|
+
var DRACO_DECODER_VERSION = "1.5.6";
|
|
5760
|
+
var DRACO_ENCODER_VERSION = "1.4.1";
|
|
5761
|
+
var STATIC_DECODER_URL = `https://www.gstatic.com/draco/versioned/decoders/${DRACO_DECODER_VERSION}`;
|
|
5762
|
+
var DRACO_EXTERNAL_LIBRARIES = {
|
|
5763
|
+
/** The primary Draco3D encoder, javascript wrapper part */
|
|
5764
|
+
DECODER: "draco_wasm_wrapper.js",
|
|
5765
|
+
/** The primary draco decoder, compiled web assembly part */
|
|
5766
|
+
DECODER_WASM: "draco_decoder.wasm",
|
|
5767
|
+
/** Fallback decoder for non-webassebly environments. Very big bundle, lower performance */
|
|
5768
|
+
FALLBACK_DECODER: "draco_decoder.js",
|
|
5769
|
+
/** Draco encoder */
|
|
5770
|
+
ENCODER: "draco_encoder.js"
|
|
5782
5771
|
};
|
|
5772
|
+
var DRACO_EXTERNAL_LIBRARY_URLS = {
|
|
5773
|
+
[DRACO_EXTERNAL_LIBRARIES.DECODER]: `${STATIC_DECODER_URL}/${DRACO_EXTERNAL_LIBRARIES.DECODER}`,
|
|
5774
|
+
[DRACO_EXTERNAL_LIBRARIES.DECODER_WASM]: `${STATIC_DECODER_URL}/${DRACO_EXTERNAL_LIBRARIES.DECODER_WASM}`,
|
|
5775
|
+
[DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER]: `${STATIC_DECODER_URL}/${DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER}`,
|
|
5776
|
+
[DRACO_EXTERNAL_LIBRARIES.ENCODER]: `https://raw.githubusercontent.com/google/draco/${DRACO_ENCODER_VERSION}/javascript/${DRACO_EXTERNAL_LIBRARIES.ENCODER}`
|
|
5777
|
+
};
|
|
5778
|
+
var loadDecoderPromise;
|
|
5779
|
+
async function loadDracoDecoderModule(options) {
|
|
5780
|
+
const modules = options.modules || {};
|
|
5781
|
+
if (modules.draco3d) {
|
|
5782
|
+
loadDecoderPromise ||= modules.draco3d.createDecoderModule({}).then((draco) => {
|
|
5783
|
+
return { draco };
|
|
5784
|
+
});
|
|
5785
|
+
} else {
|
|
5786
|
+
loadDecoderPromise ||= loadDracoDecoder(options);
|
|
5787
|
+
}
|
|
5788
|
+
return await loadDecoderPromise;
|
|
5789
|
+
}
|
|
5790
|
+
async function loadDracoDecoder(options) {
|
|
5791
|
+
let DracoDecoderModule;
|
|
5792
|
+
let wasmBinary;
|
|
5793
|
+
switch (options.draco && options.draco.decoderType) {
|
|
5794
|
+
case "js":
|
|
5795
|
+
DracoDecoderModule = await loadLibrary(
|
|
5796
|
+
DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER],
|
|
5797
|
+
"draco",
|
|
5798
|
+
options,
|
|
5799
|
+
DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER
|
|
5800
|
+
);
|
|
5801
|
+
break;
|
|
5802
|
+
case "wasm":
|
|
5803
|
+
default:
|
|
5804
|
+
[DracoDecoderModule, wasmBinary] = await Promise.all([
|
|
5805
|
+
await loadLibrary(
|
|
5806
|
+
DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.DECODER],
|
|
5807
|
+
"draco",
|
|
5808
|
+
options,
|
|
5809
|
+
DRACO_EXTERNAL_LIBRARIES.DECODER
|
|
5810
|
+
),
|
|
5811
|
+
await loadLibrary(
|
|
5812
|
+
DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.DECODER_WASM],
|
|
5813
|
+
"draco",
|
|
5814
|
+
options,
|
|
5815
|
+
DRACO_EXTERNAL_LIBRARIES.DECODER_WASM
|
|
5816
|
+
)
|
|
5817
|
+
]);
|
|
5818
|
+
}
|
|
5819
|
+
DracoDecoderModule = DracoDecoderModule || globalThis.DracoDecoderModule;
|
|
5820
|
+
return await initializeDracoDecoder(DracoDecoderModule, wasmBinary);
|
|
5821
|
+
}
|
|
5822
|
+
function initializeDracoDecoder(DracoDecoderModule, wasmBinary) {
|
|
5823
|
+
const options = {};
|
|
5824
|
+
if (wasmBinary) {
|
|
5825
|
+
options.wasmBinary = wasmBinary;
|
|
5826
|
+
}
|
|
5827
|
+
return new Promise((resolve2) => {
|
|
5828
|
+
DracoDecoderModule({
|
|
5829
|
+
...options,
|
|
5830
|
+
onModuleLoaded: (draco) => resolve2({ draco })
|
|
5831
|
+
// Module is Promise-like. Wrap in object to avoid loop.
|
|
5832
|
+
});
|
|
5833
|
+
});
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
// ../draco/src/lib/utils/version.ts
|
|
5837
|
+
var VERSION5 = true ? "4.4.0-alpha.1" : "latest";
|
|
5783
5838
|
|
|
5784
5839
|
// ../draco/src/lib/utils/get-draco-schema.ts
|
|
5785
5840
|
function getDracoSchema(attributes, loaderData, indices) {
|
|
@@ -5980,6 +6035,7 @@
|
|
|
5980
6035
|
case "triangle-strip":
|
|
5981
6036
|
return {
|
|
5982
6037
|
topology: "triangle-strip",
|
|
6038
|
+
// TODO - mode is wrong?
|
|
5983
6039
|
mode: 4,
|
|
5984
6040
|
// GL.TRIANGLES
|
|
5985
6041
|
attributes,
|
|
@@ -5992,6 +6048,7 @@
|
|
|
5992
6048
|
default:
|
|
5993
6049
|
return {
|
|
5994
6050
|
topology: "triangle-list",
|
|
6051
|
+
// TODO - mode is wrong?
|
|
5995
6052
|
mode: 5,
|
|
5996
6053
|
// GL.TRIANGLE_STRIP
|
|
5997
6054
|
attributes,
|
|
@@ -6276,87 +6333,32 @@
|
|
|
6276
6333
|
return intArray;
|
|
6277
6334
|
}
|
|
6278
6335
|
|
|
6279
|
-
// ../draco/src/
|
|
6280
|
-
var
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
const modules = options.modules || {};
|
|
6302
|
-
if (modules.draco3d) {
|
|
6303
|
-
loadDecoderPromise ||= modules.draco3d.createDecoderModule({}).then((draco) => {
|
|
6304
|
-
return { draco };
|
|
6305
|
-
});
|
|
6306
|
-
} else {
|
|
6307
|
-
loadDecoderPromise ||= loadDracoDecoder(options);
|
|
6308
|
-
}
|
|
6309
|
-
return await loadDecoderPromise;
|
|
6310
|
-
}
|
|
6311
|
-
async function loadDracoDecoder(options) {
|
|
6312
|
-
let DracoDecoderModule;
|
|
6313
|
-
let wasmBinary;
|
|
6314
|
-
switch (options.draco && options.draco.decoderType) {
|
|
6315
|
-
case "js":
|
|
6316
|
-
DracoDecoderModule = await loadLibrary(
|
|
6317
|
-
DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER],
|
|
6318
|
-
"draco",
|
|
6319
|
-
options,
|
|
6320
|
-
DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER
|
|
6321
|
-
);
|
|
6322
|
-
break;
|
|
6323
|
-
case "wasm":
|
|
6324
|
-
default:
|
|
6325
|
-
[DracoDecoderModule, wasmBinary] = await Promise.all([
|
|
6326
|
-
await loadLibrary(
|
|
6327
|
-
DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.DECODER],
|
|
6328
|
-
"draco",
|
|
6329
|
-
options,
|
|
6330
|
-
DRACO_EXTERNAL_LIBRARIES.DECODER
|
|
6331
|
-
),
|
|
6332
|
-
await loadLibrary(
|
|
6333
|
-
DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.DECODER_WASM],
|
|
6334
|
-
"draco",
|
|
6335
|
-
options,
|
|
6336
|
-
DRACO_EXTERNAL_LIBRARIES.DECODER_WASM
|
|
6337
|
-
)
|
|
6338
|
-
]);
|
|
6339
|
-
}
|
|
6340
|
-
DracoDecoderModule = DracoDecoderModule || globalThis.DracoDecoderModule;
|
|
6341
|
-
return await initializeDracoDecoder(DracoDecoderModule, wasmBinary);
|
|
6342
|
-
}
|
|
6343
|
-
function initializeDracoDecoder(DracoDecoderModule, wasmBinary) {
|
|
6344
|
-
const options = {};
|
|
6345
|
-
if (wasmBinary) {
|
|
6346
|
-
options.wasmBinary = wasmBinary;
|
|
6336
|
+
// ../draco/src/draco-loader.ts
|
|
6337
|
+
var DracoWorkerLoader = {
|
|
6338
|
+
dataType: null,
|
|
6339
|
+
batchType: null,
|
|
6340
|
+
name: "Draco",
|
|
6341
|
+
id: "draco",
|
|
6342
|
+
module: "draco",
|
|
6343
|
+
// shapes: ['mesh'],
|
|
6344
|
+
version: VERSION5,
|
|
6345
|
+
worker: true,
|
|
6346
|
+
extensions: ["drc"],
|
|
6347
|
+
mimeTypes: ["application/octet-stream"],
|
|
6348
|
+
binary: true,
|
|
6349
|
+
tests: ["DRACO"],
|
|
6350
|
+
options: {
|
|
6351
|
+
draco: {
|
|
6352
|
+
decoderType: typeof WebAssembly === "object" ? "wasm" : "js",
|
|
6353
|
+
// 'js' for IE11
|
|
6354
|
+
libraryPath: "libs/",
|
|
6355
|
+
extraAttributes: {},
|
|
6356
|
+
attributeNameEntry: void 0
|
|
6357
|
+
}
|
|
6347
6358
|
}
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
onModuleLoaded: (draco) => resolve2({ draco })
|
|
6352
|
-
// Module is Promise-like. Wrap in object to avoid loop.
|
|
6353
|
-
});
|
|
6354
|
-
});
|
|
6355
|
-
}
|
|
6356
|
-
|
|
6357
|
-
// ../draco/src/index.ts
|
|
6358
|
-
var DracoLoader2 = {
|
|
6359
|
-
...DracoLoader,
|
|
6359
|
+
};
|
|
6360
|
+
var DracoLoader = {
|
|
6361
|
+
...DracoWorkerLoader,
|
|
6360
6362
|
parse: parse2
|
|
6361
6363
|
};
|
|
6362
6364
|
async function parse2(arrayBuffer, options) {
|
|
@@ -6370,7 +6372,7 @@
|
|
|
6370
6372
|
}
|
|
6371
6373
|
|
|
6372
6374
|
// ../textures/src/lib/utils/version.ts
|
|
6373
|
-
var VERSION6 = true ? "4.
|
|
6375
|
+
var VERSION6 = true ? "4.4.0-alpha.1" : "latest";
|
|
6374
6376
|
|
|
6375
6377
|
// ../textures/src/lib/parsers/basis-module-loader.ts
|
|
6376
6378
|
var BASIS_EXTERNAL_LIBRARIES = {
|
|
@@ -7732,7 +7734,7 @@
|
|
|
7732
7734
|
let featureCount = 0;
|
|
7733
7735
|
let indices;
|
|
7734
7736
|
if (tileOptions.isDracoGeometry) {
|
|
7735
|
-
const decompressedGeometry = await parse(arrayBuffer,
|
|
7737
|
+
const decompressedGeometry = await parse(arrayBuffer, DracoLoader, {
|
|
7736
7738
|
draco: {
|
|
7737
7739
|
attributeNameEntry: I3S_ATTRIBUTE_TYPE
|
|
7738
7740
|
}
|
|
@@ -8053,7 +8055,7 @@
|
|
|
8053
8055
|
}
|
|
8054
8056
|
|
|
8055
8057
|
// src/i3s-content-loader.ts
|
|
8056
|
-
var VERSION7 = true ? "4.
|
|
8058
|
+
var VERSION7 = true ? "4.4.0-alpha.1" : "latest";
|
|
8057
8059
|
var I3SContentLoader = {
|
|
8058
8060
|
dataType: null,
|
|
8059
8061
|
batchType: null,
|
package/dist/i3s-loader.js
CHANGED
|
@@ -8,7 +8,7 @@ import { COORDINATE_SYSTEM } from "./lib/parsers/constants.js";
|
|
|
8
8
|
import { getUrlWithoutParams } from "./lib/utils/url-utils.js";
|
|
9
9
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
10
10
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
11
|
-
const VERSION = typeof "4.
|
|
11
|
+
const VERSION = typeof "4.4.0-alpha.1" !== 'undefined' ? "4.4.0-alpha.1" : 'latest';
|
|
12
12
|
const TILESET_REGEX = /layers\/[0-9]+$/;
|
|
13
13
|
const LOCAL_SLPK_REGEX = /\.slpk$/;
|
|
14
14
|
const TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright vis.gl contributors
|
|
4
4
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
5
5
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
6
|
-
const VERSION = typeof "4.
|
|
6
|
+
const VERSION = typeof "4.4.0-alpha.1" !== 'undefined' ? "4.4.0-alpha.1" : 'latest';
|
|
7
7
|
/**
|
|
8
8
|
* Loader for I3S node pages
|
|
9
9
|
*/
|
package/dist/i3s-slpk-loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { DataViewFile } from '@loaders.gl/loader-utils';
|
|
|
5
5
|
import { parseSLPKArchive } from "./lib/parsers/parse-slpk/parse-slpk.js";
|
|
6
6
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
7
7
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
8
|
-
const VERSION = typeof "4.
|
|
8
|
+
const VERSION = typeof "4.4.0-alpha.1" !== 'undefined' ? "4.4.0-alpha.1" : 'latest';
|
|
9
9
|
/**
|
|
10
10
|
* Loader for SLPK - Scene Layer Package (Archive I3S format)
|
|
11
11
|
* @todo - this reloads the entire archive for every tile, should be optimized
|
package/dist/index.cjs
CHANGED
|
@@ -521,7 +521,7 @@ function getFeatureIdsFromFeatureIndexMetadata(featureIndex) {
|
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
// dist/i3s-content-loader.js
|
|
524
|
-
var VERSION = true ? "4.
|
|
524
|
+
var VERSION = true ? "4.4.0-alpha.1" : "latest";
|
|
525
525
|
var I3SContentLoader = {
|
|
526
526
|
dataType: null,
|
|
527
527
|
batchType: null,
|
|
@@ -558,7 +558,7 @@ var import_core3 = require("@loaders.gl/core");
|
|
|
558
558
|
var import_textures2 = require("@loaders.gl/textures");
|
|
559
559
|
|
|
560
560
|
// dist/i3s-node-page-loader.js
|
|
561
|
-
var VERSION2 = true ? "4.
|
|
561
|
+
var VERSION2 = true ? "4.4.0-alpha.1" : "latest";
|
|
562
562
|
var I3SNodePageLoader = {
|
|
563
563
|
dataType: null,
|
|
564
564
|
batchType: null,
|
|
@@ -904,7 +904,7 @@ async function normalizeTilesetData(tileset, options, context) {
|
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
// dist/i3s-loader.js
|
|
907
|
-
var VERSION3 = true ? "4.
|
|
907
|
+
var VERSION3 = true ? "4.4.0-alpha.1" : "latest";
|
|
908
908
|
var TILESET_REGEX = /layers\/[0-9]+$/;
|
|
909
909
|
var LOCAL_SLPK_REGEX = /\.slpk$/;
|
|
910
910
|
var TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
|
|
@@ -1027,7 +1027,7 @@ var PATH_DESCRIPTIONS = [
|
|
|
1027
1027
|
extensions: [".bin.gz"]
|
|
1028
1028
|
},
|
|
1029
1029
|
{
|
|
1030
|
-
test: /statistics\/f_\d+\/\d
|
|
1030
|
+
test: /statistics\/(f_\d+\/\d+|summary)$/,
|
|
1031
1031
|
extensions: [".json.gz"]
|
|
1032
1032
|
},
|
|
1033
1033
|
{
|
|
@@ -1157,7 +1157,7 @@ async function parseSLPKArchive(fileProvider, cb, fileName) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
1159
|
// dist/i3s-slpk-loader.js
|
|
1160
|
-
var VERSION4 = true ? "4.
|
|
1160
|
+
var VERSION4 = true ? "4.4.0-alpha.1" : "latest";
|
|
1161
1161
|
var SLPKLoader = {
|
|
1162
1162
|
dataType: null,
|
|
1163
1163
|
batchType: null,
|
|
@@ -1236,7 +1236,7 @@ function parseStringsAttribute(arrayBuffer) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
1238
|
// dist/i3s-attribute-loader.js
|
|
1239
|
-
var VERSION5 = true ? "4.
|
|
1239
|
+
var VERSION5 = true ? "4.4.0-alpha.1" : "latest";
|
|
1240
1240
|
var EMPTY_VALUE = "";
|
|
1241
1241
|
var REJECTED_STATUS = "rejected";
|
|
1242
1242
|
var I3SAttributeLoader = {
|
|
@@ -1376,7 +1376,7 @@ function parseSublayersTree(sublayers, url) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
// dist/i3s-building-scene-layer-loader.js
|
|
1379
|
-
var VERSION6 = true ? "4.
|
|
1379
|
+
var VERSION6 = true ? "4.4.0-alpha.1" : "latest";
|
|
1380
1380
|
var I3SBuildingSceneLayerLoader = {
|
|
1381
1381
|
dataType: null,
|
|
1382
1382
|
batchType: null,
|
|
@@ -1470,7 +1470,7 @@ async function checkSupportedIndexCRS(layer) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
1472
|
// dist/arcgis-webscene-loader.js
|
|
1473
|
-
var VERSION7 = true ? "4.
|
|
1473
|
+
var VERSION7 = true ? "4.4.0-alpha.1" : "latest";
|
|
1474
1474
|
var ArcGISWebSceneLoader = {
|
|
1475
1475
|
dataType: null,
|
|
1476
1476
|
batchType: null,
|