@cesium/engine 12.0.1 → 13.1.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.
Files changed (161) hide show
  1. package/Build/Workers/{chunk-7D6T2WYT.js → chunk-2ONAV62A.js} +14 -47
  2. package/Build/Workers/{chunk-MV7YO647.js → chunk-2SRHVCFD.js} +6 -6
  3. package/Build/Workers/{chunk-ZPTNVB3S.js → chunk-3SCCWLZS.js} +34 -8
  4. package/Build/Workers/{chunk-7CKQ7PVJ.js → chunk-54I6VSRP.js} +6 -6
  5. package/Build/Workers/{chunk-XDJ7V4NZ.js → chunk-5I3LPAS7.js} +5 -5
  6. package/Build/Workers/{chunk-GSJ6LWIS.js → chunk-5ICYLS6B.js} +35 -21
  7. package/Build/Workers/{chunk-BH5M522L.js → chunk-5JY4LYO3.js} +7 -7
  8. package/Build/Workers/{chunk-DR56WFYZ.js → chunk-APCS5YJI.js} +7 -7
  9. package/Build/Workers/{chunk-COHL4R3G.js → chunk-AXYZUG4N.js} +1 -1
  10. package/Build/Workers/{chunk-2IJZVFHY.js → chunk-B34JXFHF.js} +5 -5
  11. package/Build/Workers/{chunk-54NYY4U4.js → chunk-B6IJY6AN.js} +7 -7
  12. package/Build/Workers/{chunk-H3RMGG7L.js → chunk-BMFWWTD7.js} +5 -5
  13. package/Build/Workers/{chunk-PJHRB4YJ.js → chunk-CBE4HRBH.js} +7 -7
  14. package/Build/Workers/{chunk-U7SH6OK7.js → chunk-CNPP6TQ2.js} +4 -4
  15. package/Build/Workers/{chunk-2XOUWNPN.js → chunk-DWIKWWEE.js} +5 -5
  16. package/Build/Workers/{chunk-PNA47CR7.js → chunk-EHGQQA7C.js} +1 -1
  17. package/Build/Workers/{chunk-7EBHNJTG.js → chunk-EJ5DT5BP.js} +1 -1
  18. package/Build/Workers/{chunk-3Y4UGAYI.js → chunk-EYZFEJX3.js} +6 -6
  19. package/Build/Workers/{chunk-EMCXAVSG.js → chunk-FNCXBBCF.js} +2 -2
  20. package/Build/Workers/{chunk-NL73INJS.js → chunk-GIOZHX7U.js} +2 -2
  21. package/Build/Workers/{chunk-VHGI7D3P.js → chunk-GSLKQJM2.js} +10 -10
  22. package/Build/Workers/{chunk-647NL6VU.js → chunk-HI73PIPQ.js} +2 -2
  23. package/Build/Workers/{chunk-GRQQHWMD.js → chunk-IP7F2MVW.js} +7 -7
  24. package/Build/Workers/{chunk-LBNGHEJY.js → chunk-IXNXKVOB.js} +4 -4
  25. package/Build/Workers/{chunk-2F42VIW6.js → chunk-J7BMSSY7.js} +13 -13
  26. package/Build/Workers/{chunk-PH3T7LNP.js → chunk-K62EHZFT.js} +15 -15
  27. package/Build/Workers/{chunk-GBPW65E3.js → chunk-K6SQV4IS.js} +6 -6
  28. package/Build/Workers/{chunk-WMHJAREU.js → chunk-KO232FLP.js} +2 -2
  29. package/Build/Workers/{chunk-AER5CLXD.js → chunk-KRVALCCI.js} +5 -5
  30. package/Build/Workers/{chunk-22FZ334F.js → chunk-LFUFGHL3.js} +10 -10
  31. package/Build/Workers/{chunk-AGYO4ZSF.js → chunk-LQT2ZK7D.js} +17 -17
  32. package/Build/Workers/{chunk-KJ65M35B.js → chunk-M2AA2ARJ.js} +11 -11
  33. package/Build/Workers/{chunk-YT5PQMSP.js → chunk-MGABCOOH.js} +6 -6
  34. package/Build/Workers/{chunk-JPNFQRN7.js → chunk-NQDKNE7V.js} +13 -13
  35. package/Build/Workers/{chunk-IJWXYSFC.js → chunk-OARMSJUU.js} +2 -2
  36. package/Build/Workers/{chunk-K7QC3WDT.js → chunk-OGRXNUR2.js} +1 -1
  37. package/Build/Workers/{chunk-KKMH4BKN.js → chunk-OZTFRHA2.js} +6 -6
  38. package/Build/Workers/{chunk-DJ7K7EYK.js → chunk-PBJQFLKS.js} +11 -11
  39. package/Build/Workers/{chunk-ETXXXGMP.js → chunk-PM76TX2X.js} +6 -6
  40. package/Build/Workers/{chunk-PISTPJXS.js → chunk-PTFIVVLX.js} +12 -12
  41. package/Build/Workers/{chunk-VXVQITFC.js → chunk-R2KGFZBA.js} +13 -13
  42. package/Build/Workers/{chunk-VO4SXJXT.js → chunk-S3UM4OKP.js} +7 -7
  43. package/Build/Workers/{chunk-NELAPOO6.js → chunk-SAKQO5NX.js} +2 -2
  44. package/Build/Workers/{chunk-ENARO52I.js → chunk-T34EOLFR.js} +14 -14
  45. package/Build/Workers/{chunk-X6YBZOOA.js → chunk-THDHWSEJ.js} +4 -4
  46. package/Build/Workers/{chunk-LVHHB5T6.js → chunk-TOHDFUJM.js} +4 -4
  47. package/Build/Workers/{chunk-Q7IIOKAT.js → chunk-UBAHTE4Q.js} +1 -1
  48. package/Build/Workers/{chunk-IAX6MIST.js → chunk-WAJNX74N.js} +17 -17
  49. package/Build/Workers/{chunk-76KRKKEF.js → chunk-WE4KF4AM.js} +9 -9
  50. package/Build/Workers/{chunk-JAKTB6CE.js → chunk-WUIDEXAN.js} +7 -7
  51. package/Build/Workers/{chunk-IVCFTVYW.js → chunk-YVGU235V.js} +4 -4
  52. package/Build/Workers/{chunk-ZCCI55EY.js → chunk-ZWSWJYJP.js} +13 -13
  53. package/Build/Workers/combineGeometry.js +22 -22
  54. package/Build/Workers/createBoxGeometry.js +16 -16
  55. package/Build/Workers/createBoxOutlineGeometry.js +14 -14
  56. package/Build/Workers/createCircleGeometry.js +24 -24
  57. package/Build/Workers/createCircleOutlineGeometry.js +17 -17
  58. package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
  59. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
  60. package/Build/Workers/createCorridorGeometry.js +27 -27
  61. package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
  62. package/Build/Workers/createCylinderGeometry.js +18 -18
  63. package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
  64. package/Build/Workers/createEllipseGeometry.js +24 -24
  65. package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
  66. package/Build/Workers/createEllipsoidGeometry.js +17 -17
  67. package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
  68. package/Build/Workers/createFrustumGeometry.js +16 -16
  69. package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
  70. package/Build/Workers/createGeometry.js +22 -22
  71. package/Build/Workers/createGroundPolylineGeometry.js +20 -20
  72. package/Build/Workers/createPlaneGeometry.js +14 -14
  73. package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
  74. package/Build/Workers/createPolygonGeometry.js +30 -30
  75. package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
  76. package/Build/Workers/createPolylineGeometry.js +23 -23
  77. package/Build/Workers/createPolylineVolumeGeometry.js +31 -32
  78. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
  79. package/Build/Workers/createRectangleGeometry.js +25 -25
  80. package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
  81. package/Build/Workers/createSimplePolylineGeometry.js +21 -21
  82. package/Build/Workers/createSphereGeometry.js +17 -17
  83. package/Build/Workers/createSphereOutlineGeometry.js +16 -16
  84. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  85. package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
  86. package/Build/Workers/createVectorTileGeometries.js +22 -22
  87. package/Build/Workers/createVectorTilePoints.js +12 -12
  88. package/Build/Workers/createVectorTilePolygons.js +20 -20
  89. package/Build/Workers/createVectorTilePolylines.js +13 -13
  90. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
  91. package/Build/Workers/createVerticesFromHeightmap.js +20 -20
  92. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
  93. package/Build/Workers/createWallGeometry.js +22 -22
  94. package/Build/Workers/createWallOutlineGeometry.js +21 -21
  95. package/Build/Workers/decodeDraco.js +11 -11
  96. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  97. package/Build/Workers/decodeI3S.js +10 -10
  98. package/Build/Workers/transcodeKTX2.js +7 -7
  99. package/Build/Workers/transferTypedArrayTest.js +1 -1
  100. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
  101. package/Source/Core/BingMapsGeocoderService.js +2 -0
  102. package/Source/Core/Check.d.ts +2 -1
  103. package/Source/Core/GoogleGeocoderService.js +110 -0
  104. package/Source/Core/ITwinPlatform.js +324 -0
  105. package/Source/Core/Ion.js +1 -1
  106. package/Source/Core/IonGeocodeProviderType.js +33 -0
  107. package/Source/Core/IonGeocoderService.js +72 -0
  108. package/Source/Core/JulianDate.js +14 -7
  109. package/Source/Core/Rectangle.js +0 -20
  110. package/Source/Core/TrackingReferenceFrame.js +45 -0
  111. package/Source/Core/defined.d.ts +11 -0
  112. package/Source/DataSources/Entity.js +15 -1
  113. package/Source/DataSources/EntityView.js +55 -4
  114. package/Source/DataSources/ModelGraphics.js +23 -1
  115. package/Source/DataSources/ModelVisualizer.js +22 -1
  116. package/Source/DataSources/SampledProperty.js +24 -0
  117. package/Source/Renderer/ContextLimits.js +1 -1
  118. package/Source/Renderer/Texture.js +104 -92
  119. package/Source/Scene/ArcGisMapService.js +1 -1
  120. package/Source/Scene/Cesium3DTileset.js +1 -1
  121. package/Source/Scene/Cesium3DTilesetStatistics.js +109 -42
  122. package/Source/Scene/DerivedCommand.js +109 -16
  123. package/Source/Scene/DynamicEnvironmentMapManager.js +202 -65
  124. package/Source/Scene/GltfTextureLoader.js +16 -1
  125. package/Source/Scene/ITwinData.js +208 -0
  126. package/Source/Scene/Label.js +17 -3
  127. package/Source/Scene/MetadataClassProperty.js +26 -0
  128. package/Source/Scene/MetadataPicking.js +108 -17
  129. package/Source/Scene/MetadataType.js +20 -0
  130. package/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js +6 -11
  131. package/Source/Scene/Model/Model.js +1 -1
  132. package/Source/Scene/Model/Model3DTileContent.js +23 -1
  133. package/Source/Scene/Model/ModelStatistics.js +33 -5
  134. package/Source/Scene/Model/PointCloudStylingPipelineStage.js +2 -1
  135. package/Source/Scene/PickedMetadataInfo.js +21 -3
  136. package/Source/Scene/Picking.js +7 -1
  137. package/Source/Scene/PostProcessStage.js +14 -17
  138. package/Source/Scene/PostProcessStageCollection.js +4 -16
  139. package/Source/Scene/PostProcessStageLibrary.js +13 -51
  140. package/Source/Scene/PropertyAttributeProperty.js +15 -3
  141. package/Source/Scene/PropertyTextureProperty.js +12 -0
  142. package/Source/Scene/Scene.js +17 -2
  143. package/Source/Scene/SkyBox.js +23 -4
  144. package/Source/Scene/UrlTemplateImageryProvider.js +5 -5
  145. package/Source/Scene/createGooglePhotorealistic3DTileset.js +55 -16
  146. package/Source/Scene/getMetadataProperty.js +48 -0
  147. package/Source/Shaders/Builtin/Functions/reverseLogDepth.glsl +1 -1
  148. package/Source/Shaders/Builtin/Functions/reverseLogDepth.js +1 -1
  149. package/Source/Shaders/ConvolveSpecularMapFS.glsl +1 -1
  150. package/Source/Shaders/ConvolveSpecularMapFS.js +1 -1
  151. package/Source/Shaders/DepthPlaneVS.glsl +1 -1
  152. package/Source/Shaders/DepthPlaneVS.js +1 -1
  153. package/Source/Shaders/Model/ModelFS.glsl +7 -0
  154. package/Source/Shaders/Model/ModelFS.js +7 -0
  155. package/Source/Shaders/Model/ModelVS.glsl +9 -1
  156. package/Source/Shaders/Model/ModelVS.js +9 -1
  157. package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +66 -37
  158. package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +66 -37
  159. package/index.d.ts +295 -42
  160. package/index.js +67 -61
  161. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -30,26 +30,26 @@ import {
30
30
  Ellipsoid_default,
31
31
  FeatureDetection_default,
32
32
  Matrix3_default
33
- } from "./chunk-AER5CLXD.js";
33
+ } from "./chunk-KRVALCCI.js";
34
34
  import {
35
35
  Math_default
36
- } from "./chunk-LVHHB5T6.js";
36
+ } from "./chunk-TOHDFUJM.js";
37
37
  import {
38
38
  RuntimeError_default
39
- } from "./chunk-NELAPOO6.js";
39
+ } from "./chunk-SAKQO5NX.js";
40
40
  import {
41
41
  defaultValue_default
42
- } from "./chunk-Q7IIOKAT.js";
42
+ } from "./chunk-UBAHTE4Q.js";
43
43
  import {
44
44
  Check_default,
45
45
  DeveloperError_default
46
- } from "./chunk-EMCXAVSG.js";
46
+ } from "./chunk-FNCXBBCF.js";
47
47
  import {
48
48
  __commonJS,
49
49
  __require,
50
50
  __toESM,
51
51
  defined_default
52
- } from "./chunk-K7QC3WDT.js";
52
+ } from "./chunk-OGRXNUR2.js";
53
53
 
