@pggis/pg-sdk 3.2.9 → 3.2.10

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.
Files changed (109) hide show
  1. package/dist/index.cjs +9 -9
  2. package/dist/pggis.min.css +1 -1
  3. package/dist/pggis.min.js +9 -9
  4. package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
  5. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
  6. package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
  7. package/dist/resources/Workers/{chunk-QRBRVGZC.js → chunk-2HJWSU7B.js} +4 -4
  8. package/dist/resources/Workers/{chunk-ZQRZBHYI.js → chunk-46UD5ABS.js} +4 -4
  9. package/dist/resources/Workers/{chunk-GVL5I7TC.js → chunk-4EBHOMFX.js} +17 -17
  10. package/dist/resources/Workers/{chunk-CDGHUKQ4.js → chunk-5HDYHG3F.js} +13 -13
  11. package/dist/resources/Workers/{chunk-CWJQGBWT.js → chunk-5M3U6ZMA.js} +1 -1
  12. package/dist/resources/Workers/{chunk-Y4OJ4B23.js → chunk-5WQ523AW.js} +5 -5
  13. package/dist/resources/Workers/{chunk-NE4JNU6H.js → chunk-5YLJ77FF.js} +10 -10
  14. package/dist/resources/Workers/{chunk-SV7DDPAC.js → chunk-6HZQPRUS.js} +1 -1
  15. package/dist/resources/Workers/{chunk-434ZTTFX.js → chunk-6VJVYK2V.js} +2 -2
  16. package/dist/resources/Workers/{chunk-LGJUI2CE.js → chunk-72SANQJV.js} +5 -5
  17. package/dist/resources/Workers/{chunk-QTZQZY2C.js → chunk-7XEAYGZK.js} +34 -10
  18. package/dist/resources/Workers/{chunk-Z4JUBRHP.js → chunk-AIPU2VSX.js} +6 -6
  19. package/dist/resources/Workers/{chunk-PZ2WJWUG.js → chunk-AR5DNBJ4.js} +6 -6
  20. package/dist/resources/Workers/{chunk-BUZDZBUH.js → chunk-BZP4T2JJ.js} +10 -10
  21. package/dist/resources/Workers/{chunk-Z2SIPUKB.js → chunk-DTAIXKTO.js} +6 -6
  22. package/dist/resources/Workers/{chunk-HOT2SNXP.js → chunk-F6SE42BK.js} +127 -90
  23. package/dist/resources/Workers/{chunk-TIXXVKUY.js → chunk-FP6GYBFX.js} +10 -10
  24. package/dist/resources/Workers/{chunk-ARPTYYKS.js → chunk-GEJTYLCO.js} +5 -5
  25. package/dist/resources/Workers/{chunk-XUTVA4K5.js → chunk-GV56Q4LU.js} +11 -11
  26. package/dist/resources/Workers/{chunk-HPP4JLNH.js → chunk-IQBYFRVW.js} +7 -7
  27. package/dist/resources/Workers/{chunk-O43GWBSF.js → chunk-IX2JCCNM.js} +1 -1
  28. package/dist/resources/Workers/{chunk-H5DUXHCV.js → chunk-JCNXK6EL.js} +11 -11
  29. package/dist/resources/Workers/{chunk-SQVTYRZY.js → chunk-JJ4VBOQ3.js} +4 -4
  30. package/dist/resources/Workers/{chunk-RIDPF7PO.js → chunk-JXDC723O.js} +2 -2
  31. package/dist/resources/Workers/{chunk-R3HUGXBH.js → chunk-JY5YEZFA.js} +8 -8
  32. package/dist/resources/Workers/{chunk-GF5TNNKP.js → chunk-L2ZN645J.js} +6 -6
  33. package/dist/resources/Workers/{chunk-5GDBZTHX.js → chunk-LZ7JIV3K.js} +17 -17
  34. package/dist/resources/Workers/{chunk-52VSIKEA.js → chunk-LZGHD6NY.js} +15 -15
  35. package/dist/resources/Workers/{chunk-RH4N2ONY.js → chunk-MY3VNFGQ.js} +7 -7
  36. package/dist/resources/Workers/{chunk-MN34FIF5.js → chunk-NKPBIX7F.js} +1 -1
  37. package/dist/resources/Workers/{chunk-AXFRNOVC.js → chunk-NY3K4IM3.js} +12 -12
  38. package/dist/resources/Workers/{chunk-MW3CJYLX.js → chunk-ODW7WYM4.js} +2 -2
  39. package/dist/resources/Workers/{chunk-R4OZKBXH.js → chunk-OVLG3FRS.js} +6 -6
  40. package/dist/resources/Workers/{chunk-TMPVBFJQ.js → chunk-PNBGBETF.js} +10 -10
  41. package/dist/resources/Workers/{chunk-DR5XZ6K5.js → chunk-PTQQUQC3.js} +13 -13
  42. package/dist/resources/Workers/{chunk-3PW6ZBN4.js → chunk-QZAD5O7I.js} +7 -7
  43. package/dist/resources/Workers/{chunk-5SK36PU4.js → chunk-R5X4OQT4.js} +7 -7
  44. package/dist/resources/Workers/{chunk-DMCSY5BU.js → chunk-RAEV7K66.js} +5 -5
  45. package/dist/resources/Workers/{chunk-BP467WX3.js → chunk-RV7ZYPFT.js} +4 -4
  46. package/dist/resources/Workers/{chunk-5HLGKKG3.js → chunk-S4MAZ3SS.js} +2 -2
  47. package/dist/resources/Workers/{chunk-LX6XV4DK.js → chunk-S6SKF6DT.js} +5 -5
  48. package/dist/resources/Workers/{chunk-HUPNRBWW.js → chunk-U2VCRRQW.js} +6 -6
  49. package/dist/resources/Workers/{chunk-SNN7WOC2.js → chunk-UAEW6HKG.js} +13 -13
  50. package/dist/resources/Workers/{chunk-HFKSAB5K.js → chunk-UDO6BFSF.js} +13 -13
  51. package/dist/resources/Workers/{chunk-YBKFS53K.js → chunk-UGK3FCDY.js} +1 -1
  52. package/dist/resources/Workers/{chunk-PIXK6KHB.js → chunk-VK3EJHWI.js} +2 -2
  53. package/dist/resources/Workers/{chunk-5IRLXUTA.js → chunk-VRGFV2UO.js} +7 -7
  54. package/dist/resources/Workers/{chunk-JGG36SQV.js → chunk-WBQCVXR3.js} +4 -4
  55. package/dist/resources/Workers/{chunk-4KP73B43.js → chunk-WZU2YLWG.js} +3 -3
  56. package/dist/resources/Workers/{chunk-LGL4P5KL.js → chunk-XWXM2O2R.js} +6 -6
  57. package/dist/resources/Workers/{chunk-FWGNCYP6.js → chunk-YUCVWAY6.js} +7 -7
  58. package/dist/resources/Workers/{chunk-CSIZ3BGT.js → chunk-ZK5JOS3D.js} +14 -14
  59. package/dist/resources/Workers/{chunk-HPH5HSFE.js → chunk-ZUA2UUNV.js} +2 -2
  60. package/dist/resources/Workers/combineGeometry.js +23 -23
  61. package/dist/resources/Workers/createBoxGeometry.js +17 -17
  62. package/dist/resources/Workers/createBoxOutlineGeometry.js +15 -15
  63. package/dist/resources/Workers/createCircleGeometry.js +25 -25
  64. package/dist/resources/Workers/createCircleOutlineGeometry.js +18 -18
  65. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +32 -32
  66. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
  67. package/dist/resources/Workers/createCorridorGeometry.js +28 -29
  68. package/dist/resources/Workers/createCorridorOutlineGeometry.js +27 -28
  69. package/dist/resources/Workers/createCylinderGeometry.js +19 -19
  70. package/dist/resources/Workers/createCylinderOutlineGeometry.js +17 -17
  71. package/dist/resources/Workers/createEllipseGeometry.js +25 -25
  72. package/dist/resources/Workers/createEllipseOutlineGeometry.js +18 -18
  73. package/dist/resources/Workers/createEllipsoidGeometry.js +18 -18
  74. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +17 -17
  75. package/dist/resources/Workers/createFrustumGeometry.js +17 -17
  76. package/dist/resources/Workers/createFrustumOutlineGeometry.js +17 -17
  77. package/dist/resources/Workers/createGeometry.js +23 -23
  78. package/dist/resources/Workers/createGroundPolylineGeometry.js +21 -21
  79. package/dist/resources/Workers/createPlaneGeometry.js +15 -15
  80. package/dist/resources/Workers/createPlaneOutlineGeometry.js +14 -14
  81. package/dist/resources/Workers/createPolygonGeometry.js +31 -166
  82. package/dist/resources/Workers/createPolygonOutlineGeometry.js +29 -29
  83. package/dist/resources/Workers/createPolylineGeometry.js +24 -24
  84. package/dist/resources/Workers/createPolylineVolumeGeometry.js +31 -33
  85. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +26 -27
  86. package/dist/resources/Workers/createRectangleGeometry.js +26 -26
  87. package/dist/resources/Workers/createRectangleOutlineGeometry.js +19 -19
  88. package/dist/resources/Workers/createSimplePolylineGeometry.js +22 -22
  89. package/dist/resources/Workers/createSphereGeometry.js +18 -18
  90. package/dist/resources/Workers/createSphereOutlineGeometry.js +17 -17
  91. package/dist/resources/Workers/createTaskProcessorWorker.js +3 -3
  92. package/dist/resources/Workers/createVectorTileClampedPolylines.js +14 -14
  93. package/dist/resources/Workers/createVectorTileGeometries.js +23 -23
  94. package/dist/resources/Workers/createVectorTilePoints.js +12 -12
  95. package/dist/resources/Workers/createVectorTilePolygons.js +21 -21
  96. package/dist/resources/Workers/createVectorTilePolylines.js +14 -14
  97. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +21 -21
  98. package/dist/resources/Workers/createVerticesFromHeightmap.js +21 -21
  99. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +18 -18
  100. package/dist/resources/Workers/createWallGeometry.js +23 -23
  101. package/dist/resources/Workers/createWallOutlineGeometry.js +22 -22
  102. package/dist/resources/Workers/decodeDraco.js +11 -11
  103. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  104. package/dist/resources/Workers/decodeI3S.js +9 -9
  105. package/dist/resources/Workers/transcodeKTX2.js +7 -7
  106. package/dist/resources/Workers/transferTypedArrayTest.js +1 -1
  107. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +21 -21
  108. package/package.json +3 -3
  109. package/dist/resources/Workers/chunk-ATB2I7OS.js +0 -55
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -27,19 +27,19 @@ import {
27
27
  Cartesian3_default,
28
28
  Cartographic_default,
29
29
  Ellipsoid_default
30
- } from "./chunk-LGJUI2CE.js";
30
+ } from "./chunk-72SANQJV.js";
31
31
  import {
32
32
  Math_default
33
- } from "./chunk-BP467WX3.js";
33
+ } from "./chunk-RV7ZYPFT.js";
34
34
  import {
35
35
  defaultValue_default
36
- } from "./chunk-CWJQGBWT.js";
36
+ } from "./chunk-5M3U6ZMA.js";
37
37
  import {
38
38
  DeveloperError_default
39
- } from "./chunk-5HLGKKG3.js";
39
+ } from "./chunk-S4MAZ3SS.js";
40
40
  import {
41
41
  defined_default
42
- } from "./chunk-YBKFS53K.js";
42
+ } from "./chunk-UGK3FCDY.js";
43
43
 
