@loaders.gl/3d-tiles 3.3.0-alpha.7 → 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 +155 -183
- 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/dist/types.d.ts +13 -13
- package/dist/types.d.ts.map +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
|
|
|
@@ -941,37 +897,6 @@
|
|
|
941
897
|
}
|
|
942
898
|
});
|
|
943
899
|
|
|
944
|
-
// ../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js
|
|
945
|
-
var init_hi_res_timestamp = __esm({
|
|
946
|
-
"../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js"() {
|
|
947
|
-
}
|
|
948
|
-
});
|
|
949
|
-
|
|
950
|
-
// ../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js
|
|
951
|
-
var init_stat = __esm({
|
|
952
|
-
"../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js"() {
|
|
953
|
-
init_defineProperty();
|
|
954
|
-
init_hi_res_timestamp();
|
|
955
|
-
}
|
|
956
|
-
});
|
|
957
|
-
|
|
958
|
-
// ../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js
|
|
959
|
-
var init_stats = __esm({
|
|
960
|
-
"../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js"() {
|
|
961
|
-
init_defineProperty();
|
|
962
|
-
init_stat();
|
|
963
|
-
}
|
|
964
|
-
});
|
|
965
|
-
|
|
966
|
-
// ../../node_modules/@probe.gl/stats/dist/esm/index.js
|
|
967
|
-
var init_esm = __esm({
|
|
968
|
-
"../../node_modules/@probe.gl/stats/dist/esm/index.js"() {
|
|
969
|
-
init_stats();
|
|
970
|
-
init_stat();
|
|
971
|
-
init_hi_res_timestamp();
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
|
|
975
900
|
// ../loader-utils/src/lib/path-utils/file-aliases.ts
|
|
976
901
|
function resolvePath(filename2) {
|
|
977
902
|
for (const alias in fileAliases) {
|
|
@@ -993,6 +918,45 @@
|
|
|
993
918
|
}
|
|
994
919
|
});
|
|
995
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
|
+
|
|
996
960
|
// ../loader-utils/src/lib/path-utils/path.ts
|
|
997
961
|
var path_exports = {};
|
|
998
962
|
__export(path_exports, {
|
|
@@ -1035,10 +999,10 @@
|
|
|
1035
999
|
init_parse_json();
|
|
1036
1000
|
init_array_buffer_utils();
|
|
1037
1001
|
init_memory_copy_utils();
|
|
1038
|
-
|
|
1039
|
-
init_encode_utils();
|
|
1002
|
+
init_dataview_copy_utils();
|
|
1040
1003
|
init_async_iteration();
|
|
1041
1004
|
init_file_aliases();
|
|
1005
|
+
init_memory_conversion_utils();
|
|
1042
1006
|
init_path();
|
|
1043
1007
|
}
|
|
1044
1008
|
});
|
|
@@ -4030,7 +3994,7 @@
|
|
|
4030
3994
|
});
|
|
4031
3995
|
|
|
4032
3996
|
// ../../node_modules/@math.gl/core/dist/esm/index.js
|
|
4033
|
-
var
|
|
3997
|
+
var init_esm = __esm({
|
|
4034
3998
|
"../../node_modules/@math.gl/core/dist/esm/index.js"() {
|
|
4035
3999
|
init_vector2();
|
|
4036
4000
|
init_vector3();
|
|
@@ -4106,7 +4070,7 @@
|
|
|
4106
4070
|
var scratchVector;
|
|
4107
4071
|
var init_type_utils = __esm({
|
|
4108
4072
|
"../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js"() {
|
|
4109
|
-
|
|
4073
|
+
init_esm();
|
|
4110
4074
|
init_constants();
|
|
4111
4075
|
scratchVector = new Vector3();
|
|
4112
4076
|
}
|
|
@@ -4171,7 +4135,7 @@
|
|
|
4171
4135
|
var scratchVector2, scaleToGeodeticSurfaceIntersection, scaleToGeodeticSurfaceGradient;
|
|
4172
4136
|
var init_scale_to_geodetic_surface = __esm({
|
|
4173
4137
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/scale-to-geodetic-surface.js"() {
|
|
4174
|
-
|
|
4138
|
+
init_esm();
|
|
4175
4139
|
scratchVector2 = new Vector3();
|
|
4176
4140
|
scaleToGeodeticSurfaceIntersection = new Vector3();
|
|
4177
4141
|
scaleToGeodeticSurfaceGradient = new Vector3();
|
|
@@ -4243,7 +4207,7 @@
|
|
|
4243
4207
|
var EPSILON14, scratchOrigin, VECTOR_PRODUCT_LOCAL_FRAME, degeneratePositionLocalFrame, scratchAxisVectors, scratchVector1, scratchVector22, scratchVector3;
|
|
4244
4208
|
var init_ellipsoid_transform = __esm({
|
|
4245
4209
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js"() {
|
|
4246
|
-
|
|
4210
|
+
init_esm();
|
|
4247
4211
|
EPSILON14 = 1e-14;
|
|
4248
4212
|
scratchOrigin = new Vector3();
|
|
4249
4213
|
VECTOR_PRODUCT_LOCAL_FRAME = {
|
|
@@ -4311,7 +4275,7 @@
|
|
|
4311
4275
|
var init_ellipsoid = __esm({
|
|
4312
4276
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/ellipsoid.js"() {
|
|
4313
4277
|
init_defineProperty();
|
|
4314
|
-
|
|
4278
|
+
init_esm();
|
|
4315
4279
|
init_vec3();
|
|
4316
4280
|
init_constants();
|
|
4317
4281
|
init_type_utils();
|
|
@@ -4435,7 +4399,7 @@
|
|
|
4435
4399
|
});
|
|
4436
4400
|
|
|
4437
4401
|
// ../../node_modules/@math.gl/geospatial/dist/esm/index.js
|
|
4438
|
-
var
|
|
4402
|
+
var init_esm2 = __esm({
|
|
4439
4403
|
"../../node_modules/@math.gl/geospatial/dist/esm/index.js"() {
|
|
4440
4404
|
init_ellipsoid();
|
|
4441
4405
|
init_type_utils();
|
|
@@ -4700,7 +4664,7 @@
|
|
|
4700
4664
|
});
|
|
4701
4665
|
|
|
4702
4666
|
// ../../node_modules/@probe.gl/env/dist/esm/index.js
|
|
4703
|
-
var
|
|
4667
|
+
var init_esm3 = __esm({
|
|
4704
4668
|
"../../node_modules/@probe.gl/env/dist/esm/index.js"() {
|
|
4705
4669
|
init_globals4();
|
|
4706
4670
|
init_globals3();
|
|
@@ -4820,7 +4784,7 @@
|
|
|
4820
4784
|
var COLOR;
|
|
4821
4785
|
var init_color = __esm({
|
|
4822
4786
|
"../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
|
|
4823
|
-
|
|
4787
|
+
init_esm3();
|
|
4824
4788
|
(function(COLOR2) {
|
|
4825
4789
|
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
4826
4790
|
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
@@ -4872,7 +4836,7 @@
|
|
|
4872
4836
|
});
|
|
4873
4837
|
|
|
4874
4838
|
// ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
|
|
4875
|
-
function
|
|
4839
|
+
function getHiResTimestamp() {
|
|
4876
4840
|
let timestamp;
|
|
4877
4841
|
if (isBrowser3 && "performance" in window_3) {
|
|
4878
4842
|
var _window$performance, _window$performance$n;
|
|
@@ -4886,9 +4850,9 @@
|
|
|
4886
4850
|
}
|
|
4887
4851
|
return timestamp;
|
|
4888
4852
|
}
|
|
4889
|
-
var
|
|
4853
|
+
var init_hi_res_timestamp = __esm({
|
|
4890
4854
|
"../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
|
|
4891
|
-
|
|
4855
|
+
init_esm3();
|
|
4892
4856
|
}
|
|
4893
4857
|
});
|
|
4894
4858
|
|
|
@@ -5011,13 +4975,13 @@
|
|
|
5011
4975
|
var init_log = __esm({
|
|
5012
4976
|
"../../node_modules/@probe.gl/log/dist/esm/log.js"() {
|
|
5013
4977
|
init_defineProperty();
|
|
5014
|
-
|
|
4978
|
+
init_esm3();
|
|
5015
4979
|
init_local_storage();
|
|
5016
4980
|
init_formatters();
|
|
5017
4981
|
init_color();
|
|
5018
4982
|
init_autobind();
|
|
5019
4983
|
init_assert4();
|
|
5020
|
-
|
|
4984
|
+
init_hi_res_timestamp();
|
|
5021
4985
|
init_node_asciify_image();
|
|
5022
4986
|
originalConsole = {
|
|
5023
4987
|
debug: isBrowser3 ? console.debug || console.log : console.log,
|
|
@@ -5043,8 +5007,8 @@
|
|
|
5043
5007
|
};
|
|
5044
5008
|
_defineProperty(this, "id", void 0);
|
|
5045
5009
|
_defineProperty(this, "VERSION", VERSION3);
|
|
5046
|
-
_defineProperty(this, "_startTs",
|
|
5047
|
-
_defineProperty(this, "_deltaTs",
|
|
5010
|
+
_defineProperty(this, "_startTs", getHiResTimestamp());
|
|
5011
|
+
_defineProperty(this, "_deltaTs", getHiResTimestamp());
|
|
5048
5012
|
_defineProperty(this, "_storage", void 0);
|
|
5049
5013
|
_defineProperty(this, "userData", {});
|
|
5050
5014
|
_defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
@@ -5068,10 +5032,10 @@
|
|
|
5068
5032
|
return this._storage.config.level;
|
|
5069
5033
|
}
|
|
5070
5034
|
getTotal() {
|
|
5071
|
-
return Number((
|
|
5035
|
+
return Number((getHiResTimestamp() - this._startTs).toPrecision(10));
|
|
5072
5036
|
}
|
|
5073
5037
|
getDelta() {
|
|
5074
|
-
return Number((
|
|
5038
|
+
return Number((getHiResTimestamp() - this._deltaTs).toPrecision(10));
|
|
5075
5039
|
}
|
|
5076
5040
|
set priority(newPriority) {
|
|
5077
5041
|
this.level = newPriority;
|
|
@@ -5233,11 +5197,11 @@
|
|
|
5233
5197
|
assert5(method);
|
|
5234
5198
|
opts.total = this.getTotal();
|
|
5235
5199
|
opts.delta = this.getDelta();
|
|
5236
|
-
this._deltaTs =
|
|
5200
|
+
this._deltaTs = getHiResTimestamp();
|
|
5237
5201
|
const tag = opts.tag || opts.message;
|
|
5238
5202
|
if (opts.once) {
|
|
5239
5203
|
if (!cache[tag]) {
|
|
5240
|
-
cache[tag] =
|
|
5204
|
+
cache[tag] = getHiResTimestamp();
|
|
5241
5205
|
} else {
|
|
5242
5206
|
return noop;
|
|
5243
5207
|
}
|
|
@@ -5254,7 +5218,7 @@
|
|
|
5254
5218
|
|
|
5255
5219
|
// ../../node_modules/@probe.gl/log/dist/esm/index.js
|
|
5256
5220
|
var esm_default;
|
|
5257
|
-
var
|
|
5221
|
+
var init_esm4 = __esm({
|
|
5258
5222
|
"../../node_modules/@probe.gl/log/dist/esm/index.js"() {
|
|
5259
5223
|
init_log();
|
|
5260
5224
|
init_log();
|
|
@@ -5264,19 +5228,11 @@
|
|
|
5264
5228
|
}
|
|
5265
5229
|
});
|
|
5266
5230
|
|
|
5267
|
-
// ../../node_modules/probe.gl/dist/esm/index.js
|
|
5268
|
-
var init_esm6 = __esm({
|
|
5269
|
-
"../../node_modules/probe.gl/dist/esm/index.js"() {
|
|
5270
|
-
init_esm5();
|
|
5271
|
-
init_esm();
|
|
5272
|
-
}
|
|
5273
|
-
});
|
|
5274
|
-
|
|
5275
5231
|
// ../core/src/lib/loader-utils/loggers.ts
|
|
5276
5232
|
var probeLog, NullLog, ConsoleLog;
|
|
5277
5233
|
var init_loggers = __esm({
|
|
5278
5234
|
"../core/src/lib/loader-utils/loggers.ts"() {
|
|
5279
|
-
|
|
5235
|
+
init_esm4();
|
|
5280
5236
|
probeLog = new Log({ id: "loaders.gl" });
|
|
5281
5237
|
NullLog = class {
|
|
5282
5238
|
log() {
|
|
@@ -5534,7 +5490,7 @@
|
|
|
5534
5490
|
var log;
|
|
5535
5491
|
var init_log2 = __esm({
|
|
5536
5492
|
"../core/src/lib/utils/log.ts"() {
|
|
5537
|
-
|
|
5493
|
+
init_esm4();
|
|
5538
5494
|
log = new Log({ id: "loaders.gl" });
|
|
5539
5495
|
}
|
|
5540
5496
|
});
|
|
@@ -5807,7 +5763,7 @@
|
|
|
5807
5763
|
if (done) {
|
|
5808
5764
|
return;
|
|
5809
5765
|
}
|
|
5810
|
-
yield
|
|
5766
|
+
yield toArrayBuffer2(value);
|
|
5811
5767
|
}
|
|
5812
5768
|
} catch (error) {
|
|
5813
5769
|
reader.releaseLock();
|
|
@@ -5815,7 +5771,7 @@
|
|
|
5815
5771
|
}
|
|
5816
5772
|
async function* makeNodeStreamIterator(stream, options) {
|
|
5817
5773
|
for await (const chunk of stream) {
|
|
5818
|
-
yield
|
|
5774
|
+
yield toArrayBuffer2(chunk);
|
|
5819
5775
|
}
|
|
5820
5776
|
}
|
|
5821
5777
|
var init_make_stream_iterator = __esm({
|
|
@@ -7170,15 +7126,17 @@
|
|
|
7170
7126
|
});
|
|
7171
7127
|
});
|
|
7172
7128
|
}
|
|
7173
|
-
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;
|
|
7174
7130
|
var init_draco_module_loader = __esm({
|
|
7175
7131
|
"../draco/src/lib/draco-module-loader.ts"() {
|
|
7176
7132
|
init_src();
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
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`;
|
|
7182
7140
|
}
|
|
7183
7141
|
});
|
|
7184
7142
|
|
|
@@ -7365,7 +7323,7 @@
|
|
|
7365
7323
|
var RIGHT_SHIFT, scratchVector23, scratchVector32, scratchEncodeVector2, octEncodeScratch, uint8ForceArray;
|
|
7366
7324
|
var init_attribute_compression = __esm({
|
|
7367
7325
|
"../math/src/geometry/compression/attribute-compression.ts"() {
|
|
7368
|
-
|
|
7326
|
+
init_esm();
|
|
7369
7327
|
init_assert6();
|
|
7370
7328
|
RIGHT_SHIFT = 1 / 256;
|
|
7371
7329
|
scratchVector23 = new Vector2();
|
|
@@ -8178,7 +8136,7 @@
|
|
|
8178
8136
|
var scratchNormal2;
|
|
8179
8137
|
var init_normalize_3d_tile_normals = __esm({
|
|
8180
8138
|
"src/lib/parsers/helpers/normalize-3d-tile-normals.ts"() {
|
|
8181
|
-
|
|
8139
|
+
init_esm();
|
|
8182
8140
|
init_src7();
|
|
8183
8141
|
scratchNormal2 = new Vector3();
|
|
8184
8142
|
}
|
|
@@ -8210,7 +8168,7 @@
|
|
|
8210
8168
|
}
|
|
8211
8169
|
var init_normalize_3d_tile_positions = __esm({
|
|
8212
8170
|
"src/lib/parsers/helpers/normalize-3d-tile-positions.ts"() {
|
|
8213
|
-
|
|
8171
|
+
init_esm();
|
|
8214
8172
|
init_src7();
|
|
8215
8173
|
}
|
|
8216
8174
|
});
|
|
@@ -8406,7 +8364,7 @@
|
|
|
8406
8364
|
"src/lib/parsers/parse-3d-tile-point-cloud.ts"() {
|
|
8407
8365
|
init_src6();
|
|
8408
8366
|
init_src7();
|
|
8409
|
-
|
|
8367
|
+
init_esm();
|
|
8410
8368
|
init_tile_3d_feature_table();
|
|
8411
8369
|
init_tile_3d_batch_table();
|
|
8412
8370
|
init_parse_3d_tile_header();
|
|
@@ -8765,6 +8723,7 @@
|
|
|
8765
8723
|
height,
|
|
8766
8724
|
data: decodedData,
|
|
8767
8725
|
compressed,
|
|
8726
|
+
levelSize: decodedSize,
|
|
8768
8727
|
hasAlpha: alphaFlag,
|
|
8769
8728
|
format
|
|
8770
8729
|
};
|
|
@@ -9516,6 +9475,9 @@
|
|
|
9516
9475
|
getUsedExtensions() {
|
|
9517
9476
|
return this.json.extensionsUsed || [];
|
|
9518
9477
|
}
|
|
9478
|
+
getRemovedExtensions() {
|
|
9479
|
+
return this.json.extensionsRemoved || [];
|
|
9480
|
+
}
|
|
9519
9481
|
getObjectExtension(object, extensionName) {
|
|
9520
9482
|
const extensions = object.extensions || {};
|
|
9521
9483
|
return extensions[extensionName];
|
|
@@ -9640,6 +9602,9 @@
|
|
|
9640
9602
|
}
|
|
9641
9603
|
}
|
|
9642
9604
|
removeExtension(extensionName) {
|
|
9605
|
+
if (!this.getExtension(extensionName)) {
|
|
9606
|
+
return;
|
|
9607
|
+
}
|
|
9643
9608
|
if (this.json.extensionsRequired) {
|
|
9644
9609
|
this._removeStringFromArray(this.json.extensionsRequired, extensionName);
|
|
9645
9610
|
}
|
|
@@ -9649,6 +9614,13 @@
|
|
|
9649
9614
|
if (this.json.extensions) {
|
|
9650
9615
|
delete this.json.extensions[extensionName];
|
|
9651
9616
|
}
|
|
9617
|
+
if (!Array.isArray(this.json.extensionsRemoved)) {
|
|
9618
|
+
this.json.extensionsRemoved = [];
|
|
9619
|
+
}
|
|
9620
|
+
const extensionsRemoved = this.json.extensionsRemoved;
|
|
9621
|
+
if (!extensionsRemoved.includes(extensionName)) {
|
|
9622
|
+
extensionsRemoved.push(extensionName);
|
|
9623
|
+
}
|
|
9652
9624
|
}
|
|
9653
9625
|
setDefaultScene(sceneIndex) {
|
|
9654
9626
|
this.json.scene = sceneIndex;
|
|
@@ -9659,8 +9631,8 @@
|
|
|
9659
9631
|
this.json.scenes.push({ nodes: nodeIndices });
|
|
9660
9632
|
return this.json.scenes.length - 1;
|
|
9661
9633
|
}
|
|
9662
|
-
addNode(
|
|
9663
|
-
const { meshIndex, matrix } =
|
|
9634
|
+
addNode(node3) {
|
|
9635
|
+
const { meshIndex, matrix } = node3;
|
|
9664
9636
|
this.json.nodes = this.json.nodes || [];
|
|
9665
9637
|
const nodeData = { mesh: meshIndex };
|
|
9666
9638
|
if (matrix) {
|
|
@@ -10503,7 +10475,7 @@
|
|
|
10503
10475
|
var EXT_MESHOPT_TRANSFORM, name5, scratchVector5, scratchRotationMatrix, scratchScaleMatrix;
|
|
10504
10476
|
var init_KHR_texture_transform = __esm({
|
|
10505
10477
|
"../gltf/src/lib/extensions/KHR_texture_transform.ts"() {
|
|
10506
|
-
|
|
10478
|
+
init_esm();
|
|
10507
10479
|
init_gltf_utils();
|
|
10508
10480
|
init_gltf_constants();
|
|
10509
10481
|
init_gltf_scenegraph();
|
|
@@ -10530,12 +10502,12 @@
|
|
|
10530
10502
|
gltfScenegraph.json.lights = extension.lights;
|
|
10531
10503
|
gltfScenegraph.removeExtension(KHR_LIGHTS_PUNCTUAL);
|
|
10532
10504
|
}
|
|
10533
|
-
for (const
|
|
10534
|
-
const nodeExtension = gltfScenegraph.getObjectExtension(
|
|
10505
|
+
for (const node3 of json.nodes || []) {
|
|
10506
|
+
const nodeExtension = gltfScenegraph.getObjectExtension(node3, KHR_LIGHTS_PUNCTUAL);
|
|
10535
10507
|
if (nodeExtension) {
|
|
10536
|
-
|
|
10508
|
+
node3.light = nodeExtension.light;
|
|
10537
10509
|
}
|
|
10538
|
-
gltfScenegraph.removeObjectExtension(
|
|
10510
|
+
gltfScenegraph.removeObjectExtension(node3, KHR_LIGHTS_PUNCTUAL);
|
|
10539
10511
|
}
|
|
10540
10512
|
}
|
|
10541
10513
|
async function encode2(gltfData) {
|
|
@@ -10549,8 +10521,8 @@
|
|
|
10549
10521
|
}
|
|
10550
10522
|
if (gltfScenegraph.json.lights) {
|
|
10551
10523
|
for (const light of gltfScenegraph.json.lights) {
|
|
10552
|
-
const
|
|
10553
|
-
gltfScenegraph.addObjectExtension(
|
|
10524
|
+
const node3 = light.node;
|
|
10525
|
+
gltfScenegraph.addObjectExtension(node3, KHR_LIGHTS_PUNCTUAL, light);
|
|
10554
10526
|
}
|
|
10555
10527
|
delete gltfScenegraph.json.lights;
|
|
10556
10528
|
}
|
|
@@ -10575,7 +10547,6 @@
|
|
|
10575
10547
|
async function decode6(gltfData) {
|
|
10576
10548
|
const gltfScenegraph = new GLTFScenegraph(gltfData);
|
|
10577
10549
|
const { json } = gltfScenegraph;
|
|
10578
|
-
gltfScenegraph.removeExtension(KHR_MATERIALS_UNLIT);
|
|
10579
10550
|
for (const material of json.materials || []) {
|
|
10580
10551
|
const extension = material.extensions && material.extensions.KHR_materials_unlit;
|
|
10581
10552
|
if (extension) {
|
|
@@ -10583,6 +10554,7 @@
|
|
|
10583
10554
|
}
|
|
10584
10555
|
gltfScenegraph.removeObjectExtension(material, KHR_MATERIALS_UNLIT);
|
|
10585
10556
|
}
|
|
10557
|
+
gltfScenegraph.removeExtension(KHR_MATERIALS_UNLIT);
|
|
10586
10558
|
}
|
|
10587
10559
|
function encode3(gltfData) {
|
|
10588
10560
|
const gltfScenegraph = new GLTFScenegraph(gltfData);
|
|
@@ -10941,11 +10913,11 @@
|
|
|
10941
10913
|
for (const mesh of json.meshes) {
|
|
10942
10914
|
this._convertMeshIds(mesh);
|
|
10943
10915
|
}
|
|
10944
|
-
for (const
|
|
10945
|
-
this._convertNodeIds(
|
|
10916
|
+
for (const node3 of json.nodes) {
|
|
10917
|
+
this._convertNodeIds(node3);
|
|
10946
10918
|
}
|
|
10947
|
-
for (const
|
|
10948
|
-
this._convertSceneIds(
|
|
10919
|
+
for (const node3 of json.scenes) {
|
|
10920
|
+
this._convertSceneIds(node3);
|
|
10949
10921
|
}
|
|
10950
10922
|
}
|
|
10951
10923
|
_convertTextureIds(texture) {
|
|
@@ -10967,17 +10939,17 @@
|
|
|
10967
10939
|
}
|
|
10968
10940
|
}
|
|
10969
10941
|
}
|
|
10970
|
-
_convertNodeIds(
|
|
10971
|
-
if (
|
|
10972
|
-
|
|
10942
|
+
_convertNodeIds(node3) {
|
|
10943
|
+
if (node3.children) {
|
|
10944
|
+
node3.children = node3.children.map((child) => this._convertIdToIndex(child, "node"));
|
|
10973
10945
|
}
|
|
10974
|
-
if (
|
|
10975
|
-
|
|
10946
|
+
if (node3.meshes) {
|
|
10947
|
+
node3.meshes = node3.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
|
|
10976
10948
|
}
|
|
10977
10949
|
}
|
|
10978
10950
|
_convertSceneIds(scene) {
|
|
10979
10951
|
if (scene.nodes) {
|
|
10980
|
-
scene.nodes = scene.nodes.map((
|
|
10952
|
+
scene.nodes = scene.nodes.map((node3) => this._convertIdToIndex(node3, "node"));
|
|
10981
10953
|
}
|
|
10982
10954
|
}
|
|
10983
10955
|
_convertIdsToIndices(json, topLevelArrayName) {
|
|
@@ -11120,7 +11092,7 @@
|
|
|
11120
11092
|
json.meshes = json.meshes.map((mesh, i2) => this._resolveMesh(mesh, i2));
|
|
11121
11093
|
}
|
|
11122
11094
|
if (json.nodes) {
|
|
11123
|
-
json.nodes = json.nodes.map((
|
|
11095
|
+
json.nodes = json.nodes.map((node3, i2) => this._resolveNode(node3, i2));
|
|
11124
11096
|
}
|
|
11125
11097
|
if (json.skins) {
|
|
11126
11098
|
json.skins = json.skins.map((skin, i2) => this._resolveSkin(skin, i2));
|
|
@@ -11180,31 +11152,31 @@
|
|
|
11180
11152
|
}
|
|
11181
11153
|
_resolveScene(scene, index) {
|
|
11182
11154
|
scene.id = scene.id || `scene-${index}`;
|
|
11183
|
-
scene.nodes = (scene.nodes || []).map((
|
|
11155
|
+
scene.nodes = (scene.nodes || []).map((node3) => this.getNode(node3));
|
|
11184
11156
|
return scene;
|
|
11185
11157
|
}
|
|
11186
|
-
_resolveNode(
|
|
11187
|
-
|
|
11188
|
-
if (
|
|
11189
|
-
|
|
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));
|
|
11190
11162
|
}
|
|
11191
|
-
if (
|
|
11192
|
-
|
|
11193
|
-
} else if (
|
|
11194
|
-
|
|
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) => {
|
|
11195
11167
|
const mesh = this.getMesh(meshIndex);
|
|
11196
11168
|
accum.id = mesh.id;
|
|
11197
11169
|
accum.primitives = accum.primitives.concat(mesh.primitives);
|
|
11198
11170
|
return accum;
|
|
11199
11171
|
}, { primitives: [] });
|
|
11200
11172
|
}
|
|
11201
|
-
if (
|
|
11202
|
-
|
|
11173
|
+
if (node3.camera !== void 0) {
|
|
11174
|
+
node3.camera = this.getCamera(node3.camera);
|
|
11203
11175
|
}
|
|
11204
|
-
if (
|
|
11205
|
-
|
|
11176
|
+
if (node3.skin !== void 0) {
|
|
11177
|
+
node3.skin = this.getSkin(node3.skin);
|
|
11206
11178
|
}
|
|
11207
|
-
return
|
|
11179
|
+
return node3;
|
|
11208
11180
|
}
|
|
11209
11181
|
_resolveSkin(skin, index) {
|
|
11210
11182
|
skin.id = skin.id || `skin-${index}`;
|
|
@@ -11887,8 +11859,8 @@
|
|
|
11887
11859
|
}
|
|
11888
11860
|
var init_parse_3d_tile_instanced_model = __esm({
|
|
11889
11861
|
"src/lib/parsers/parse-3d-tile-instanced-model.ts"() {
|
|
11862
|
+
init_esm();
|
|
11890
11863
|
init_esm2();
|
|
11891
|
-
init_esm3();
|
|
11892
11864
|
init_src7();
|
|
11893
11865
|
init_tile_3d_feature_table();
|
|
11894
11866
|
init_tile_3d_batch_table();
|
|
@@ -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/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { GLTFPostprocessed } from '@loaders.gl/gltf';
|
|
2
2
|
import { Matrix4, Vector3 } from '@math.gl/core';
|
|
3
|
-
export
|
|
3
|
+
export type FeatureTableJson = {
|
|
4
4
|
[key: string]: any[];
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type B3DMContent = {
|
|
7
7
|
batchTableJson?: FeatureTableJson;
|
|
8
8
|
byteLength: number;
|
|
9
9
|
byteOffset: number;
|
|
@@ -24,14 +24,14 @@ export declare type B3DMContent = {
|
|
|
24
24
|
type: string;
|
|
25
25
|
version: number;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type GLTFHeader = {
|
|
28
28
|
batchLength?: number;
|
|
29
29
|
batchTableBinaryByteLength: number;
|
|
30
30
|
batchTableJsonByteLength: number;
|
|
31
31
|
featureTableBinaryByteLength: number;
|
|
32
32
|
featureTableJsonByteLength: number;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type Node3D = {
|
|
35
35
|
boundingVolume: BoundingVolume;
|
|
36
36
|
children: any;
|
|
37
37
|
geometricError: number;
|
|
@@ -40,7 +40,7 @@ export declare type Node3D = {
|
|
|
40
40
|
boundingVolume: BoundingVolume;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type BoundingVolume = {
|
|
44
44
|
box?: number[];
|
|
45
45
|
sphere?: number[];
|
|
46
46
|
region?: number[];
|
|
@@ -49,29 +49,29 @@ export declare type BoundingVolume = {
|
|
|
49
49
|
* 3DTILES_implicit_tiling types
|
|
50
50
|
* Spec - https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_implicit_tiling#subtree-file-format
|
|
51
51
|
*/
|
|
52
|
-
export
|
|
52
|
+
export type Subtree = {
|
|
53
53
|
buffers: Buffer[];
|
|
54
54
|
bufferViews: BufferView[];
|
|
55
55
|
tileAvailability: Availability;
|
|
56
56
|
contentAvailability: Availability;
|
|
57
57
|
childSubtreeAvailability: Availability;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type Availability = {
|
|
60
60
|
constant?: 0 | 1;
|
|
61
61
|
bufferView?: number;
|
|
62
62
|
explicitBitstream?: ExplicitBitstream;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type ExplicitBitstream = Uint8Array;
|
|
65
65
|
/**
|
|
66
66
|
* Spec - https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_implicit_tiling#subdivision-scheme
|
|
67
67
|
*/
|
|
68
|
-
export
|
|
69
|
-
|
|
68
|
+
export type SubdivisionScheme = 'QUADTREE' | 'OCTREE';
|
|
69
|
+
type Buffer = {
|
|
70
70
|
name: string;
|
|
71
71
|
uri?: string;
|
|
72
72
|
byteLength: number;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
type BufferView = {
|
|
75
75
|
buffer: number;
|
|
76
76
|
byteOffset: number;
|
|
77
77
|
byteLength: number;
|
|
@@ -79,14 +79,14 @@ declare type BufferView = {
|
|
|
79
79
|
/**
|
|
80
80
|
* Spec - https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_implicit_tiling
|
|
81
81
|
*/
|
|
82
|
-
export
|
|
82
|
+
export type ImplicitTilingExtension = {
|
|
83
83
|
subdivisionScheme: 'QUADTREE' | 'OCTREE';
|
|
84
84
|
maximumLevel?: number;
|
|
85
85
|
availableLevels: number;
|
|
86
86
|
subtreeLevels: number;
|
|
87
87
|
subtrees: SubtreeUri;
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
type SubtreeUri = {
|
|
90
90
|
uri: string;
|
|
91
91
|
};
|
|
92
92
|
export {};
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AAE/C,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
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
|
}
|