54
54
  // node_modules/urijs/src/punycode.js
55
55
  var require_punycode = __commonJS({
@@ -4782,7 +4782,7 @@ var TimeStandard_default = Object.freeze(TimeStandard);
4782
4782
  // packages/engine/Source/Core/JulianDate.js
4783
4783
  var gregorianDateScratch = new GregorianDate_default();
4784
4784
  var daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4785
- var daysInLeapFeburary = 29;
4785
+ var daysInLeapFebruary = 29;
4786
4786
  function compareLeapSecondDates(leapSecond, dateToFind) {
4787
4787
  return JulianDate.compare(leapSecond.julianDate, dateToFind.julianDate);
4788
4788
  }
@@ -5017,7 +5017,7 @@ JulianDate.fromIso8601 = function(iso8601String, result) {
5017
5017
  }
5018
5018
  }
5019
5019
  inLeapYear = isLeapYear_default(year);
5020
- if (month < 1 || month > 12 || day < 1 || (month !== 2 || !inLeapYear) && day > daysInMonth[month - 1] || inLeapYear && month === 2 && day > daysInLeapFeburary) {
5020
+ if (month < 1 || month > 12 || day < 1 || (month !== 2 || !inLeapYear) && day > daysInMonth[month - 1] || inLeapYear && month === 2 && day > daysInLeapFebruary) {
5021
5021
  throw new DeveloperError_default(iso8601ErrorMessage);
5022
5022
  }
5023
5023
  let offsetIndex;
@@ -5091,7 +5091,7 @@ JulianDate.fromIso8601 = function(iso8601String, result) {
5091
5091
  hour -= 24;
5092
5092
  day++;
5093
5093
  }
5094
- tmp = inLeapYear && month === 2 ? daysInLeapFeburary : daysInMonth[month - 1];
5094
+ tmp = inLeapYear && month === 2 ? daysInLeapFebruary : daysInMonth[month - 1];
5095
5095
  while (day > tmp) {
5096
5096
  day -= tmp;
5097
5097
  month++;
@@ -5099,7 +5099,7 @@ JulianDate.fromIso8601 = function(iso8601String, result) {
5099
5099
  month -= 12;
5100
5100
  year++;
5101
5101
  }
5102
- tmp = inLeapYear && month === 2 ? daysInLeapFeburary : daysInMonth[month - 1];
5102
+ tmp = inLeapYear && month === 2 ? daysInLeapFebruary : daysInMonth[month - 1];
5103
5103
  }
5104
5104
  while (minute < 0) {
5105
5105
  minute += 60;
@@ -5115,7 +5115,7 @@ JulianDate.fromIso8601 = function(iso8601String, result) {
5115
5115
  month += 12;
5116
5116
  year--;
5117
5117
  }
5118
- tmp = inLeapYear && month === 2 ? daysInLeapFeburary : daysInMonth[month - 1];
5118
+ tmp = inLeapYear && month === 2 ? daysInLeapFebruary : daysInMonth[month - 1];
5119
5119
  day += tmp;
5120
5120
  }
5121
5121
  const components = computeJulianDateComponents(
@@ -5244,7 +5244,8 @@ JulianDate.toIso8601 = function(julianDate, precision) {
5244
5244
  }
5245
5245
  let millisecondStr;
5246
5246
  if (!defined_default(precision) && millisecond !== 0) {
5247
- millisecondStr = (millisecond * 0.01).toString().replace(".", "");
5247
+ const millisecondHundreds = millisecond * 0.01;
5248
+ millisecondStr = millisecondHundreds < 1e-6 ? millisecondHundreds.toFixed(20).replace(".", "").replace(/0+$/, "") : millisecondHundreds.toString().replace(".", "");
5248
5249
  return `${year.toString().padStart(4, "0")}-${month.toString().padStart(2, "0")}-${day.toString().padStart(2, "0")}T${hour.toString().padStart(2, "0")}:${minute.toString().padStart(2, "0")}:${second.toString().padStart(2, "0")}.${millisecondStr}Z`;
5249
5250
  }
5250
5251
  if (!defined_default(precision) || precision === 0) {
@@ -9375,32 +9376,6 @@ Transforms.ellipsoidTo2DModelMatrix = function(projection, center, result) {
9375
9376
  };
9376
9377
  var Transforms_default = Transforms;
9377
9378
 
9378
- // packages/engine/Source/Core/oneTimeWarning.js
9379
- var warnings = {};
9380
- function oneTimeWarning(identifier, message) {
9381
- if (!defined_default(identifier)) {
9382
- throw new DeveloperError_default("identifier is required.");
9383
- }
9384
- if (!defined_default(warnings[identifier])) {
9385
- warnings[identifier] = true;
9386
- console.warn(defaultValue_default(message, identifier));
9387
- }
9388
- }
9389
- oneTimeWarning.geometryOutlines = "Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";
9390
- oneTimeWarning.geometryZIndex = "Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";
9391
- oneTimeWarning.geometryHeightReference = "Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored";
9392
- oneTimeWarning.geometryExtrudedHeightReference = "Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";
9393
- var oneTimeWarning_default = oneTimeWarning;
9394
-
9395
- // packages/engine/Source/Core/deprecationWarning.js
9396
- function deprecationWarning(identifier, message) {
9397
- if (!defined_default(identifier) || !defined_default(message)) {
9398
- throw new DeveloperError_default("identifier and message are required.");
9399
- }
9400
- oneTimeWarning_default(identifier, message);
9401
- }
9402
- var deprecationWarning_default = deprecationWarning;
9403
-
9404
9379
  // packages/engine/Source/Core/Rectangle.js
9405
9380
  function Rectangle(west, south, east, north) {
9406
9381
  this.west = defaultValue_default(west, 0);
@@ -9657,13 +9632,6 @@ Rectangle.equals = function(left, right) {
9657
9632
  Rectangle.prototype.equalsEpsilon = function(other, epsilon) {
9658
9633
  return Rectangle.equalsEpsilon(this, other, epsilon);
9659
9634
  };
9660
- Rectangle.validate = function(rectangle) {
9661
- deprecationWarning_default(
9662
- "Rectangle.validate",
9663
- "Rectangle.validate is a no-op and has been deprecated. It will be removed in Cesium 1.124."
9664
- );
9665
- return Rectangle._validate(rectangle);
9666
- };
9667
9635
  Rectangle._validate = function(rectangle) {
9668
9636
  Check_default.typeOf.object("rectangle", rectangle);
9669
9637
  const north = rectangle.north;
@@ -10384,7 +10352,6 @@ export {
10384
10352
  buildModuleUrl_default,
10385
10353
  Quaternion_default,
10386
10354
  Transforms_default,
10387
- oneTimeWarning_default,
10388
10355
  Rectangle_default,
10389
10356
  Matrix2_default
10390
10357
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,19 +25,19 @@
25
25
 
26
26
  import {
27
27
  Intersect_default
28
- } from "./chunk-54NYY4U4.js";
28
+ } from "./chunk-B6IJY6AN.js";
29
29
  import {
30
30
  Cartesian3_default
31
- } from "./chunk-AER5CLXD.js";
31
+ } from "./chunk-KRVALCCI.js";
32
32
  import {
33
33
  defaultValue_default
34
- } from "./chunk-Q7IIOKAT.js";
34
+ } from "./chunk-UBAHTE4Q.js";
35
35
  import {
36
36
  Check_default
37
- } from "./chunk-EMCXAVSG.js";
37
+ } from "./chunk-FNCXBBCF.js";
38
38
  import {
39
39
  defined_default
40
- } from "./chunk-K7QC3WDT.js";
40
+ } from "./chunk-OGRXNUR2.js";
41
41
 
42
42
  // packages/engine/Source/Core/AxisAlignedBoundingBox.js
43
43
  function AxisAlignedBoundingBox(minimum, maximum, center) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,26 +25,34 @@
25
25
 
26
26
  import {
27
27
  PolylinePipeline_default
28
- } from "./chunk-KJ65M35B.js";
28
+ } from "./chunk-M2AA2ARJ.js";
29
29
  import {
30
30
  EllipsoidTangentPlane_default
31
- } from "./chunk-76KRKKEF.js";
31
+ } from "./chunk-WE4KF4AM.js";
32
32
  import {
33
33
  Cartesian4_default,
34
34
  Matrix4_default,
35
35
  Quaternion_default,
36
- Transforms_default,
37
- oneTimeWarning_default
38
- } from "./chunk-7D6T2WYT.js";
36
+ Transforms_default
37
+ } from "./chunk-2ONAV62A.js";
39
38
  import {
40
39
  Cartesian2_default,
41
40
  Cartesian3_default,
42
41
  Cartographic_default,
43
42
  Matrix3_default
44
- } from "./chunk-AER5CLXD.js";
43
+ } from "./chunk-KRVALCCI.js";
45
44
  import {
46
45
  Math_default
47
- } from "./chunk-LVHHB5T6.js";
46
+ } from "./chunk-TOHDFUJM.js";
47
+ import {
48
+ defaultValue_default
49
+ } from "./chunk-UBAHTE4Q.js";
50
+ import {
51
+ DeveloperError_default
52
+ } from "./chunk-FNCXBBCF.js";
53
+ import {
54
+ defined_default
55
+ } from "./chunk-OGRXNUR2.js";
48
56
 