44
44
  // packages/engine/Source/Core/WebMercatorProjection.js
45
45
  function WebMercatorProjection(ellipsoid) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,38 +25,38 @@
25
25
 
26
26
  import {
27
27
  combine_default
28
- } from "./chunk-4KP73B43.js";
28
+ } from "./chunk-WZU2YLWG.js";
29
29
  import {
30
30
  Cartesian4_default,
31
31
  Matrix4_default,
32
32
  Rectangle_default
33
- } from "./chunk-3PW6ZBN4.js";
33
+ } from "./chunk-QZAD5O7I.js";
34
34
  import {
35
35
  Cartesian2_default,
36
36
  Cartesian3_default,
37
37
  Cartographic_default,
38
38
  Ellipsoid_default,
39
39
  Matrix3_default
40
- } from "./chunk-LGJUI2CE.js";
40
+ } from "./chunk-72SANQJV.js";
41
41
  import {
42
42
  Math_default
43
- } from "./chunk-BP467WX3.js";
43
+ } from "./chunk-RV7ZYPFT.js";
44
44
  import {
45
45
  RuntimeError_default
46
- } from "./chunk-RIDPF7PO.js";
46
+ } from "./chunk-JXDC723O.js";
47
47
  import {
48
48
  defaultValue_default
49
- } from "./chunk-CWJQGBWT.js";
49
+ } from "./chunk-5M3U6ZMA.js";
50
50
  import {
51
51
  Check_default,
52
52
  DeveloperError_default
53
- } from "./chunk-5HLGKKG3.js";
53
+ } from "./chunk-S4MAZ3SS.js";
54
54
  import {
55
55
  __commonJS,
56
56
  __require,
57
57
  __toESM,
58
58
  defined_default
59
- } from "./chunk-YBKFS53K.js";
59
+ } from "./chunk-UGK3FCDY.js";
60
60
 
