@loaders.gl/3d-tiles 3.1.0 → 3.1.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/dist/bundle.js CHANGED
@@ -1,5 +1,10 @@
1
1
  (() => {
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3
8
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
4
9
  var __esm = (fn, res) => function __init() {
5
10
  return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
@@ -12,6 +17,17 @@
12
17
  for (var name8 in all)
13
18
  __defProp(target, name8, { get: all[name8], enumerable: true });
14
19
  };
20
+ var __reExport = (target, module2, desc) => {
21
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
22
+ for (let key of __getOwnPropNames(module2))
23
+ if (!__hasOwnProp.call(target, key) && key !== "default")
24
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
25
+ }
26
+ return target;
27
+ };
28
+ var __toModule = (module2) => {
29
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
30
+ };
15
31
 
16
32
  // ../loader-utils/src/lib/env-utils/assert.ts
17
33
  function assert2(condition, message) {
@@ -48,7 +64,7 @@
48
64
  var DEFAULT_VERSION, VERSION;
49
65
  var init_version = __esm({
50
66
  "../worker-utils/src/lib/env-utils/version.ts"() {
51
- DEFAULT_VERSION = "beta";
67
+ DEFAULT_VERSION = "latest";
52
68
  VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : DEFAULT_VERSION;
53
69
  if (typeof __VERSION__ === "undefined") {
54
70
  console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
@@ -484,7 +500,7 @@
484
500
  var init_get_worker_url = __esm({
485
501
  "../worker-utils/src/lib/worker-api/get-worker-url.ts"() {
486
502
  init_assert2();
487
- NPM_TAG = "beta";
503
+ NPM_TAG = "latest";
488
504
  }
489
505
  });
490
506
 
@@ -505,7 +521,7 @@
505
521
  });
506
522
 
507
523
  // (disabled):../worker-utils/src/lib/node/require-utils.node
508
- var init_require_utils = __esm({
524
+ var require_require_utils = __commonJS({
509
525
  "(disabled):../worker-utils/src/lib/node/require-utils.node"() {
510
526
  }
511
527
  });
@@ -544,7 +560,11 @@
544
560
  return await response2.arrayBuffer();
545
561
  }
546
562
  if (!isBrowser2) {
547
- return node.requireFromFile && await node.requireFromFile(libraryUrl);
563
+ try {
564
+ return node && node.requireFromFile && await node.requireFromFile(libraryUrl);
565
+ } catch {
566
+ return null;
567
+ }
548
568
  }
549
569
  if (isWorker) {
550
570
  return importScripts(libraryUrl);
@@ -571,14 +591,14 @@
571
591
  document.body.appendChild(script);
572
592
  return null;
573
593
  }
574
- var LATEST, VERSION2, loadLibraryPromises;
594
+ var node, LATEST, VERSION2, loadLibraryPromises;
575
595
  var init_library_utils = __esm({
576
596
  "../worker-utils/src/lib/library-utils/library-utils.ts"() {
577
597
  init_globals2();
578
- init_require_utils();
598
+ node = __toModule(require_require_utils());
579
599
  init_assert2();
580
600
  init_version();
581
- LATEST = "beta";
601
+ LATEST = "latest";
582
602
  VERSION2 = typeof VERSION !== "undefined" ? VERSION : LATEST;
583
603
  loadLibraryPromises = {};
584
604
  }
@@ -859,35 +879,6 @@
859
879
  }
860
880
  });
861
881
 
862
- // ../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js
863
- var init_hi_res_timestamp = __esm({
864
- "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js"() {
865
- }
866
- });
867
-
868
- // ../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js
869
- var init_stat = __esm({
870
- "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js"() {
871
- init_hi_res_timestamp();
872
- }
873
- });
874
-
875
- // ../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js
876
- var init_stats = __esm({
877
- "../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js"() {
878
- init_stat();
879
- }
880
- });
881
-
882
- // ../../node_modules/@probe.gl/stats/dist/esm/index.js
883
- var init_esm = __esm({
884
- "../../node_modules/@probe.gl/stats/dist/esm/index.js"() {
885
- init_stats();
886
- init_stat();
887
- init_hi_res_timestamp();
888
- }
889
- });
890
-
891
882
  // ../loader-utils/src/lib/path-utils/file-aliases.ts
892
883
  function resolvePath(filename2) {
893
884
  for (const alias in fileAliases) {
@@ -3812,7 +3803,7 @@
3812
3803
 
3813
3804
  // ../../node_modules/@math.gl/core/dist/esm/index.js
3814
3805
  var globals3, global_3;
3815
- var init_esm2 = __esm({
3806
+ var init_esm = __esm({
3816
3807
  "../../node_modules/@math.gl/core/dist/esm/index.js"() {
3817
3808
  init_common();
3818
3809
  init_vector2();
@@ -3895,7 +3886,7 @@
3895
3886
  var noop, scratchVector;
3896
3887
  var init_type_utils = __esm({
3897
3888
  "../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js"() {
3898
- init_esm2();
3889
+ init_esm();
3899
3890
  init_constants();
3900
3891
  noop = (x) => x;
3901
3892
  scratchVector = new Vector3();
@@ -3961,7 +3952,7 @@
3961
3952
  var scratchVector2, scaleToGeodeticSurfaceIntersection, scaleToGeodeticSurfaceGradient;
3962
3953
  var init_scale_to_geodetic_surface = __esm({
3963
3954
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/scale-to-geodetic-surface.js"() {
3964
- init_esm2();
3955
+ init_esm();
3965
3956
  scratchVector2 = new Vector3();
3966
3957
  scaleToGeodeticSurfaceIntersection = new Vector3();
3967
3958
  scaleToGeodeticSurfaceGradient = new Vector3();
@@ -4033,7 +4024,7 @@
4033
4024
  var EPSILON14, scratchOrigin, VECTOR_PRODUCT_LOCAL_FRAME, degeneratePositionLocalFrame, scratchAxisVectors, scratchVector1, scratchVector22, scratchVector3;
4034
4025
  var init_ellipsoid_transform = __esm({
4035
4026
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js"() {
4036
- init_esm2();
4027
+ init_esm();
4037
4028
  EPSILON14 = 1e-14;
4038
4029
  scratchOrigin = new Vector3();
4039
4030
  VECTOR_PRODUCT_LOCAL_FRAME = {
@@ -4100,7 +4091,7 @@
4100
4091
  var scratchVector4, scratchNormal, scratchK, scratchPosition, scratchHeight, scratchCartesian, wgs84, Ellipsoid;
4101
4092
  var init_ellipsoid = __esm({
4102
4093
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/ellipsoid.js"() {
4103
- init_esm2();
4094
+ init_esm();
4104
4095
  init_vec3();
4105
4096
  init_constants();
4106
4097
  init_type_utils();
@@ -4219,7 +4210,7 @@
4219
4210
  });
4220
4211
 
4221
4212
  // ../../node_modules/@math.gl/geospatial/dist/esm/index.js
4222
- var init_esm3 = __esm({
4213
+ var init_esm2 = __esm({
4223
4214
  "../../node_modules/@math.gl/geospatial/dist/esm/index.js"() {
4224
4215
  init_ellipsoid();
4225
4216
  init_type_utils();
@@ -4640,7 +4631,7 @@
4640
4631
  });
4641
4632
 
4642
4633
  // ../../node_modules/probe.gl/dist/esm/utils/hi-res-timestamp.js
4643
- function getHiResTimestamp2() {
4634
+ function getHiResTimestamp() {
4644
4635
  let timestamp;
4645
4636
  if (isBrowser4 && window_3.performance) {
4646
4637
  timestamp = window_3.performance.now();
@@ -4652,7 +4643,7 @@
4652
4643
  }
4653
4644
  return timestamp;
4654
4645
  }
4655
- var init_hi_res_timestamp2 = __esm({
4646
+ var init_hi_res_timestamp = __esm({
4656
4647
  "../../node_modules/probe.gl/dist/esm/utils/hi-res-timestamp.js"() {
4657
4648
  init_globals4();
4658
4649
  }
@@ -4779,7 +4770,7 @@
4779
4770
  init_color();
4780
4771
  init_autobind();
4781
4772
  init_assert4();
4782
- init_hi_res_timestamp2();
4773
+ init_hi_res_timestamp();
4783
4774
  originalConsole = {
4784
4775
  debug: isBrowser4 ? console.debug || console.log : console.log,
4785
4776
  log: console.log,
@@ -4803,8 +4794,8 @@
4803
4794
  }) {
4804
4795
  this.id = id;
4805
4796
  this.VERSION = VERSION3;
4806
- this._startTs = getHiResTimestamp2();
4807
- this._deltaTs = getHiResTimestamp2();
4797
+ this._startTs = getHiResTimestamp();
4798
+ this._deltaTs = getHiResTimestamp();
4808
4799
  this.LOG_THROTTLE_TIMEOUT = 0;
4809
4800
  this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
4810
4801
  this.userData = {};
@@ -4825,10 +4816,10 @@
4825
4816
  return this._storage.config.level;
4826
4817
  }
4827
4818
  getTotal() {
4828
- return Number((getHiResTimestamp2() - this._startTs).toPrecision(10));
4819
+ return Number((getHiResTimestamp() - this._startTs).toPrecision(10));
4829
4820
  }
4830
4821
  getDelta() {
4831
- return Number((getHiResTimestamp2() - this._deltaTs).toPrecision(10));
4822
+ return Number((getHiResTimestamp() - this._deltaTs).toPrecision(10));
4832
4823
  }
4833
4824
  set priority(newPriority) {
4834
4825
  this.level = newPriority;
@@ -4983,11 +4974,11 @@
4983
4974
  assert5(method);
4984
4975
  opts.total = this.getTotal();
4985
4976
  opts.delta = this.getDelta();
4986
- this._deltaTs = getHiResTimestamp2();
4977
+ this._deltaTs = getHiResTimestamp();
4987
4978
  const tag = opts.tag || opts.message;
4988
4979
  if (opts.once) {
4989
4980
  if (!cache[tag]) {
4990
- cache[tag] = getHiResTimestamp2();
4981
+ cache[tag] = getHiResTimestamp();
4991
4982
  } else {
4992
4983
  return noop2;
4993
4984
  }
@@ -5002,13 +4993,42 @@
5002
4993
  }
5003
4994
  });
5004
4995
 
4996
+ // ../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js
4997
+ var init_hi_res_timestamp2 = __esm({
4998
+ "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js"() {
4999
+ }
5000
+ });
5001
+
5002
+ // ../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js
5003
+ var init_stat = __esm({
5004
+ "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js"() {
5005
+ init_hi_res_timestamp2();
5006
+ }
5007
+ });
5008
+
5009
+ // ../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js
5010
+ var init_stats = __esm({
5011
+ "../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js"() {
5012
+ init_stat();
5013
+ }
5014
+ });
5015
+
5016
+ // ../../node_modules/@probe.gl/stats/dist/esm/index.js
5017
+ var init_esm3 = __esm({
5018
+ "../../node_modules/@probe.gl/stats/dist/esm/index.js"() {
5019
+ init_stats();
5020
+ init_stat();
5021
+ init_hi_res_timestamp2();
5022
+ }
5023
+ });
5024
+
5005
5025
  // ../../node_modules/probe.gl/dist/esm/index.js
5006
5026
  var esm_default;
5007
5027
  var init_esm4 = __esm({
5008
5028
  "../../node_modules/probe.gl/dist/esm/index.js"() {
5009
5029
  init_log();
5010
5030
  init_log();
5011
- init_esm();
5031
+ init_esm3();
5012
5032
  esm_default = new Log({
5013
5033
  id: "probe.gl"
5014
5034
  });
@@ -7079,7 +7099,7 @@
7079
7099
  var RIGHT_SHIFT, scratchVector23, scratchVector32, scratchEncodeVector2, octEncodeScratch, uint8ForceArray;
7080
7100
  var init_attribute_compression = __esm({
7081
7101
  "../math/src/geometry/compression/attribute-compression.ts"() {
7082
- init_esm2();
7102
+ init_esm();
7083
7103
  init_assert6();
7084
7104
  RIGHT_SHIFT = 1 / 256;
7085
7105
  scratchVector23 = new Vector2();
@@ -7892,7 +7912,7 @@
7892
7912
  var scratchNormal2;
7893
7913
  var init_normalize_3d_tile_normals = __esm({
7894
7914
  "src/lib/parsers/helpers/normalize-3d-tile-normals.ts"() {
7895
- init_esm2();
7915
+ init_esm();
7896
7916
  init_src7();
7897
7917
  scratchNormal2 = new Vector3();
7898
7918
  }
@@ -7924,7 +7944,7 @@
7924
7944
  }
7925
7945
  var init_normalize_3d_tile_positions = __esm({
7926
7946
  "src/lib/parsers/helpers/normalize-3d-tile-positions.ts"() {
7927
- init_esm2();
7947
+ init_esm();
7928
7948
  init_src7();
7929
7949
  }
7930
7950
  });
@@ -8120,7 +8140,7 @@
8120
8140
  "src/lib/parsers/parse-3d-tile-point-cloud.ts"() {
8121
8141
  init_src6();
8122
8142
  init_src7();
8123
- init_esm2();
8143
+ init_esm();
8124
8144
  init_tile_3d_feature_table();
8125
8145
  init_tile_3d_batch_table();
8126
8146
  init_parse_3d_tile_header();
@@ -8143,7 +8163,7 @@
8143
8163
  var VERSION7;
8144
8164
  var init_version5 = __esm({
8145
8165
  "../textures/src/lib/utils/version.ts"() {
8146
- VERSION7 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "beta";
8166
+ VERSION7 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
8147
8167
  }
8148
8168
  });
8149
8169
 
@@ -11325,8 +11345,8 @@
11325
11345
  }
11326
11346
  var init_parse_3d_tile_instanced_model = __esm({
11327
11347
  "src/lib/parsers/parse-3d-tile-instanced-model.ts"() {
11348
+ init_esm();
11328
11349
  init_esm2();
11329
- init_esm3();
11330
11350
  init_src7();
11331
11351
  init_tile_3d_feature_table();
11332
11352
  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.1.0" !== 'undefined' ? "3.1.0" : 'latest';
7
+ var VERSION = typeof "3.1.1" !== 'undefined' ? "3.1.1" : 'latest';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = typeof "3.1.0" !== 'undefined' ? "3.1.0" : 'latest';
1
+ export const VERSION = typeof "3.1.1" !== 'undefined' ? "3.1.1" : 'latest';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/3d-tiles",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
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/bundle.js"
35
35
  },
36
36
  "dependencies": {
37
- "@loaders.gl/draco": "3.1.0",
38
- "@loaders.gl/gltf": "3.1.0",
39
- "@loaders.gl/loader-utils": "3.1.0",
40
- "@loaders.gl/math": "3.1.0",
41
- "@loaders.gl/tiles": "3.1.0",
37
+ "@loaders.gl/draco": "3.1.1",
38
+ "@loaders.gl/gltf": "3.1.1",
39
+ "@loaders.gl/loader-utils": "3.1.1",
40
+ "@loaders.gl/math": "3.1.1",
41
+ "@loaders.gl/tiles": "3.1.1",
42
42
  "@math.gl/core": "^3.5.1",
43
43
  "@math.gl/geospatial": "^3.5.1"
44
44
  },
45
45
  "peerDependencies": {
46
- "@loaders.gl/core": "3.1.0-beta.1"
46
+ "@loaders.gl/core": "3.1.0"
47
47
  },
48
- "gitHead": "b02a011b5a6d6aa6c5870819045c70db168cb930"
48
+ "gitHead": "ed3c238bcb68ab5a2d4ddc64319f6f4c02a20df7"
49
49
  }