49
57
  // packages/engine/Source/Core/CornerType.js
50
58
  var CornerType = {
@@ -75,6 +83,23 @@ var CornerType = {
75
83
  };
76
84
  var CornerType_default = Object.freeze(CornerType);
77
85
 
86
+ // packages/engine/Source/Core/oneTimeWarning.js
87
+ var warnings = {};
88
+ function oneTimeWarning(identifier, message) {
89
+ if (!defined_default(identifier)) {
90
+ throw new DeveloperError_default("identifier is required.");
91
+ }
92
+ if (!defined_default(warnings[identifier])) {
93
+ warnings[identifier] = true;
94
+ console.warn(defaultValue_default(message, identifier));
95
+ }
96
+ }
97
+ oneTimeWarning.geometryOutlines = "Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";
98
+ oneTimeWarning.geometryZIndex = "Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";
99
+ oneTimeWarning.geometryHeightReference = "Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored";
100
+ oneTimeWarning.geometryExtrudedHeightReference = "Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";
101
+ var oneTimeWarning_default = oneTimeWarning;
102
+
78
103
  // packages/engine/Source/Core/PolylineVolumeGeometryLibrary.js
79
104
  var scratch2Array = [new Cartesian3_default(), new Cartesian3_default()];
80
105
  var scratchCartesian1 = new Cartesian3_default();
@@ -661,5 +686,6 @@ var PolylineVolumeGeometryLibrary_default = PolylineVolumeGeometryLibrary;
661
686
 
662
687
  export {
663
688
  CornerType_default,
689
+ oneTimeWarning_default,
664
690
  PolylineVolumeGeometryLibrary_default
665
691
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
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-AER5CLXD.js";
30
+ } from "./chunk-KRVALCCI.js";
31
31
  import {
32
32
  Math_default
33
- } from "./chunk-LVHHB5T6.js";
33
+ } from "./chunk-TOHDFUJM.js";
34
34
  import {
35
35
  defaultValue_default
36
- } from "./chunk-Q7IIOKAT.js";
36
+ } from "./chunk-UBAHTE4Q.js";
37
37
  import {
38
38
  Check_default
39
- } from "./chunk-EMCXAVSG.js";
39
+ } from "./chunk-FNCXBBCF.js";
40
40
  import {
41
41
  defined_default
42
- } from "./chunk-K7QC3WDT.js";
42
+ } from "./chunk-OGRXNUR2.js";
43
43
 