61
61
  // node_modules/urijs/src/punycode.js
62
62
  var require_punycode = __commonJS({
@@ -3461,8 +3461,35 @@ function EarthOrientationParametersSample(xPoleWander, yPoleWander, xPoleOffset,
3461
3461
  }
3462
3462
  var EarthOrientationParametersSample_default = EarthOrientationParametersSample;
3463
3463
 
3464
+ // packages/engine/Source/Core/isLeapYear.js
3465
+ function isLeapYear(year) {
3466
+ if (year === null || isNaN(year)) {
3467
+ throw new DeveloperError_default("year is required and must be a number.");
3468
+ }
3469
+ return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
3470
+ }
3471
+ var isLeapYear_default = isLeapYear;
3472
+
3464
3473
  // packages/engine/Source/Core/GregorianDate.js
3474
+ var daysInYear = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
3465
3475
  function GregorianDate(year, month, day, hour, minute, second, millisecond, isLeapSecond) {
3476
+ const minimumYear = 1;
3477
+ const minimumMonth = 1;
3478
+ const minimumDay = 1;
3479
+ const minimumHour = 0;
3480
+ const minimumMinute = 0;
3481
+ const minimumSecond = 0;
3482
+ const minimumMillisecond = 0;
3483
+ year = defaultValue_default(year, minimumYear);
3484
+ month = defaultValue_default(month, minimumMonth);
3485
+ day = defaultValue_default(day, minimumDay);
3486
+ hour = defaultValue_default(hour, minimumHour);
3487
+ minute = defaultValue_default(minute, minimumMinute);
3488
+ second = defaultValue_default(second, minimumSecond);
3489
+ millisecond = defaultValue_default(millisecond, minimumMillisecond);
3490
+ isLeapSecond = defaultValue_default(isLeapSecond, false);
3491
+ validateRange();
3492
+ validateDate();
3466
3493
  this.year = year;
3467
3494
  this.month = month;
3468
3495
  this.day = day;
@@ -3471,17 +3498,50 @@ function GregorianDate(year, month, day, hour, minute, second, millisecond, isLe
3471
3498
  this.second = second;
3472
3499
  this.millisecond = millisecond;
3473
3500
  this.isLeapSecond = isLeapSecond;
3474
- }
3475
- var GregorianDate_default = GregorianDate;
3476
-
3477
- // packages/engine/Source/Core/isLeapYear.js
3478
- function isLeapYear(year) {
3479
- if (year === null || isNaN(year)) {
3480
- throw new DeveloperError_default("year is required and must be a number.");
3501
+ function validateRange() {
3502
+ const maximumYear = 9999;
3503
+ const maximumMonth = 12;
3504
+ const maximumDay = 31;
3505
+ const maximumHour = 23;
3506
+ const maximumMinute = 59;
3507
+ const maximumSecond = 59;
3508
+ const excludedMaximumMilisecond = 1e3;
3509
+ Check_default.typeOf.number.greaterThanOrEquals("Year", year, minimumYear);
3510
+ Check_default.typeOf.number.lessThanOrEquals("Year", year, maximumYear);
3511
+ Check_default.typeOf.number.greaterThanOrEquals("Month", month, minimumMonth);
3512
+ Check_default.typeOf.number.lessThanOrEquals("Month", month, maximumMonth);
3513
+ Check_default.typeOf.number.greaterThanOrEquals("Day", day, minimumDay);
3514
+ Check_default.typeOf.number.lessThanOrEquals("Day", day, maximumDay);
3515
+ Check_default.typeOf.number.greaterThanOrEquals("Hour", hour, minimumHour);
3516
+ Check_default.typeOf.number.lessThanOrEquals("Hour", hour, maximumHour);
3517
+ Check_default.typeOf.number.greaterThanOrEquals("Minute", minute, minimumMinute);
3518
+ Check_default.typeOf.number.lessThanOrEquals("Minute", minute, maximumMinute);
3519
+ Check_default.typeOf.bool("IsLeapSecond", isLeapSecond);
3520
+ Check_default.typeOf.number.greaterThanOrEquals("Second", second, minimumSecond);
3521
+ Check_default.typeOf.number.lessThanOrEquals(
3522
+ "Second",
3523
+ second,
3524
+ isLeapSecond ? maximumSecond + 1 : maximumSecond
3525
+ );
3526
+ Check_default.typeOf.number.greaterThanOrEquals(
3527
+ "Millisecond",
3528
+ millisecond,
3529
+ minimumMillisecond
3530
+ );
3531
+ Check_default.typeOf.number.lessThan(
3532
+ "Millisecond",
3533
+ millisecond,
3534
+ excludedMaximumMilisecond
3535
+ );
3536
+ }
3537
+ function validateDate() {
3538
+ const daysInMonth2 = month === 2 && isLeapYear_default(year) ? daysInYear[month - 1] + 1 : daysInYear[month - 1];
3539
+ if (day > daysInMonth2) {
3540
+ throw new DeveloperError_default("Month and Day represents invalid date");
3541
+ }
3481
3542
  }
3482
- return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
3483
3543
  }
3484
- var isLeapYear_default = isLeapYear;
3544
+ var GregorianDate_default = GregorianDate;
3485
3545
 
3486
3546
  // packages/engine/Source/Core/LeapSecond.js
3487
3547
  function LeapSecond(date, offset) {
@@ -6225,65 +6285,34 @@ Resource.createImageBitmapFromBlob = function(blob, options) {
6225
6285
  colorSpaceConversion: options.skipColorSpaceConversion ? "none" : "default"
6226
6286
  });
6227
6287
  };
6228
- function decodeResponse(loadWithHttpResponse, responseType) {
6229
- switch (responseType) {
6230
- case "text":
6231
- return loadWithHttpResponse.toString("utf8");
6232
- case "json":
6233
- return JSON.parse(loadWithHttpResponse.toString("utf8"));
6234
- default:
6235
- return new Uint8Array(loadWithHttpResponse).buffer;
6236
- }
6237
- }
6238
6288
  function loadWithHttpRequest(url, responseType, method, data, headers, deferred, overrideMimeType) {
6239
- let URL;
6240
- let zlib;
6241
- Promise.all([import("url"), import("zlib")]).then(([urlImport, zlibImport]) => {
6242
- URL = urlImport.parse(url);
6243
- zlib = zlibImport;
6244
- return URL.protocol === "https:" ? import("https") : import("http");
6245
- }).then((http) => {
6246
- const options = {
6247
- protocol: URL.protocol,
6248
- hostname: URL.hostname,
6249
- port: URL.port,
6250
- path: URL.path,
6251
- query: URL.query,
6252
- method,
6253
- headers
6254
- };
6255
- http.request(options).on("response", function(res) {
6256
- if (res.statusCode < 200 || res.statusCode >= 300) {
6257
- deferred.reject(
6258
- new RequestErrorEvent_default(res.statusCode, res, res.headers)
6259
- );
6260
- return;
6261
- }
6262
- const chunkArray = [];
6263
- res.on("data", function(chunk) {
6264
- chunkArray.push(chunk);
6265
- });
6266
- res.on("end", function() {
6267
- const result = Buffer.concat(chunkArray);
6268
- if (res.headers["content-encoding"] === "gzip") {
6269
- zlib.gunzip(result, function(error, resultUnzipped) {
6270
- if (error) {
6271
- deferred.reject(
6272
- new RuntimeError_default("Error decompressing response.")
6273
- );
6274
- } else {
6275
- deferred.resolve(
6276
- decodeResponse(resultUnzipped, responseType)
6277
- );
6278
- }
6279
- });
6280
- } else {
6281
- deferred.resolve(decodeResponse(result, responseType));
6282
- }
6289
+ fetch(url, {
6290
+ method,
6291
+ headers
6292
+ }).then(async (response) => {
6293
+ if (!response.ok) {
6294
+ const responseHeaders = {};
6295
+ response.headers.forEach((value, key) => {
6296
+ responseHeaders[key] = value;
6283
6297
  });
6284
- }).on("error", function(e) {
6285
- deferred.reject(new RequestErrorEvent_default());
6286
- }).end();
6298
+ deferred.reject(
6299
+ new RequestErrorEvent_default(response.status, response, responseHeaders)
6300
+ );
6301
+ return;
6302
+ }
6303
+ switch (responseType) {
6304
+ case "text":
6305
+ deferred.resolve(response.text());
6306
+ break;
6307
+ case "json":
6308
+ deferred.resolve(response.json());
6309
+ break;
6310
+ default:
6311
+ deferred.resolve(new Uint8Array(await response.arrayBuffer()).buffer);
6312
+ break;
6313
+ }
6314
+ }).catch(() => {
6315
+ deferred.reject(new RequestErrorEvent_default());
6287
6316
  });
6288
6317
  }
6289
6318
  var noXMLHttpRequest = typeof XMLHttpRequest === "undefined";
@@ -6353,7 +6382,7 @@ Resource._Implementations.loadWithXhr = function(url, responseType, method, data
6353
6382
  return;
6354
6383
  }
6355
6384
  if (xhr.status === 204) {
6356
- deferred.resolve();
6385
+ deferred.resolve(void 0);
6357
6386
  } else if (defined_default(response) && (!defined_default(responseType) || browserResponseType === responseType)) {
6358
6387
  deferred.resolve(response);
6359
6388
  } else if (responseType === "json" && typeof response === "string") {
@@ -8559,20 +8588,28 @@ Transforms.basisTo2D = function(projection, matrix, result) {
8559
8588
  }
8560
8589
  const rtcCenter = Matrix4_default.getTranslation(matrix, scratchCenter);
8561
8590
  const ellipsoid = projection.ellipsoid;
8562
- const cartographic = ellipsoid.cartesianToCartographic(
8563
- rtcCenter,
8564
- scratchCartographic
8565
- );
8566
- const projectedPosition = projection.project(
8567
- cartographic,
8568
- scratchCartesian3Projection
8569
- );
8570
- Cartesian3_default.fromElements(
8571
- projectedPosition.z,
8572
- projectedPosition.x,
8573
- projectedPosition.y,
8574
- projectedPosition
8575
- );
8591
+ let projectedPosition;
8592
+ if (Cartesian3_default.equals(rtcCenter, Cartesian3_default.ZERO)) {
8593
+ projectedPosition = Cartesian3_default.clone(
8594
+ Cartesian3_default.ZERO,
8595
+ scratchCartesian3Projection
8596
+ );
8597
+ } else {
8598
+ const cartographic = ellipsoid.cartesianToCartographic(
8599
+ rtcCenter,
8600
+ scratchCartographic
8601
+ );
8602
+ projectedPosition = projection.project(
8603
+ cartographic,
8604
+ scratchCartesian3Projection
8605
+ );
8606
+ Cartesian3_default.fromElements(
8607
+ projectedPosition.z,
8608
+ projectedPosition.x,
8609
+ projectedPosition.y,
8610
+ projectedPosition
8611
+ );
8612
+ }
8576
8613
  const fromENU = Transforms.eastNorthUpToFixedFrame(
8577
8614
  rtcCenter,
8578
8615
  ellipsoid,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,39 +25,39 @@
25
25
 
26
26
  import {
27
27
  EllipsoidTangentPlane_default
28
- } from "./chunk-TMPVBFJQ.js";
28
+ } from "./chunk-PNBGBETF.js";
29
29
  import {
30
30
  Plane_default
31
- } from "./chunk-LGL4P5KL.js";
31
+ } from "./chunk-XWXM2O2R.js";
32
32
  import {
33
33
  BoundingSphere_default,
34
34
  Intersect_default,
35
35
  Interval_default
36
- } from "./chunk-HOT2SNXP.js";
36
+ } from "./chunk-F6SE42BK.js";
37
37
  import {
38
38
  Matrix4_default,
39
39
  Rectangle_default
40
- } from "./chunk-3PW6ZBN4.js";
40
+ } from "./chunk-QZAD5O7I.js";
41
41
  import {
42
42
  Cartesian2_default,
43
43
  Cartesian3_default,
44
44
  Cartographic_default,
45
45
  Ellipsoid_default,
46
46
  Matrix3_default
47
- } from "./chunk-LGJUI2CE.js";
47
+ } from "./chunk-72SANQJV.js";
48
48
  import {
49
49
  Math_default
50
- } from "./chunk-BP467WX3.js";
50
+ } from "./chunk-RV7ZYPFT.js";
51
51
  import {
52
52
  defaultValue_default
53
- } from "./chunk-CWJQGBWT.js";
53
+ } from "./chunk-5M3U6ZMA.js";
54
54
  import {
55
55
  Check_default,
56
56
  DeveloperError_default
57
- } from "./chunk-5HLGKKG3.js";
57
+ } from "./chunk-S4MAZ3SS.js";
58
58
  import {
59
59
  defined_default
60
- } from "./chunk-YBKFS53K.js";
60
+ } from "./chunk-UGK3FCDY.js";
61
61
 
