@loaders.gl/3d-tiles 3.3.0-alpha.8 → 3.3.0
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/dist.min.js +113 -115
- package/dist/es5/lib/utils/version.js +1 -1
- package/dist/es5/lib/utils/version.js.map +1 -1
- package/dist/esm/lib/utils/version.js +1 -1
- package/dist/esm/lib/utils/version.js.map +1 -1
- package/dist/lib/parsers/parse-3d-tile-batched-model.js +1 -1
- package/package.json +7 -7
package/dist/dist.min.js
CHANGED
|
@@ -145,11 +145,13 @@
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
// ../worker-utils/src/lib/node/worker_threads-browser.
|
|
148
|
+
// ../worker-utils/src/lib/node/worker_threads-browser.ts
|
|
149
149
|
var Worker2;
|
|
150
150
|
var init_worker_threads_browser = __esm({
|
|
151
|
-
"../worker-utils/src/lib/node/worker_threads-browser.
|
|
151
|
+
"../worker-utils/src/lib/node/worker_threads-browser.ts"() {
|
|
152
152
|
Worker2 = class {
|
|
153
|
+
terminate() {
|
|
154
|
+
}
|
|
153
155
|
};
|
|
154
156
|
}
|
|
155
157
|
});
|
|
@@ -749,46 +751,7 @@
|
|
|
749
751
|
}
|
|
750
752
|
});
|
|
751
753
|
|
|
752
|
-
// ../loader-utils/src/lib/binary-utils/buffer-utils.ts
|
|
753
|
-
function isBuffer(value) {
|
|
754
|
-
return value && typeof value === "object" && value.isBuffer;
|
|
755
|
-
}
|
|
756
|
-
function bufferToArrayBuffer(buffer) {
|
|
757
|
-
if (isBuffer(buffer)) {
|
|
758
|
-
const typedArray = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.length);
|
|
759
|
-
return typedArray.slice().buffer;
|
|
760
|
-
}
|
|
761
|
-
return buffer;
|
|
762
|
-
}
|
|
763
|
-
var init_buffer_utils = __esm({
|
|
764
|
-
"../loader-utils/src/lib/binary-utils/buffer-utils.ts"() {
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
|
|
768
754
|
// ../loader-utils/src/lib/binary-utils/array-buffer-utils.ts
|
|
769
|
-
function toArrayBuffer(data) {
|
|
770
|
-
if (isBuffer(data)) {
|
|
771
|
-
return bufferToArrayBuffer(data);
|
|
772
|
-
}
|
|
773
|
-
if (data instanceof ArrayBuffer) {
|
|
774
|
-
return data;
|
|
775
|
-
}
|
|
776
|
-
if (ArrayBuffer.isView(data)) {
|
|
777
|
-
if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
|
|
778
|
-
return data.buffer;
|
|
779
|
-
}
|
|
780
|
-
return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
781
|
-
}
|
|
782
|
-
if (typeof data === "string") {
|
|
783
|
-
const text = data;
|
|
784
|
-
const uint8Array = new TextEncoder().encode(text);
|
|
785
|
-
return uint8Array.buffer;
|
|
786
|
-
}
|
|
787
|
-
if (data && typeof data === "object" && data._toArrayBuffer) {
|
|
788
|
-
return data._toArrayBuffer();
|
|
789
|
-
}
|
|
790
|
-
throw new Error("toArrayBuffer");
|
|
791
|
-
}
|
|
792
755
|
function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) {
|
|
793
756
|
byteLength = byteLength || arrayBuffer1.byteLength;
|
|
794
757
|
if (arrayBuffer1.byteLength < byteLength || arrayBuffer2.byteLength < byteLength) {
|
|
@@ -821,7 +784,6 @@
|
|
|
821
784
|
}
|
|
822
785
|
var init_array_buffer_utils = __esm({
|
|
823
786
|
"../loader-utils/src/lib/binary-utils/array-buffer-utils.ts"() {
|
|
824
|
-
init_buffer_utils();
|
|
825
787
|
}
|
|
826
788
|
});
|
|
827
789
|
|
|
@@ -849,34 +811,7 @@
|
|
|
849
811
|
}
|
|
850
812
|
});
|
|
851
813
|
|
|
852
|
-
// ../loader-utils/src/lib/binary-utils/
|
|
853
|
-
function copyPaddedArrayBufferToDataView(dataView, byteOffset, sourceBuffer, padding) {
|
|
854
|
-
const paddedLength = padToNBytes(sourceBuffer.byteLength, padding);
|
|
855
|
-
const padLength = paddedLength - sourceBuffer.byteLength;
|
|
856
|
-
if (dataView) {
|
|
857
|
-
const targetArray = new Uint8Array(dataView.buffer, dataView.byteOffset + byteOffset, sourceBuffer.byteLength);
|
|
858
|
-
const sourceArray = new Uint8Array(sourceBuffer);
|
|
859
|
-
targetArray.set(sourceArray);
|
|
860
|
-
for (let i2 = 0; i2 < padLength; ++i2) {
|
|
861
|
-
dataView.setUint8(byteOffset + sourceBuffer.byteLength + i2, 32);
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
byteOffset += paddedLength;
|
|
865
|
-
return byteOffset;
|
|
866
|
-
}
|
|
867
|
-
function copyPaddedStringToDataView(dataView, byteOffset, string, padding) {
|
|
868
|
-
const textEncoder = new TextEncoder();
|
|
869
|
-
const stringBuffer = textEncoder.encode(string);
|
|
870
|
-
byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding);
|
|
871
|
-
return byteOffset;
|
|
872
|
-
}
|
|
873
|
-
var init_binary_copy_utils = __esm({
|
|
874
|
-
"../loader-utils/src/lib/binary-utils/binary-copy-utils.ts"() {
|
|
875
|
-
init_memory_copy_utils();
|
|
876
|
-
}
|
|
877
|
-
});
|
|
878
|
-
|
|
879
|
-
// ../loader-utils/src/lib/binary-utils/encode-utils.ts
|
|
814
|
+
// ../loader-utils/src/lib/binary-utils/dataview-copy-utils.ts
|
|
880
815
|
function padStringToByteAlignment(string, byteAlignment) {
|
|
881
816
|
const length4 = string.length;
|
|
882
817
|
const paddedLength = Math.ceil(length4 / byteAlignment) * byteAlignment;
|
|
@@ -903,8 +838,29 @@
|
|
|
903
838
|
}
|
|
904
839
|
return byteOffset + byteLength;
|
|
905
840
|
}
|
|
906
|
-
|
|
907
|
-
|
|
841
|
+
function copyPaddedArrayBufferToDataView(dataView, byteOffset, sourceBuffer, padding) {
|
|
842
|
+
const paddedLength = padToNBytes(sourceBuffer.byteLength, padding);
|
|
843
|
+
const padLength = paddedLength - sourceBuffer.byteLength;
|
|
844
|
+
if (dataView) {
|
|
845
|
+
const targetArray = new Uint8Array(dataView.buffer, dataView.byteOffset + byteOffset, sourceBuffer.byteLength);
|
|
846
|
+
const sourceArray = new Uint8Array(sourceBuffer);
|
|
847
|
+
targetArray.set(sourceArray);
|
|
848
|
+
for (let i2 = 0; i2 < padLength; ++i2) {
|
|
849
|
+
dataView.setUint8(byteOffset + sourceBuffer.byteLength + i2, 32);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
byteOffset += paddedLength;
|
|
853
|
+
return byteOffset;
|
|
854
|
+
}
|
|
855
|
+
function copyPaddedStringToDataView(dataView, byteOffset, string, padding) {
|
|
856
|
+
const textEncoder = new TextEncoder();
|
|
857
|
+
const stringBuffer = textEncoder.encode(string);
|
|
858
|
+
byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding);
|
|
859
|
+
return byteOffset;
|
|
860
|
+
}
|
|
861
|
+
var init_dataview_copy_utils = __esm({
|
|
862
|
+
"../loader-utils/src/lib/binary-utils/dataview-copy-utils.ts"() {
|
|
863
|
+
init_memory_copy_utils();
|
|
908
864
|
}
|
|
909
865
|
});
|
|
910
866
|
|
|
@@ -962,6 +918,45 @@
|
|
|
962
918
|
}
|
|
963
919
|
});
|
|
964
920
|
|
|
921
|
+
// (disabled):../loader-utils/src/lib/node/buffer
|
|
922
|
+
var init_buffer = __esm({
|
|
923
|
+
"(disabled):../loader-utils/src/lib/node/buffer"() {
|
|
924
|
+
}
|
|
925
|
+
});
|
|
926
|
+
|
|
927
|
+
// ../loader-utils/src/lib/binary-utils/memory-conversion-utils.ts
|
|
928
|
+
function isBuffer(value) {
|
|
929
|
+
return value && typeof value === "object" && value.isBuffer;
|
|
930
|
+
}
|
|
931
|
+
function toArrayBuffer2(data) {
|
|
932
|
+
if (isBuffer(data)) {
|
|
933
|
+
return node2.toArrayBuffer(data);
|
|
934
|
+
}
|
|
935
|
+
if (data instanceof ArrayBuffer) {
|
|
936
|
+
return data;
|
|
937
|
+
}
|
|
938
|
+
if (ArrayBuffer.isView(data)) {
|
|
939
|
+
if (data.byteOffset === 0 && data.byteLength === data.buffer.byteLength) {
|
|
940
|
+
return data.buffer;
|
|
941
|
+
}
|
|
942
|
+
return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);
|
|
943
|
+
}
|
|
944
|
+
if (typeof data === "string") {
|
|
945
|
+
const text = data;
|
|
946
|
+
const uint8Array = new TextEncoder().encode(text);
|
|
947
|
+
return uint8Array.buffer;
|
|
948
|
+
}
|
|
949
|
+
if (data && typeof data === "object" && data._toArrayBuffer) {
|
|
950
|
+
return data._toArrayBuffer();
|
|
951
|
+
}
|
|
952
|
+
throw new Error("toArrayBuffer");
|
|
953
|
+
}
|
|
954
|
+
var init_memory_conversion_utils = __esm({
|
|
955
|
+
"../loader-utils/src/lib/binary-utils/memory-conversion-utils.ts"() {
|
|
956
|
+
init_buffer();
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
|
|
965
960
|
// ../loader-utils/src/lib/path-utils/path.ts
|
|
966
961
|
var path_exports = {};
|
|
967
962
|
__export(path_exports, {
|
|
@@ -1004,10 +999,10 @@
|
|
|
1004
999
|
init_parse_json();
|
|
1005
1000
|
init_array_buffer_utils();
|
|
1006
1001
|
init_memory_copy_utils();
|
|
1007
|
-
|
|
1008
|
-
init_encode_utils();
|
|
1002
|
+
init_dataview_copy_utils();
|
|
1009
1003
|
init_async_iteration();
|
|
1010
1004
|
init_file_aliases();
|
|
1005
|
+
init_memory_conversion_utils();
|
|
1011
1006
|
init_path();
|
|
1012
1007
|
}
|
|
1013
1008
|
});
|
|
@@ -5768,7 +5763,7 @@
|
|
|
5768
5763
|
if (done) {
|
|
5769
5764
|
return;
|
|
5770
5765
|
}
|
|
5771
|
-
yield
|
|
5766
|
+
yield toArrayBuffer2(value);
|
|
5772
5767
|
}
|
|
5773
5768
|
} catch (error) {
|
|
5774
5769
|
reader.releaseLock();
|
|
@@ -5776,7 +5771,7 @@
|
|
|
5776
5771
|
}
|
|
5777
5772
|
async function* makeNodeStreamIterator(stream, options) {
|
|
5778
5773
|
for await (const chunk of stream) {
|
|
5779
|
-
yield
|
|
5774
|
+
yield toArrayBuffer2(chunk);
|
|
5780
5775
|
}
|
|
5781
5776
|
}
|
|
5782
5777
|
var init_make_stream_iterator = __esm({
|
|
@@ -7131,15 +7126,17 @@
|
|
|
7131
7126
|
});
|
|
7132
7127
|
});
|
|
7133
7128
|
}
|
|
7134
|
-
var
|
|
7129
|
+
var DRACO_DECODER_VERSION, DRACO_ENCODER_VERSION, STATIC_DECODER_URL, DRACO_JS_DECODER_URL, DRACO_WASM_WRAPPER_URL, DRACO_WASM_DECODER_URL, DRACO_ENCODER_URL, loadDecoderPromise;
|
|
7135
7130
|
var init_draco_module_loader = __esm({
|
|
7136
7131
|
"../draco/src/lib/draco-module-loader.ts"() {
|
|
7137
7132
|
init_src();
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7133
|
+
DRACO_DECODER_VERSION = "1.5.5";
|
|
7134
|
+
DRACO_ENCODER_VERSION = "1.4.1";
|
|
7135
|
+
STATIC_DECODER_URL = `https://www.gstatic.com/draco/versioned/decoders/${DRACO_DECODER_VERSION}`;
|
|
7136
|
+
DRACO_JS_DECODER_URL = `${STATIC_DECODER_URL}/draco_decoder.js`;
|
|
7137
|
+
DRACO_WASM_WRAPPER_URL = `${STATIC_DECODER_URL}/draco_wasm_wrapper.js`;
|
|
7138
|
+
DRACO_WASM_DECODER_URL = `${STATIC_DECODER_URL}/draco_decoder.wasm`;
|
|
7139
|
+
DRACO_ENCODER_URL = `https://raw.githubusercontent.com/google/draco/${DRACO_ENCODER_VERSION}/javascript/draco_encoder.js`;
|
|
7143
7140
|
}
|
|
7144
7141
|
});
|
|
7145
7142
|
|
|
@@ -8726,6 +8723,7 @@
|
|
|
8726
8723
|
height,
|
|
8727
8724
|
data: decodedData,
|
|
8728
8725
|
compressed,
|
|
8726
|
+
levelSize: decodedSize,
|
|
8729
8727
|
hasAlpha: alphaFlag,
|
|
8730
8728
|
format
|
|
8731
8729
|
};
|
|
@@ -9633,8 +9631,8 @@
|
|
|
9633
9631
|
this.json.scenes.push({ nodes: nodeIndices });
|
|
9634
9632
|
return this.json.scenes.length - 1;
|
|
9635
9633
|
}
|
|
9636
|
-
addNode(
|
|
9637
|
-
const { meshIndex, matrix } =
|
|
9634
|
+
addNode(node3) {
|
|
9635
|
+
const { meshIndex, matrix } = node3;
|
|
9638
9636
|
this.json.nodes = this.json.nodes || [];
|
|
9639
9637
|
const nodeData = { mesh: meshIndex };
|
|
9640
9638
|
if (matrix) {
|
|
@@ -10504,12 +10502,12 @@
|
|
|
10504
10502
|
gltfScenegraph.json.lights = extension.lights;
|
|
10505
10503
|
gltfScenegraph.removeExtension(KHR_LIGHTS_PUNCTUAL);
|
|
10506
10504
|
}
|
|
10507
|
-
for (const
|
|
10508
|
-
const nodeExtension = gltfScenegraph.getObjectExtension(
|
|
10505
|
+
for (const node3 of json.nodes || []) {
|
|
10506
|
+
const nodeExtension = gltfScenegraph.getObjectExtension(node3, KHR_LIGHTS_PUNCTUAL);
|
|
10509
10507
|
if (nodeExtension) {
|
|
10510
|
-
|
|
10508
|
+
node3.light = nodeExtension.light;
|
|
10511
10509
|
}
|
|
10512
|
-
gltfScenegraph.removeObjectExtension(
|
|
10510
|
+
gltfScenegraph.removeObjectExtension(node3, KHR_LIGHTS_PUNCTUAL);
|
|
10513
10511
|
}
|
|
10514
10512
|
}
|
|
10515
10513
|
async function encode2(gltfData) {
|
|
@@ -10523,8 +10521,8 @@
|
|
|
10523
10521
|
}
|
|
10524
10522
|
if (gltfScenegraph.json.lights) {
|
|
10525
10523
|
for (const light of gltfScenegraph.json.lights) {
|
|
10526
|
-
const
|
|
10527
|
-
gltfScenegraph.addObjectExtension(
|
|
10524
|
+
const node3 = light.node;
|
|
10525
|
+
gltfScenegraph.addObjectExtension(node3, KHR_LIGHTS_PUNCTUAL, light);
|
|
10528
10526
|
}
|
|
10529
10527
|
delete gltfScenegraph.json.lights;
|
|
10530
10528
|
}
|
|
@@ -10915,11 +10913,11 @@
|
|
|
10915
10913
|
for (const mesh of json.meshes) {
|
|
10916
10914
|
this._convertMeshIds(mesh);
|
|
10917
10915
|
}
|
|
10918
|
-
for (const
|
|
10919
|
-
this._convertNodeIds(
|
|
10916
|
+
for (const node3 of json.nodes) {
|
|
10917
|
+
this._convertNodeIds(node3);
|
|
10920
10918
|
}
|
|
10921
|
-
for (const
|
|
10922
|
-
this._convertSceneIds(
|
|
10919
|
+
for (const node3 of json.scenes) {
|
|
10920
|
+
this._convertSceneIds(node3);
|
|
10923
10921
|
}
|
|
10924
10922
|
}
|
|
10925
10923
|
_convertTextureIds(texture) {
|
|
@@ -10941,17 +10939,17 @@
|
|
|
10941
10939
|
}
|
|
10942
10940
|
}
|
|
10943
10941
|
}
|
|
10944
|
-
_convertNodeIds(
|
|
10945
|
-
if (
|
|
10946
|
-
|
|
10942
|
+
_convertNodeIds(node3) {
|
|
10943
|
+
if (node3.children) {
|
|
10944
|
+
node3.children = node3.children.map((child) => this._convertIdToIndex(child, "node"));
|
|
10947
10945
|
}
|
|
10948
|
-
if (
|
|
10949
|
-
|
|
10946
|
+
if (node3.meshes) {
|
|
10947
|
+
node3.meshes = node3.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
|
|
10950
10948
|
}
|
|
10951
10949
|
}
|
|
10952
10950
|
_convertSceneIds(scene) {
|
|
10953
10951
|
if (scene.nodes) {
|
|
10954
|
-
scene.nodes = scene.nodes.map((
|
|
10952
|
+
scene.nodes = scene.nodes.map((node3) => this._convertIdToIndex(node3, "node"));
|
|
10955
10953
|
}
|
|
10956
10954
|
}
|
|
10957
10955
|
_convertIdsToIndices(json, topLevelArrayName) {
|
|
@@ -11094,7 +11092,7 @@
|
|
|
11094
11092
|
json.meshes = json.meshes.map((mesh, i2) => this._resolveMesh(mesh, i2));
|
|
11095
11093
|
}
|
|
11096
11094
|
if (json.nodes) {
|
|
11097
|
-
json.nodes = json.nodes.map((
|
|
11095
|
+
json.nodes = json.nodes.map((node3, i2) => this._resolveNode(node3, i2));
|
|
11098
11096
|
}
|
|
11099
11097
|
if (json.skins) {
|
|
11100
11098
|
json.skins = json.skins.map((skin, i2) => this._resolveSkin(skin, i2));
|
|
@@ -11154,31 +11152,31 @@
|
|
|
11154
11152
|
}
|
|
11155
11153
|
_resolveScene(scene, index) {
|
|
11156
11154
|
scene.id = scene.id || `scene-${index}`;
|
|
11157
|
-
scene.nodes = (scene.nodes || []).map((
|
|
11155
|
+
scene.nodes = (scene.nodes || []).map((node3) => this.getNode(node3));
|
|
11158
11156
|
return scene;
|
|
11159
11157
|
}
|
|
11160
|
-
_resolveNode(
|
|
11161
|
-
|
|
11162
|
-
if (
|
|
11163
|
-
|
|
11158
|
+
_resolveNode(node3, index) {
|
|
11159
|
+
node3.id = node3.id || `node-${index}`;
|
|
11160
|
+
if (node3.children) {
|
|
11161
|
+
node3.children = node3.children.map((child) => this.getNode(child));
|
|
11164
11162
|
}
|
|
11165
|
-
if (
|
|
11166
|
-
|
|
11167
|
-
} else if (
|
|
11168
|
-
|
|
11163
|
+
if (node3.mesh !== void 0) {
|
|
11164
|
+
node3.mesh = this.getMesh(node3.mesh);
|
|
11165
|
+
} else if (node3.meshes !== void 0 && node3.meshes.length) {
|
|
11166
|
+
node3.mesh = node3.meshes.reduce((accum, meshIndex) => {
|
|
11169
11167
|
const mesh = this.getMesh(meshIndex);
|
|
11170
11168
|
accum.id = mesh.id;
|
|
11171
11169
|
accum.primitives = accum.primitives.concat(mesh.primitives);
|
|
11172
11170
|
return accum;
|
|
11173
11171
|
}, { primitives: [] });
|
|
11174
11172
|
}
|
|
11175
|
-
if (
|
|
11176
|
-
|
|
11173
|
+
if (node3.camera !== void 0) {
|
|
11174
|
+
node3.camera = this.getCamera(node3.camera);
|
|
11177
11175
|
}
|
|
11178
|
-
if (
|
|
11179
|
-
|
|
11176
|
+
if (node3.skin !== void 0) {
|
|
11177
|
+
node3.skin = this.getSkin(node3.skin);
|
|
11180
11178
|
}
|
|
11181
|
-
return
|
|
11179
|
+
return node3;
|
|
11182
11180
|
}
|
|
11183
11181
|
_resolveSkin(skin, index) {
|
|
11184
11182
|
skin.id = skin.id || `skin-${index}`;
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VERSION = void 0;
|
|
7
|
-
var VERSION = typeof "3.3.0
|
|
7
|
+
var VERSION = typeof "3.3.0" !== 'undefined' ? "3.3.0" : 'latest';
|
|
8
8
|
exports.VERSION = VERSION;
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";AAGA,OAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":";AAGA,OAAO,MAAMA,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ"}
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.parseBatchedModel3DTile = void 0;
|
|
9
9
|
const math_1 = require("@loaders.gl/math"); // math.gl/geometry;
|
|
10
10
|
const tile_3d_feature_table_1 = __importDefault(require("../classes/tile-3d-feature-table"));
|
|
11
|
-
// import Tile3DBatchTable from '../classes/tile-3d-batch-table';
|
|
11
|
+
// import Tile3DBatchTable from '../classes/tile-3d-batch-table.js';
|
|
12
12
|
const parse_3d_tile_header_1 = require("./helpers/parse-3d-tile-header");
|
|
13
13
|
const parse_3d_tile_tables_1 = require("./helpers/parse-3d-tile-tables");
|
|
14
14
|
const parse_3d_tile_gltf_view_1 = require("./helpers/parse-3d-tile-gltf-view");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/3d-tiles",
|
|
3
|
-
"version": "3.3.0
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@loaders.gl/draco": "3.3.0
|
|
38
|
-
"@loaders.gl/gltf": "3.3.0
|
|
39
|
-
"@loaders.gl/loader-utils": "3.3.0
|
|
40
|
-
"@loaders.gl/math": "3.3.0
|
|
41
|
-
"@loaders.gl/tiles": "3.3.0
|
|
37
|
+
"@loaders.gl/draco": "3.3.0",
|
|
38
|
+
"@loaders.gl/gltf": "3.3.0",
|
|
39
|
+
"@loaders.gl/loader-utils": "3.3.0",
|
|
40
|
+
"@loaders.gl/math": "3.3.0",
|
|
41
|
+
"@loaders.gl/tiles": "3.3.0",
|
|
42
42
|
"@math.gl/core": "^3.5.1",
|
|
43
43
|
"@math.gl/geospatial": "^3.5.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@loaders.gl/core": "^3.2.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "566d194f175a03e042d3e588cdd514048f428cc1"
|
|
49
49
|
}
|