44
44
  // packages/engine/Source/Core/EllipsoidGeodesic.js
45
45
  function setConstants(ellipsoidGeodesic) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,16 +25,16 @@
25
25
 
26
26
  import {
27
27
  Math_default
28
- } from "./chunk-LVHHB5T6.js";
28
+ } from "./chunk-TOHDFUJM.js";
29
29
  import {
30
30
  defaultValue_default
31
- } from "./chunk-Q7IIOKAT.js";
31
+ } from "./chunk-UBAHTE4Q.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-EMCXAVSG.js";
34
+ } from "./chunk-FNCXBBCF.js";
35
35
  import {
36
36
  defined_default
37
- } from "./chunk-K7QC3WDT.js";
37
+ } from "./chunk-OGRXNUR2.js";
38
38
 
39
39
  // packages/engine/Source/Core/arrayRemoveDuplicates.js
40
40
  var removeDuplicatesEpsilon = Math_default.EPSILON10;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,36 +25,36 @@
25
25
 
26
26
  import {
27
27
  EllipsoidRhumbLine_default
28
- } from "./chunk-YT5PQMSP.js";
28
+ } from "./chunk-MGABCOOH.js";
29
29
  import {
30
30
  GeometryAttribute_default,
31
31
  Geometry_default,
32
32
  PrimitiveType_default
33
- } from "./chunk-PJHRB4YJ.js";
33
+ } from "./chunk-CBE4HRBH.js";
34
34
  import {
35
35
  ComponentDatatype_default
36
- } from "./chunk-2IJZVFHY.js";
36
+ } from "./chunk-B34JXFHF.js";
37
37
  import {
38
38
  Cartesian2_default,
39
39
  Cartesian3_default,
40
40
  Cartographic_default,
41
41
  Ellipsoid_default
42
- } from "./chunk-AER5CLXD.js";
42
+ } from "./chunk-KRVALCCI.js";
43
43
  import {
44
44
  Math_default
45
- } from "./chunk-LVHHB5T6.js";
45
+ } from "./chunk-TOHDFUJM.js";
46
46
  import {
47
47
  WebGLConstants_default
48
- } from "./chunk-COHL4R3G.js";
48
+ } from "./chunk-AXYZUG4N.js";
49
49
  import {
50
50
  defaultValue_default
51
- } from "./chunk-Q7IIOKAT.js";
51
+ } from "./chunk-UBAHTE4Q.js";
52
52
  import {
53
53
  Check_default
54
- } from "./chunk-EMCXAVSG.js";
54
+ } from "./chunk-FNCXBBCF.js";
55
55
  import {
56
56
  defined_default
57
- } from "./chunk-K7QC3WDT.js";
57
+ } from "./chunk-OGRXNUR2.js";
58
58
 