62
62
  // packages/engine/Source/Core/OrientedBoundingBox.js
63
63
  function OrientedBoundingBox(center, halfAxes) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,16 +25,16 @@
25
25
 
26
26
  import {
27
27
  WebGLConstants_default
28
- } from "./chunk-SV7DDPAC.js";
28
+ } from "./chunk-6HZQPRUS.js";
29
29
  import {
30
30
  defaultValue_default
31
- } from "./chunk-CWJQGBWT.js";
31
+ } from "./chunk-5M3U6ZMA.js";
32
32
  import {
33
33
  DeveloperError_default
34
- } from "./chunk-5HLGKKG3.js";
34
+ } from "./chunk-S4MAZ3SS.js";
35
35
  import {
36
36
  defined_default
37
- } from "./chunk-YBKFS53K.js";
37
+ } from "./chunk-UGK3FCDY.js";
38
38
 
39
39
  // packages/engine/Source/Core/ComponentDatatype.js
40
40
  var ComponentDatatype = {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,37 +25,37 @@
25
25
 
26
26
  import {
27
27
  GeometryOffsetAttribute_default
28
- } from "./chunk-MN34FIF5.js";
28
+ } from "./chunk-NKPBIX7F.js";
29
29
  import {
30
30
  VertexFormat_default
31
- } from "./chunk-ZQRZBHYI.js";
31
+ } from "./chunk-46UD5ABS.js";
32
32
  import {
33
33
  GeometryAttributes_default
34
- } from "./chunk-PIXK6KHB.js";
34
+ } from "./chunk-VK3EJHWI.js";
35
35
  import {
36
36
  GeometryAttribute_default,
37
37
  Geometry_default,
38
38
  PrimitiveType_default
39
- } from "./chunk-R3HUGXBH.js";
39
+ } from "./chunk-JY5YEZFA.js";
40
40
  import {
41
41
  BoundingSphere_default
42
- } from "./chunk-HOT2SNXP.js";
42
+ } from "./chunk-F6SE42BK.js";
43
43
  import {
44
44
  ComponentDatatype_default
45
- } from "./chunk-ARPTYYKS.js";
45
+ } from "./chunk-GEJTYLCO.js";
46
46
  import {
47
47
  Cartesian3_default
48
- } from "./chunk-LGJUI2CE.js";
48
+ } from "./chunk-72SANQJV.js";
49
49
  import {
50
50
  defaultValue_default
51
- } from "./chunk-CWJQGBWT.js";
51
+ } from "./chunk-5M3U6ZMA.js";
52
52
  import {
53
53
  Check_default,
54
54
  DeveloperError_default
55
- } from "./chunk-5HLGKKG3.js";
55
+ } from "./chunk-S4MAZ3SS.js";
56
56
  import {
57
57
  defined_default
58
- } from "./chunk-YBKFS53K.js";
58
+ } from "./chunk-UGK3FCDY.js";
59
59
 