59
59
  // packages/engine/Source/Core/WindingOrder.js
60
60
  var WindingOrder = {
@@ -168,10 +168,10 @@ function isEar(ear) {
168
168
  const a = ear.prev, b = ear, c = ear.next;
169
169
  if (area(a, b, c) >= 0) return false;
170
170
  const ax = a.x, bx = b.x, cx = c.x, ay = a.y, by = b.y, cy = c.y;
171
- const x0 = ax < bx ? ax < cx ? ax : cx : bx < cx ? bx : cx, y0 = ay < by ? ay < cy ? ay : cy : by < cy ? by : cy, x1 = ax > bx ? ax > cx ? ax : cx : bx > cx ? bx : cx, y1 = ay > by ? ay > cy ? ay : cy : by > cy ? by : cy;
171
+ const x0 = Math.min(ax, bx, cx), y0 = Math.min(ay, by, cy), x1 = Math.max(ax, bx, cx), y1 = Math.max(ay, by, cy);
172
172
  let p = c.next;
173
173
  while (p !== a) {
174
- if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && pointInTriangle(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;
174
+ if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && pointInTriangleExceptFirst(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;
175
175
  p = p.next;
176
176
  }
177
177
  return true;
@@ -180,21 +180,21 @@ function isEarHashed(ear, minX, minY, invSize) {
180
180
  const a = ear.prev, b = ear, c = ear.next;
181
181
  if (area(a, b, c) >= 0) return false;
182
182
  const ax = a.x, bx = b.x, cx = c.x, ay = a.y, by = b.y, cy = c.y;
183
- const x0 = ax < bx ? ax < cx ? ax : cx : bx < cx ? bx : cx, y0 = ay < by ? ay < cy ? ay : cy : by < cy ? by : cy, x1 = ax > bx ? ax > cx ? ax : cx : bx > cx ? bx : cx, y1 = ay > by ? ay > cy ? ay : cy : by > cy ? by : cy;
183
+ const x0 = Math.min(ax, bx, cx), y0 = Math.min(ay, by, cy), x1 = Math.max(ax, bx, cx), y1 = Math.max(ay, by, cy);
184
184
  const minZ = zOrder(x0, y0, minX, minY, invSize), maxZ = zOrder(x1, y1, minX, minY, invSize);
185
185
  let p = ear.prevZ, n = ear.nextZ;
186
186
  while (p && p.z >= minZ && n && n.z <= maxZ) {
187
- if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && p !== a && p !== c && pointInTriangle(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;
187
+ if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && p !== a && p !== c && pointInTriangleExceptFirst(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;
188
188
  p = p.prevZ;
189
- if (n.x >= x0 && n.x <= x1 && n.y >= y0 && n.y <= y1 && n !== a && n !== c && pointInTriangle(ax, ay, bx, by, cx, cy, n.x, n.y) && area(n.prev, n, n.next) >= 0) return false;
189
+ if (n.x >= x0 && n.x <= x1 && n.y >= y0 && n.y <= y1 && n !== a && n !== c && pointInTriangleExceptFirst(ax, ay, bx, by, cx, cy, n.x, n.y) && area(n.prev, n, n.next) >= 0) return false;
190
190
  n = n.nextZ;
191
191
  }
192
192
  while (p && p.z >= minZ) {
193
- if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && p !== a && p !== c && pointInTriangle(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;
193
+ if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && p !== a && p !== c && pointInTriangleExceptFirst(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;
194
194
  p = p.prevZ;
195
195
  }
196
196
  while (n && n.z <= maxZ) {
197
- if (n.x >= x0 && n.x <= x1 && n.y >= y0 && n.y <= y1 && n !== a && n !== c && pointInTriangle(ax, ay, bx, by, cx, cy, n.x, n.y) && area(n.prev, n, n.next) >= 0) return false;
197
+ if (n.x >= x0 && n.x <= x1 && n.y >= y0 && n.y <= y1 && n !== a && n !== c && pointInTriangleExceptFirst(ax, ay, bx, by, cx, cy, n.x, n.y) && area(n.prev, n, n.next) >= 0) return false;
198
198
  n = n.nextZ;
199
199
  }
200
200
  return true;
@@ -240,14 +240,23 @@ function eliminateHoles(data, holeIndices, outerNode, dim) {
240
240
  if (list === list.next) list.steiner = true;
241
241
  queue.push(getLeftmost(list));
242
242
  }
243
- queue.sort(compareX);
243
+ queue.sort(compareXYSlope);
244
244
  for (let i = 0; i < queue.length; i++) {
245
245
  outerNode = eliminateHole(queue[i], outerNode);
246
246
  }
247
247
  return outerNode;
248
248
  }
249
- function compareX(a, b) {
250
- return a.x - b.x;
249
+ function compareXYSlope(a, b) {
250
+ let result = a.x - b.x;
251
+ if (result === 0) {
252
+ result = a.y - b.y;
253
+ if (result === 0) {
254
+ const aSlope = (a.next.y - a.y) / (a.next.x - a.x);
255
+ const bSlope = (b.next.y - b.y) / (b.next.x - b.x);
256
+ result = aSlope - bSlope;
257
+ }
258
+ }
259
+ return result;
251
260
  }
252
261
  function eliminateHole(hole, outerNode) {
253
262
  const bridge = findHoleBridge(hole, outerNode);
@@ -264,8 +273,10 @@ function findHoleBridge(hole, outerNode) {
264
273
  const hy = hole.y;
265
274
  let qx = -Infinity;
266
275
  let m;
276
+ if (equals(hole, p)) return p;
267
277
  do {
268
- if (hy <= p.y && hy >= p.next.y && p.next.y !== p.y) {
278
+ if (equals(hole, p.next)) return p.next;
279
+ else if (hy <= p.y && hy >= p.next.y && p.next.y !== p.y) {
269
280
  const x = p.x + (hy - p.y) * (p.next.x - p.x) / (p.next.y - p.y);
270
281
  if (x <= hx && x > qx) {
271
282
  qx = x;
@@ -373,6 +384,9 @@ function getLeftmost(start) {
373
384
  function pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {
374
385
  return (cx - px) * (ay - py) >= (ax - px) * (cy - py) && (ax - px) * (by - py) >= (bx - px) * (ay - py) && (bx - px) * (cy - py) >= (cx - px) * (by - py);
375
386
  }
387
+ function pointInTriangleExceptFirst(ax, ay, bx, by, cx, cy, px, py) {
388
+ return !(ax === px && ay === py) && pointInTriangle(ax, ay, bx, by, cx, cy, px, py);
389
+ }
376
390
  function isValidDiagonal(a, b) {
377
391
  return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && // dones't intersect other edges
378
392
  (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && // locally visible
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,25 +25,25 @@
25
25
 
26
26
  import {
27
27
  GeographicProjection_default
28
- } from "./chunk-54NYY4U4.js";
28
+ } from "./chunk-B6IJY6AN.js";
29
29
  import {
30
30
  Matrix2_default,
31
31
  Rectangle_default
32
- } from "./chunk-7D6T2WYT.js";
32
+ } from "./chunk-2ONAV62A.js";
33
33
  import {
34
34
  Cartesian3_default,
35
35
  Cartographic_default,
36
36
  Ellipsoid_default
37
- } from "./chunk-AER5CLXD.js";
37
+ } from "./chunk-KRVALCCI.js";
38
38
  import {
39
39
  Math_default
40
- } from "./chunk-LVHHB5T6.js";
40
+ } from "./chunk-TOHDFUJM.js";
41
41
  import {
42
42
  DeveloperError_default
43
- } from "./chunk-EMCXAVSG.js";
43
+ } from "./chunk-FNCXBBCF.js";
44
44
  import {
45
45
  defined_default
46
- } from "./chunk-K7QC3WDT.js";
46
+ } from "./chunk-OGRXNUR2.js";
47
47
 
48
48
  // packages/engine/Source/Core/RectangleGeometryLibrary.js
49
49
  var cos = Math.cos;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,25 +25,25 @@
25
25
 
26
26
  import {
27
27
  Interval_default
28
- } from "./chunk-54NYY4U4.js";
28
+ } from "./chunk-B6IJY6AN.js";
29
29
  import {
30
30
  Cartesian3_default,
31
31
  Cartographic_default,
32
32
  Matrix3_default
33
- } from "./chunk-AER5CLXD.js";
33
+ } from "./chunk-KRVALCCI.js";
34
34
  import {
35
35
  Math_default
36
- } from "./chunk-LVHHB5T6.js";
36
+ } from "./chunk-TOHDFUJM.js";
37
37
  import {
38
38
  defaultValue_default
39
- } from "./chunk-Q7IIOKAT.js";
39
+ } from "./chunk-UBAHTE4Q.js";
40
40
  import {
41
41
  Check_default,
42
42
  DeveloperError_default
43
- } from "./chunk-EMCXAVSG.js";
43
+ } from "./chunk-FNCXBBCF.js";
44
44
  import {
45
45
  defined_default
46
- } from "./chunk-K7QC3WDT.js";
46
+ } from "./chunk-OGRXNUR2.js";
47
47
 
48
48
  // packages/engine/Source/Core/QuadraticRealPolynomial.js
49
49
  var QuadraticRealPolynomial = {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
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.123.1
4
+ * Version 1.125
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-COHL4R3G.js";
28
+ } from "./chunk-AXYZUG4N.js";
29
29
  import {
30
30
  defaultValue_default
31
- } from "./chunk-Q7IIOKAT.js";
31
+ } from "./chunk-UBAHTE4Q.js";
32
32
  import {
33
33
  DeveloperError_default
34
- } from "./chunk-EMCXAVSG.js";
34
+ } from "./chunk-FNCXBBCF.js";
35
35
  import {
36
36
  defined_default
37
- } from "./chunk-K7QC3WDT.js";
37
+ } from "./chunk-OGRXNUR2.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.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -26,26 +26,26 @@
26
26
  import {
27
27
  Matrix4_default,
28
28
  Rectangle_default
29
- } from "./chunk-7D6T2WYT.js";
29
+ } from "./chunk-2ONAV62A.js";
30
30
  import {
31
31
  Cartesian3_default,
32
32
  Cartographic_default,
33
33
  Ellipsoid_default,
34
34
  Matrix3_default
35
- } from "./chunk-AER5CLXD.js";
35
+ } from "./chunk-KRVALCCI.js";
36
36
  import {
37
37
  Math_default
38
- } from "./chunk-LVHHB5T6.js";
38
+ } from "./chunk-TOHDFUJM.js";
39
39
  import {
40
40
  defaultValue_default
41
- } from "./chunk-Q7IIOKAT.js";
41
+ } from "./chunk-UBAHTE4Q.js";
42
42
  import {
43
43
  Check_default,
44
44
  DeveloperError_default
45
- } from "./chunk-EMCXAVSG.js";
45
+ } from "./chunk-FNCXBBCF.js";
46
46
  import {
47
47
  defined_default
48
- } from "./chunk-K7QC3WDT.js";
48
+ } from "./chunk-OGRXNUR2.js";
49
49
 
50
50
  // packages/engine/Source/Core/GeographicProjection.js
51
51
  function GeographicProjection(ellipsoid) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.123.1
4
+ * Version 1.125
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,16 +25,16 @@
25
25
 
26
26
  import {
27
27
  Math_default
28
- } from "./chunk-LVHHB5T6.js";
28
+ } from "./chunk-TOHDFUJM.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-COHL4R3G.js";
31
+ } from "./chunk-AXYZUG4N.js";
32
32
  import {
33
33
  DeveloperError_default
34
- } from "./chunk-EMCXAVSG.js";
34
+ } from "./chunk-FNCXBBCF.js";
35
35
  import {
36
36
  defined_default
37
- } from "./chunk-K7QC3WDT.js";
37
+ } from "./chunk-OGRXNUR2.js";
38
38
 
39
39
  // packages/engine/Source/Core/IndexDatatype.js
40
40
  var IndexDatatype = {