60
60
  // packages/engine/Source/Core/BoxGeometry.js
61
61
  var diffScratch = new Cartesian3_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,23 +26,23 @@
26
26
  import {
27
27
  GeographicProjection_default,
28
28
  Intersect_default
29
- } from "./chunk-HOT2SNXP.js";
29
+ } from "./chunk-F6SE42BK.js";
30
30
  import {
31
31
  Rectangle_default
32
- } from "./chunk-3PW6ZBN4.js";
32
+ } from "./chunk-QZAD5O7I.js";
33
33
  import {
34
34
  Cartesian2_default,
35
35
  Cartographic_default
36
- } from "./chunk-LGJUI2CE.js";
36
+ } from "./chunk-72SANQJV.js";
37
37
  import {
38
38
  defaultValue_default
39
- } from "./chunk-CWJQGBWT.js";
39
+ } from "./chunk-5M3U6ZMA.js";
40
40
  import {
41
41
  Check_default
42
- } from "./chunk-5HLGKKG3.js";
42
+ } from "./chunk-S4MAZ3SS.js";
43
43
  import {
44
44
  defined_default
45
- } from "./chunk-YBKFS53K.js";
45
+ } from "./chunk-UGK3FCDY.js";
46
46
 
47
47
  // packages/engine/Source/Core/BoundingRectangle.js
48
48
  function BoundingRectangle(x, y, width, height) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,36 +25,36 @@
25
25
 
26
26
  import {
27
27
  EllipsoidGeodesic_default
28
- } from "./chunk-GF5TNNKP.js";
28
+ } from "./chunk-L2ZN645J.js";
29
29
  import {
30
30
  EllipsoidRhumbLine_default
31
- } from "./chunk-R4OZKBXH.js";
31
+ } from "./chunk-OVLG3FRS.js";
32
32
  import {
33
33
  IntersectionTests_default
34
- } from "./chunk-5IRLXUTA.js";
34
+ } from "./chunk-VRGFV2UO.js";
35
35
  import {
36
36
  Plane_default
37
- } from "./chunk-LGL4P5KL.js";
37
+ } from "./chunk-XWXM2O2R.js";
38
38
  import {
39
39
  Matrix4_default
40
- } from "./chunk-3PW6ZBN4.js";
40
+ } from "./chunk-QZAD5O7I.js";
41
41
  import {
42
42
  Cartesian3_default,
43
43
  Cartographic_default,
44
44
  Ellipsoid_default
45
- } from "./chunk-LGJUI2CE.js";
45
+ } from "./chunk-72SANQJV.js";
46
46
  import {
47
47
  Math_default
48
- } from "./chunk-BP467WX3.js";
48
+ } from "./chunk-RV7ZYPFT.js";
49
49
  import {
50
50
  defaultValue_default
51
- } from "./chunk-CWJQGBWT.js";
51
+ } from "./chunk-5M3U6ZMA.js";
52
52
  import {
53
53
  DeveloperError_default
54
- } from "./chunk-5HLGKKG3.js";
54
+ } from "./chunk-S4MAZ3SS.js";
55
55
  import {
56
56
  defined_default
57
- } from "./chunk-YBKFS53K.js";
57
+ } from "./chunk-UGK3FCDY.js";
58
58
 
59
59
  // packages/engine/Source/Core/PolylinePipeline.js
60
60
  var PolylinePipeline = {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,15 +25,15 @@
25
25
 
26
26
  import {
27
27
  OrientedBoundingBox_default
28
- } from "./chunk-TIXXVKUY.js";
28
+ } from "./chunk-FP6GYBFX.js";
29
29
  import {
30
30
  Cartesian2_default,
31
31
  Cartesian3_default,
32
32
  Matrix3_default
33
- } from "./chunk-LGJUI2CE.js";
33
+ } from "./chunk-72SANQJV.js";
34
34
  import {
35
35
  Check_default
36
- } from "./chunk-5HLGKKG3.js";
36
+ } from "./chunk-S4MAZ3SS.js";
37
37
 
38
38
  // packages/engine/Source/Core/CoplanarPolygonGeometryLibrary.js
39
39
  var CoplanarPolygonGeometryLibrary = {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,7 +25,7 @@
25
25
 
26
26
  import {
27
27
  defined_default
28
- } from "./chunk-YBKFS53K.js";
28
+ } from "./chunk-UGK3FCDY.js";
29
29
 
30
30
  // packages/engine/Source/Core/RuntimeError.js
31
31
  function RuntimeError(message) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.113
4
+ * Version 1.114
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,31 +26,31 @@
26
26
  import {
27
27
  Quaternion_default,
28
28
  Transforms_default
29
- } from "./chunk-HOT2SNXP.js";
29
+ } from "./chunk-F6SE42BK.js";
30
30
  import {
31
31
  Matrix2_default,
32
32
  Matrix4_default,
33
33
  Rectangle_default
34
- } from "./chunk-3PW6ZBN4.js";
34
+ } from "./chunk-QZAD5O7I.js";
35
35
  import {
36
36
  Cartesian2_default,
37
37
  Cartesian3_default,
38
38
  Cartographic_default,
39
39
  Matrix3_default
40
- } from "./chunk-LGJUI2CE.js";
40
+ } from "./chunk-72SANQJV.js";
41
41
  import {
42
42
  WebGLConstants_default
43
- } from "./chunk-SV7DDPAC.js";
43
+ } from "./chunk-6HZQPRUS.js";
44
44
  import {
45
45
  defaultValue_default
46
- } from "./chunk-CWJQGBWT.js";
46
+ } from "./chunk-5M3U6ZMA.js";
47
47
  import {
48
48
  Check_default,
49
49
  DeveloperError_default
50
- } from "./chunk-5HLGKKG3.js";
50
+ } from "./chunk-S4MAZ3SS.js";
51
51
  import {
52
52
  defined_default
53
- } from "./chunk-YBKFS53K.js";
53
+ } from "./chunk-UGK3FCDY.js";
54
54
 
55
55
  // packages/engine/Source/Core/GeometryType.js
56
56
  var GeometryType = {