deeptwins-cesium-engine 0.1.2 → 0.1.4

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 (219) hide show
  1. package/Build/Workers/chunk-2HWLF3FT.js +837 -0
  2. package/Build/Workers/chunk-2KXMJ5XS.js +3792 -0
  3. package/Build/Workers/chunk-2NPCLB3H.js +56 -0
  4. package/Build/Workers/chunk-2ZHQTIBH.js +1483 -0
  5. package/Build/Workers/chunk-3GLYOW63.js +352 -0
  6. package/Build/Workers/chunk-3L22KMPU.js +219 -0
  7. package/Build/Workers/chunk-3Q6V2B2I.js +73 -0
  8. package/Build/Workers/chunk-3QOKKRIG.js +387 -0
  9. package/Build/Workers/chunk-44YZFGRH.js +1800 -0
  10. package/Build/Workers/chunk-45VV4SBO.js +2342 -0
  11. package/Build/Workers/chunk-4EJ4AA2S.js +368 -0
  12. package/Build/Workers/chunk-4IJFHUL6.js +414 -0
  13. package/Build/Workers/chunk-4K3V5CGW.js +454 -0
  14. package/Build/Workers/chunk-4M4QL6KJ.js +305 -0
  15. package/Build/Workers/chunk-4YNRIEQ6.js +288 -0
  16. package/Build/Workers/chunk-56CVDPH5.js +352 -0
  17. package/Build/Workers/chunk-5CTAAPXH.js +1483 -0
  18. package/Build/Workers/chunk-5ISZ6NJD.js +102 -0
  19. package/Build/Workers/chunk-5SDHYIOS.js +56 -0
  20. package/Build/Workers/chunk-66TGUMCU.js +2719 -0
  21. package/Build/Workers/chunk-6EJMTDQJ.js +163 -0
  22. package/Build/Workers/chunk-6VWXYSMH.js +959 -0
  23. package/Build/Workers/chunk-6VZ7VB2Q.js +241 -0
  24. package/Build/Workers/chunk-7AMRE57Q.js +301 -0
  25. package/Build/Workers/chunk-7DH6C33H.js +398 -0
  26. package/Build/Workers/chunk-7VUS3FVE.js +38 -0
  27. package/Build/Workers/chunk-7Y3ZA6H3.js +198 -0
  28. package/Build/Workers/chunk-A6BMHZNA.js +38 -0
  29. package/Build/Workers/chunk-A7XY2MN7.js +171 -0
  30. package/Build/Workers/chunk-AC7ND63S.js +57 -0
  31. package/Build/Workers/chunk-AHCZ757M.js +9230 -0
  32. package/Build/Workers/chunk-ANOA7E7F.js +56 -0
  33. package/Build/Workers/chunk-AYO5HHV6.js +789 -0
  34. package/Build/Workers/chunk-BE2N56VZ.js +1344 -0
  35. package/Build/Workers/chunk-BR3BPM64.js +9230 -0
  36. package/Build/Workers/chunk-BVMRWGOK.js +455 -0
  37. package/Build/Workers/chunk-BXEL2NX7.js +455 -0
  38. package/Build/Workers/chunk-C5BO2JCG.js +278 -0
  39. package/Build/Workers/chunk-CIRQNZVR.js +301 -0
  40. package/Build/Workers/chunk-CM67CQME.js +305 -0
  41. package/Build/Workers/chunk-D3QIW4DH.js +630 -0
  42. package/Build/Workers/chunk-E5W7QIGZ.js +511 -0
  43. package/Build/Workers/chunk-E6CYGUJI.js +1054 -0
  44. package/Build/Workers/chunk-EIZ23IOX.js +414 -0
  45. package/Build/Workers/chunk-EIZJUMQY.js +101 -0
  46. package/Build/Workers/chunk-EXTMZJXB.js +82 -0
  47. package/Build/Workers/chunk-EYOOSIBW.js +682 -0
  48. package/Build/Workers/chunk-F37WADVC.js +1054 -0
  49. package/Build/Workers/chunk-FIWPJFHX.js +101 -0
  50. package/Build/Workers/chunk-FM32TNGT.js +198 -0
  51. package/Build/Workers/chunk-FOMYIEIB.js +476 -0
  52. package/Build/Workers/chunk-FWYDLSVQ.js +97 -0
  53. package/Build/Workers/chunk-HGZR6CZF.js +1067 -0
  54. package/Build/Workers/chunk-HIXHDABG.js +288 -0
  55. package/Build/Workers/chunk-HMCCZZWE.js +97 -0
  56. package/Build/Workers/chunk-HW54WHGM.js +2719 -0
  57. package/Build/Workers/chunk-IHYAI7GF.js +973 -0
  58. package/Build/Workers/chunk-INLQ7LVK.js +837 -0
  59. package/Build/Workers/chunk-IQMESTCB.js +124 -0
  60. package/Build/Workers/chunk-J4PISUNT.js +2342 -0
  61. package/Build/Workers/chunk-JSWU557I.js +693 -0
  62. package/Build/Workers/chunk-KHONDSQ7.js +693 -0
  63. package/Build/Workers/chunk-KLUL2SOE.js +352 -0
  64. package/Build/Workers/chunk-KMBLKQCC.js +1992 -0
  65. package/Build/Workers/chunk-KOTWWQN7.js +171 -0
  66. package/Build/Workers/chunk-KWV6ZTF4.js +163 -0
  67. package/Build/Workers/chunk-LSEFPQHG.js +476 -0
  68. package/Build/Workers/chunk-M66X4O24.js +44 -0
  69. package/Build/Workers/chunk-M6IXKBC7.js +1992 -0
  70. package/Build/Workers/chunk-MFUC3D5C.js +162 -0
  71. package/Build/Workers/chunk-MRMNELAH.js +82 -0
  72. package/Build/Workers/chunk-N3NUA5H2.js +3792 -0
  73. package/Build/Workers/chunk-NFB2NXJN.js +138 -0
  74. package/Build/Workers/chunk-NQAXBK4K.js +789 -0
  75. package/Build/Workers/chunk-NUGQWV6S.js +352 -0
  76. package/Build/Workers/chunk-O7S7WL7K.js +278 -0
  77. package/Build/Workers/chunk-ODZYB26X.js +1287 -0
  78. package/Build/Workers/chunk-OEHJY463.js +3201 -0
  79. package/Build/Workers/chunk-OMMRNMXF.js +44 -0
  80. package/Build/Workers/chunk-OZ3CQDO3.js +138 -0
  81. package/Build/Workers/chunk-PNXBG64I.js +219 -0
  82. package/Build/Workers/chunk-PYR35GK4.js +973 -0
  83. package/Build/Workers/chunk-Q4CXGW74.js +57 -0
  84. package/Build/Workers/chunk-QGISLKCW.js +147 -0
  85. package/Build/Workers/chunk-QQHVOJW6.js +497 -0
  86. package/Build/Workers/chunk-QWCMMRJW.js +58 -0
  87. package/Build/Workers/chunk-RDEZCHF4.js +398 -0
  88. package/Build/Workers/chunk-SJTE7FVN.js +778 -0
  89. package/Build/Workers/chunk-SM5T67LR.js +162 -0
  90. package/Build/Workers/chunk-T27NNXEU.js +58 -0
  91. package/Build/Workers/chunk-T4J5BWUO.js +511 -0
  92. package/Build/Workers/chunk-T6JS4BRN.js +140 -0
  93. package/Build/Workers/chunk-UH6DUQBW.js +140 -0
  94. package/Build/Workers/chunk-UJAH6XKF.js +73 -0
  95. package/Build/Workers/chunk-UKSTJ2PH.js +454 -0
  96. package/Build/Workers/chunk-UQCDCCZ7.js +368 -0
  97. package/Build/Workers/chunk-UXIFNEA3.js +1287 -0
  98. package/Build/Workers/chunk-UXJ6J5L7.js +56 -0
  99. package/Build/Workers/chunk-V4VUAZXI.js +1800 -0
  100. package/Build/Workers/chunk-VQH2YXO2.js +497 -0
  101. package/Build/Workers/chunk-VXKCLSE4.js +241 -0
  102. package/Build/Workers/chunk-W3U6YBEI.js +280 -0
  103. package/Build/Workers/chunk-W75ZVFKP.js +778 -0
  104. package/Build/Workers/chunk-WCDFJYFB.js +1344 -0
  105. package/Build/Workers/chunk-WME5M6W3.js +630 -0
  106. package/Build/Workers/chunk-XDQBQB64.js +1067 -0
  107. package/Build/Workers/chunk-Y6HOIWE5.js +959 -0
  108. package/Build/Workers/chunk-YEMC2ZOR.js +147 -0
  109. package/Build/Workers/chunk-YWNF3TPE.js +682 -0
  110. package/Build/Workers/chunk-Z55VGWJP.js +280 -0
  111. package/Build/Workers/chunk-Z5YWP24C.js +124 -0
  112. package/Build/Workers/chunk-ZHXCWUJB.js +387 -0
  113. package/Build/Workers/chunk-ZIMPUF2I.js +102 -0
  114. package/Build/Workers/chunk-ZKDWYQKC.js +3201 -0
  115. package/Build/Workers/combineGeometry.js +24 -22
  116. package/Build/Workers/createBoxGeometry.js +18 -16
  117. package/Build/Workers/createBoxOutlineGeometry.js +23 -25
  118. package/Build/Workers/createCircleGeometry.js +29 -27
  119. package/Build/Workers/createCircleOutlineGeometry.js +22 -20
  120. package/Build/Workers/createCoplanarPolygonGeometry.js +43 -43
  121. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +37 -35
  122. package/Build/Workers/createCorridorGeometry.js +46 -49
  123. package/Build/Workers/createCorridorOutlineGeometry.js +40 -43
  124. package/Build/Workers/createCylinderGeometry.js +20 -18
  125. package/Build/Workers/createCylinderOutlineGeometry.js +27 -25
  126. package/Build/Workers/createEllipseGeometry.js +28 -25
  127. package/Build/Workers/createEllipseOutlineGeometry.js +21 -18
  128. package/Build/Workers/createEllipsoidGeometry.js +19 -17
  129. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -16
  130. package/Build/Workers/createFrustumGeometry.js +18 -16
  131. package/Build/Workers/createFrustumOutlineGeometry.js +21 -21
  132. package/Build/Workers/createGeometry.js +31 -26
  133. package/Build/Workers/createGroundPolylineGeometry.js +188 -135
  134. package/Build/Workers/createPlaneGeometry.js +22 -21
  135. package/Build/Workers/createPlaneOutlineGeometry.js +15 -13
  136. package/Build/Workers/createPolygonGeometry.js +51 -52
  137. package/Build/Workers/createPolygonOutlineGeometry.js +43 -44
  138. package/Build/Workers/createPolylineGeometry.js +37 -40
  139. package/Build/Workers/createPolylineVolumeGeometry.js +41 -44
  140. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +36 -39
  141. package/Build/Workers/createRectangleGeometry.js +47 -53
  142. package/Build/Workers/createRectangleOutlineGeometry.js +32 -33
  143. package/Build/Workers/createSimplePolylineGeometry.js +33 -34
  144. package/Build/Workers/createSphereGeometry.js +20 -20
  145. package/Build/Workers/createSphereOutlineGeometry.js +19 -19
  146. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  147. package/Build/Workers/createVectorTileClampedPolylines.js +16 -14
  148. package/Build/Workers/createVectorTileGeometries.js +24 -22
  149. package/Build/Workers/createVectorTilePoints.js +15 -13
  150. package/Build/Workers/createVectorTilePolygons.js +24 -21
  151. package/Build/Workers/createVectorTilePolylines.js +16 -14
  152. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
  153. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -27
  154. package/Build/Workers/createVerticesFromHeightmap.js +42 -63
  155. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -280
  156. package/Build/Workers/createWallGeometry.js +35 -36
  157. package/Build/Workers/createWallOutlineGeometry.js +33 -34
  158. package/Build/Workers/decodeDraco.js +10 -11
  159. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  160. package/Build/Workers/decodeI3S.js +16 -20
  161. package/Build/Workers/gaussianSplatSorter.js +4 -4
  162. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  163. package/Build/Workers/incrementallyBuildTerrainPicker.js +20 -12
  164. package/Build/Workers/transcodeKTX2.js +42 -14
  165. package/Build/Workers/transferTypedArrayTest.js +1 -1
  166. package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -21
  167. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
  168. package/Source/Shaders/BillboardCollectionFS.js +85 -81
  169. package/Source/Shaders/BillboardCollectionVS.js +60 -118
  170. package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
  171. package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
  172. package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
  173. package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
  174. package/Source/Shaders/Builtin/Constants/passCesium3DTileEdgesDirect.js +11 -0
  175. package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
  176. package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
  177. package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
  178. package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
  179. package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
  180. package/Source/Shaders/Builtin/CzmBuiltins.js +12 -0
  181. package/Source/Shaders/Builtin/Functions/columbusViewMorph.js +8 -1
  182. package/Source/Shaders/Builtin/Functions/computeTextureTransform.js +25 -0
  183. package/Source/Shaders/Builtin/Functions/decodeRGB8.js +24 -0
  184. package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +2 -1
  185. package/Source/Shaders/Builtin/Functions/unpackTexture.js +37 -0
  186. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +0 -1
  187. package/Source/Shaders/EllipsoidVS.js +4 -4
  188. package/Source/Shaders/FXAA3_11.js +2 -0
  189. package/Source/Shaders/GlobeFS.js +22 -0
  190. package/Source/Shaders/GlobeVS.js +3 -2
  191. package/Source/Shaders/Model/MaterialStageFS.js +50 -20
  192. package/Source/Shaders/Model/MetadataStageFS.js +2 -1
  193. package/Source/Shaders/Model/MetadataStageVS.js +2 -1
  194. package/Source/Shaders/Model/ModelFS.js +32 -2
  195. package/Source/Shaders/Model/ModelVS.js +15 -1
  196. package/Source/Shaders/Model/PointCloudStylingStageVS.js +2 -1
  197. package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +0 -1
  198. package/Source/Shaders/PointPrimitiveCollectionVS.js +8 -39
  199. package/Source/Shaders/PolygonSignedDistanceFS.js +64 -33
  200. package/Source/Shaders/PolylineCommon.js +1 -1
  201. package/Source/Shaders/ShadowVolumeAppearanceFS.js +7 -15
  202. package/Source/Shaders/SkyAtmosphereVS.js +2 -1
  203. package/Source/Shaders/Voxels/IntersectBox.js +20 -33
  204. package/Source/Shaders/Voxels/IntersectCylinder.js +28 -32
  205. package/Source/Shaders/Voxels/IntersectDepth.js +10 -6
  206. package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -20
  207. package/Source/Shaders/Voxels/IntersectLongitude.js +21 -9
  208. package/Source/Shaders/Voxels/Intersection.js +3 -5
  209. package/Source/Shaders/Voxels/IntersectionUtils.js +2 -1
  210. package/Source/Shaders/Voxels/Megatexture.js +15 -83
  211. package/Source/Shaders/Voxels/Octree.js +53 -61
  212. package/Source/Shaders/Voxels/VoxelFS.js +67 -52
  213. package/Source/Shaders/Voxels/VoxelUtils.js +0 -19
  214. package/index.js +346 -261
  215. package/package.json +1 -1
  216. package/Source/Shaders/Voxels/IntersectClippingPlanes.js +0 -80
  217. package/Source/Shaders/Voxels/convertUvToBox.js +0 -46
  218. package/Source/Shaders/Voxels/convertUvToCylinder.js +0 -101
  219. package/Source/Shaders/Voxels/convertUvToEllipsoid.js +0 -141
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.42
4
+ * Version 0.1.4
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,190 +25,243 @@
25
25
 
26
26
  import {
27
27
  WebMercatorProjection_default
28
- } from "./chunk-R2LIFXV3.js";
28
+ } from "./chunk-QGISLKCW.js";
29
29
  import {
30
30
  ArcType_default
31
- } from "./chunk-ZMDUYETO.js";
31
+ } from "./chunk-UXJ6J5L7.js";
32
32
  import {
33
33
  EncodedCartesian3_default
34
- } from "./chunk-L4IR5U4G.js";
34
+ } from "./chunk-5ISZ6NJD.js";
35
35
  import {
36
36
  EllipsoidGeodesic_default
37
- } from "./chunk-2JVMMMWT.js";
37
+ } from "./chunk-KLUL2SOE.js";
38
38
  import {
39
39
  arrayRemoveDuplicates_default
40
- } from "./chunk-PHWZFJR5.js";
40
+ } from "./chunk-FWYDLSVQ.js";
41
41
  import {
42
42
  EllipsoidRhumbLine_default
43
- } from "./chunk-27NG6PQR.js";
43
+ } from "./chunk-BVMRWGOK.js";
44
44
  import {
45
45
  IntersectionTests_default
46
- } from "./chunk-R5PZXG56.js";
46
+ } from "./chunk-BE2N56VZ.js";
47
47
  import {
48
48
  Plane_default
49
- } from "./chunk-7B5XGQRN.js";
49
+ } from "./chunk-KOTWWQN7.js";
50
50
  import {
51
51
  GeometryAttribute_default,
52
52
  Geometry_default
53
- } from "./chunk-NXWEFAZJ.js";
53
+ } from "./chunk-7AMRE57Q.js";
54
54
  import {
55
55
  BoundingSphere_default,
56
56
  GeographicProjection_default
57
- } from "./chunk-XUCXZZE5.js";
57
+ } from "./chunk-ODZYB26X.js";
58
+ import "./chunk-ANOA7E7F.js";
58
59
  import {
59
60
  Quaternion_default,
60
61
  Rectangle_default,
61
62
  Resource_default,
62
63
  buildModuleUrl_default
63
- } from "./chunk-R4W6IRJZ.js";
64
+ } from "./chunk-BR3BPM64.js";
65
+ import "./chunk-OEHJY463.js";
64
66
  import {
65
67
  ComponentDatatype_default
66
- } from "./chunk-YTNCIBPQ.js";
68
+ } from "./chunk-C5BO2JCG.js";
69
+ import "./chunk-D3QIW4DH.js";
70
+ import "./chunk-T27NNXEU.js";
67
71
  import {
68
72
  Cartesian2_default,
69
- Cartesian3_default,
70
73
  Cartographic_default,
71
- Ellipsoid_default,
74
+ Ellipsoid_default
75
+ } from "./chunk-M6IXKBC7.js";
76
+ import {
77
+ Cartesian3_default,
78
+ Frozen_default,
72
79
  Matrix3_default
73
- } from "./chunk-ZW52HXFN.js";
80
+ } from "./chunk-J4PISUNT.js";
74
81
  import {
75
82
  Math_default
76
- } from "./chunk-HSJSUPQV.js";
77
- import "./chunk-RZQLZIUI.js";
78
- import "./chunk-I73Q3AG7.js";
79
- import {
80
- defaultValue_default
81
- } from "./chunk-ATLWOZFF.js";
83
+ } from "./chunk-VQH2YXO2.js";
82
84
  import {
83
85
  Check_default,
84
86
  DeveloperError_default
85
- } from "./chunk-PN3GIZ5Q.js";
87
+ } from "./chunk-KWV6ZTF4.js";
86
88
  import {
87
89
  defined_default
88
- } from "./chunk-JKLMRPKK.js";
90
+ } from "./chunk-MRMNELAH.js";
89
91
 
90
92
  // packages/engine/Source/Core/GeographicTilingScheme.js
91
- function GeographicTilingScheme(options) {
92
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
93
- this._ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.default);
94
- this._rectangle = defaultValue_default(options.rectangle, Rectangle_default.MAX_VALUE);
95
- this._projection = new GeographicProjection_default(this._ellipsoid);
96
- this._numberOfLevelZeroTilesX = defaultValue_default(
97
- options.numberOfLevelZeroTilesX,
98
- 2
99
- );
100
- this._numberOfLevelZeroTilesY = defaultValue_default(
101
- options.numberOfLevelZeroTilesY,
102
- 1
103
- );
104
- }
105
- Object.defineProperties(GeographicTilingScheme.prototype, {
93
+ var GeographicTilingScheme = class {
94
+ /**
95
+ * @param {object} [options] Object with the following properties:
96
+ * @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid whose surface is being tiled. Defaults to
97
+ * the default ellipsoid.
98
+ * @param {Rectangle} [options.rectangle=Rectangle.MAX_VALUE] The rectangle, in radians, covered by the tiling scheme.
99
+ * @param {number} [options.numberOfLevelZeroTilesX=2] The number of tiles in the X direction at level zero of
100
+ * the tile tree.
101
+ * @param {number} [options.numberOfLevelZeroTilesY=1] The number of tiles in the Y direction at level zero of
102
+ * the tile tree.
103
+ */
104
+ constructor(options) {
105
+ options = options ?? Frozen_default.EMPTY_OBJECT;
106
+ this._ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
107
+ this._rectangle = options.rectangle ?? Rectangle_default.MAX_VALUE;
108
+ this._projection = new GeographicProjection_default(this._ellipsoid);
109
+ this._numberOfLevelZeroTilesX = options.numberOfLevelZeroTilesX ?? 2;
110
+ this._numberOfLevelZeroTilesY = options.numberOfLevelZeroTilesY ?? 1;
111
+ }
106
112
  /**
107
113
  * Gets the ellipsoid that is tiled by this tiling scheme.
108
- * @memberof GeographicTilingScheme.prototype
109
114
  * @type {Ellipsoid}
110
115
  */
111
- ellipsoid: {
112
- get: function() {
113
- return this._ellipsoid;
114
- }
115
- },
116
+ get ellipsoid() {
117
+ return this._ellipsoid;
118
+ }
116
119
  /**
117
120
  * Gets the rectangle, in radians, covered by this tiling scheme.
118
- * @memberof GeographicTilingScheme.prototype
119
121
  * @type {Rectangle}
120
122
  */
121
- rectangle: {
122
- get: function() {
123
- return this._rectangle;
124
- }
125
- },
123
+ get rectangle() {
124
+ return this._rectangle;
125
+ }
126
126
  /**
127
127
  * Gets the map projection used by this tiling scheme.
128
- * @memberof GeographicTilingScheme.prototype
129
128
  * @type {MapProjection}
130
129
  */
131
- projection: {
132
- get: function() {
133
- return this._projection;
134
- }
135
- }
136
- });
137
- GeographicTilingScheme.prototype.getNumberOfXTilesAtLevel = function(level) {
138
- return this._numberOfLevelZeroTilesX << level;
139
- };
140
- GeographicTilingScheme.prototype.getNumberOfYTilesAtLevel = function(level) {
141
- return this._numberOfLevelZeroTilesY << level;
142
- };
143
- GeographicTilingScheme.prototype.rectangleToNativeRectangle = function(rectangle, result) {
144
- Check_default.defined("rectangle", rectangle);
145
- const west = Math_default.toDegrees(rectangle.west);
146
- const south = Math_default.toDegrees(rectangle.south);
147
- const east = Math_default.toDegrees(rectangle.east);
148
- const north = Math_default.toDegrees(rectangle.north);
149
- if (!defined_default(result)) {
150
- return new Rectangle_default(west, south, east, north);
130
+ get projection() {
131
+ return this._projection;
151
132
  }
152
- result.west = west;
153
- result.south = south;
154
- result.east = east;
155
- result.north = north;
156
- return result;
157
- };
158
- GeographicTilingScheme.prototype.tileXYToNativeRectangle = function(x, y, level, result) {
159
- const rectangleRadians = this.tileXYToRectangle(x, y, level, result);
160
- rectangleRadians.west = Math_default.toDegrees(rectangleRadians.west);
161
- rectangleRadians.south = Math_default.toDegrees(rectangleRadians.south);
162
- rectangleRadians.east = Math_default.toDegrees(rectangleRadians.east);
163
- rectangleRadians.north = Math_default.toDegrees(rectangleRadians.north);
164
- return rectangleRadians;
165
- };
166
- GeographicTilingScheme.prototype.tileXYToRectangle = function(x, y, level, result) {
167
- const rectangle = this._rectangle;
168
- const xTiles = this.getNumberOfXTilesAtLevel(level);
169
- const yTiles = this.getNumberOfYTilesAtLevel(level);
170
- const xTileWidth = rectangle.width / xTiles;
171
- const west = x * xTileWidth + rectangle.west;
172
- const east = (x + 1) * xTileWidth + rectangle.west;
173
- const yTileHeight = rectangle.height / yTiles;
174
- const north = rectangle.north - y * yTileHeight;
175
- const south = rectangle.north - (y + 1) * yTileHeight;
176
- if (!defined_default(result)) {
177
- result = new Rectangle_default(west, south, east, north);
133
+ /**
134
+ * Gets the total number of tiles in the X direction at a specified level-of-detail.
135
+ *
136
+ * @param {number} level The level-of-detail.
137
+ * @returns {number} The number of tiles in the X direction at the given level.
138
+ */
139
+ getNumberOfXTilesAtLevel(level) {
140
+ return this._numberOfLevelZeroTilesX << level;
178
141
  }
179
- result.west = west;
180
- result.south = south;
181
- result.east = east;
182
- result.north = north;
183
- return result;
184
- };
185
- GeographicTilingScheme.prototype.positionToTileXY = function(position, level, result) {
186
- const rectangle = this._rectangle;
187
- if (!Rectangle_default.contains(rectangle, position)) {
188
- return void 0;
142
+ /**
143
+ * Gets the total number of tiles in the Y direction at a specified level-of-detail.
144
+ *
145
+ * @param {number} level The level-of-detail.
146
+ * @returns {number} The number of tiles in the Y direction at the given level.
147
+ */
148
+ getNumberOfYTilesAtLevel(level) {
149
+ return this._numberOfLevelZeroTilesY << level;
189
150
  }
190
- const xTiles = this.getNumberOfXTilesAtLevel(level);
191
- const yTiles = this.getNumberOfYTilesAtLevel(level);
192
- const xTileWidth = rectangle.width / xTiles;
193
- const yTileHeight = rectangle.height / yTiles;
194
- let longitude = position.longitude;
195
- if (rectangle.east < rectangle.west) {
196
- longitude += Math_default.TWO_PI;
151
+ /**
152
+ * Transforms a rectangle specified in geodetic radians to the native coordinate system
153
+ * of this tiling scheme.
154
+ *
155
+ * @param {Rectangle} rectangle The rectangle to transform.
156
+ * @param {Rectangle} [result] The instance to which to copy the result, or undefined if a new instance
157
+ * should be created.
158
+ * @returns {Rectangle} The specified 'result', or a new object containing the native rectangle if 'result'
159
+ * is undefined.
160
+ */
161
+ rectangleToNativeRectangle(rectangle, result) {
162
+ Check_default.defined("rectangle", rectangle);
163
+ const west = Math_default.toDegrees(rectangle.west);
164
+ const south = Math_default.toDegrees(rectangle.south);
165
+ const east = Math_default.toDegrees(rectangle.east);
166
+ const north = Math_default.toDegrees(rectangle.north);
167
+ if (!defined_default(result)) {
168
+ return new Rectangle_default(west, south, east, north);
169
+ }
170
+ result.west = west;
171
+ result.south = south;
172
+ result.east = east;
173
+ result.north = north;
174
+ return result;
197
175
  }
198
- let xTileCoordinate = (longitude - rectangle.west) / xTileWidth | 0;
199
- if (xTileCoordinate >= xTiles) {
200
- xTileCoordinate = xTiles - 1;
176
+ /**
177
+ * Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates
178
+ * of the tiling scheme.
179
+ *
180
+ * @param {number} x The integer x coordinate of the tile.
181
+ * @param {number} y The integer y coordinate of the tile.
182
+ * @param {number} level The tile level-of-detail. Zero is the least detailed.
183
+ * @param {Rectangle} [result] The instance to which to copy the result, or undefined if a new instance
184
+ * should be created.
185
+ * @returns {Rectangle} The specified 'result', or a new object containing the rectangle
186
+ * if 'result' is undefined.
187
+ */
188
+ tileXYToNativeRectangle(x, y, level, result) {
189
+ const rectangleRadians = this.tileXYToRectangle(x, y, level, result);
190
+ rectangleRadians.west = Math_default.toDegrees(rectangleRadians.west);
191
+ rectangleRadians.south = Math_default.toDegrees(rectangleRadians.south);
192
+ rectangleRadians.east = Math_default.toDegrees(rectangleRadians.east);
193
+ rectangleRadians.north = Math_default.toDegrees(rectangleRadians.north);
194
+ return rectangleRadians;
201
195
  }
202
- let yTileCoordinate = (rectangle.north - position.latitude) / yTileHeight | 0;
203
- if (yTileCoordinate >= yTiles) {
204
- yTileCoordinate = yTiles - 1;
196
+ /**
197
+ * Converts tile x, y coordinates and level to a cartographic rectangle in radians.
198
+ *
199
+ * @param {number} x The integer x coordinate of the tile.
200
+ * @param {number} y The integer y coordinate of the tile.
201
+ * @param {number} level The tile level-of-detail. Zero is the least detailed.
202
+ * @param {Rectangle} [result] The instance to which to copy the result, or undefined if a new instance
203
+ * should be created.
204
+ * @returns {Rectangle} The specified 'result', or a new object containing the rectangle
205
+ * if 'result' is undefined.
206
+ */
207
+ tileXYToRectangle(x, y, level, result) {
208
+ const rectangle = this._rectangle;
209
+ const xTiles = this.getNumberOfXTilesAtLevel(level);
210
+ const yTiles = this.getNumberOfYTilesAtLevel(level);
211
+ const xTileWidth = rectangle.width / xTiles;
212
+ const west = x * xTileWidth + rectangle.west;
213
+ const east = (x + 1) * xTileWidth + rectangle.west;
214
+ const yTileHeight = rectangle.height / yTiles;
215
+ const north = rectangle.north - y * yTileHeight;
216
+ const south = rectangle.north - (y + 1) * yTileHeight;
217
+ if (!defined_default(result)) {
218
+ result = new Rectangle_default(west, south, east, north);
219
+ }
220
+ result.west = west;
221
+ result.south = south;
222
+ result.east = east;
223
+ result.north = north;
224
+ return result;
205
225
  }
206
- if (!defined_default(result)) {
207
- return new Cartesian2_default(xTileCoordinate, yTileCoordinate);
226
+ /**
227
+ * Calculates the tile x, y coordinates of the tile containing
228
+ * a given cartographic position.
229
+ *
230
+ * @param {Cartographic} position The position.
231
+ * @param {number} level The tile level-of-detail. Zero is the least detailed.
232
+ * @param {Cartesian2} [result] The instance to which to copy the result, or undefined if a new instance
233
+ * should be created.
234
+ * @returns {Cartesian2} The specified 'result', or a new object containing the tile x, y coordinates
235
+ * if 'result' is undefined.
236
+ */
237
+ positionToTileXY(position, level, result) {
238
+ const rectangle = this._rectangle;
239
+ if (!Rectangle_default.contains(rectangle, position)) {
240
+ return void 0;
241
+ }
242
+ const xTiles = this.getNumberOfXTilesAtLevel(level);
243
+ const yTiles = this.getNumberOfYTilesAtLevel(level);
244
+ const xTileWidth = rectangle.width / xTiles;
245
+ const yTileHeight = rectangle.height / yTiles;
246
+ let longitude = position.longitude;
247
+ if (rectangle.east < rectangle.west) {
248
+ longitude += Math_default.TWO_PI;
249
+ }
250
+ let xTileCoordinate = (longitude - rectangle.west) / xTileWidth | 0;
251
+ if (xTileCoordinate >= xTiles) {
252
+ xTileCoordinate = xTiles - 1;
253
+ }
254
+ let yTileCoordinate = (rectangle.north - position.latitude) / yTileHeight | 0;
255
+ if (yTileCoordinate >= yTiles) {
256
+ yTileCoordinate = yTiles - 1;
257
+ }
258
+ if (!defined_default(result)) {
259
+ return new Cartesian2_default(xTileCoordinate, yTileCoordinate);
260
+ }
261
+ result.x = xTileCoordinate;
262
+ result.y = yTileCoordinate;
263
+ return result;
208
264
  }
209
- result.x = xTileCoordinate;
210
- result.y = yTileCoordinate;
211
- return result;
212
265
  };
213
266
  var GeographicTilingScheme_default = GeographicTilingScheme;
214
267
 
@@ -248,7 +301,7 @@ ApproximateTerrainHeights.getMinimumMaximumHeights = function(rectangle, ellipso
248
301
  "You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function"
249
302
  );
250
303
  }
251
- ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.default);
304
+ ellipsoid = ellipsoid ?? Ellipsoid_default.default;
252
305
  const xyLevel = getTileXYLevel(rectangle);
253
306
  let minTerrainHeight = ApproximateTerrainHeights._defaultMinTerrainHeight;
254
307
  let maxTerrainHeight = ApproximateTerrainHeights._defaultMaxTerrainHeight;
@@ -302,7 +355,7 @@ ApproximateTerrainHeights.getBoundingSphere = function(rectangle, ellipsoid) {
302
355
  "You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function"
303
356
  );
304
357
  }
305
- ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.default);
358
+ ellipsoid = ellipsoid ?? Ellipsoid_default.default;
306
359
  const xyLevel = getTileXYLevel(rectangle);
307
360
  let maxTerrainHeight = ApproximateTerrainHeights._defaultMaxTerrainHeight;
308
361
  if (defined_default(xyLevel)) {
@@ -407,7 +460,7 @@ var MITER_BREAK_LARGE = Math.cos(Math_default.toRadians(150));
407
460
  var WALL_INITIAL_MIN_HEIGHT = 0;
408
461
  var WALL_INITIAL_MAX_HEIGHT = 1e3;
409
462
  function GroundPolylineGeometry(options) {
410
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
463
+ options = options ?? Frozen_default.EMPTY_OBJECT;
411
464
  const positions = options.positions;
412
465
  if (!defined_default(positions) || positions.length < 2) {
413
466
  throw new DeveloperError_default("At least two positions are required.");
@@ -417,11 +470,11 @@ function GroundPolylineGeometry(options) {
417
470
  "Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB."
418
471
  );
419
472
  }
420
- this.width = defaultValue_default(options.width, 1);
473
+ this.width = options.width ?? 1;
421
474
  this._positions = positions;
422
- this.granularity = defaultValue_default(options.granularity, 9999);
423
- this.loop = defaultValue_default(options.loop, false);
424
- this.arcType = defaultValue_default(options.arcType, ArcType_default.GEODESIC);
475
+ this.granularity = options.granularity ?? 9999;
476
+ this.loop = options.loop ?? false;
477
+ this.arcType = options.arcType ?? ArcType_default.GEODESIC;
425
478
  this._ellipsoid = Ellipsoid_default.default;
426
479
  this._projectionIndex = 0;
427
480
  this._workerName = "createGroundPolylineGeometry";
@@ -533,7 +586,7 @@ function getPosition(ellipsoid, cartographic, height, result) {
533
586
  GroundPolylineGeometry.pack = function(value, array, startingIndex) {
534
587
  Check_default.typeOf.object("value", value);
535
588
  Check_default.defined("array", array);
536
- let index = defaultValue_default(startingIndex, 0);
589
+ let index = startingIndex ?? 0;
537
590
  const positions = value._positions;
538
591
  const positionsLength = positions.length;
539
592
  array[index++] = positionsLength;
@@ -553,7 +606,7 @@ GroundPolylineGeometry.pack = function(value, array, startingIndex) {
553
606
  };
554
607
  GroundPolylineGeometry.unpack = function(array, startingIndex, result) {
555
608
  Check_default.defined("array", array);
556
- let index = defaultValue_default(startingIndex, 0);
609
+ let index = startingIndex ?? 0;
557
610
  const positionsLength = array[index++];
558
611
  const positions = new Array(positionsLength);
559
612
  for (let i = 0; i < positionsLength; i++) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.42
4
+ * Version 0.1.4
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,42 +25,43 @@
25
25
 
26
26
  import {
27
27
  VertexFormat_default
28
- } from "./chunk-EYSYQ2R6.js";
28
+ } from "./chunk-OZ3CQDO3.js";
29
29
  import {
30
30
  GeometryAttributes_default
31
- } from "./chunk-MG4EVQH2.js";
31
+ } from "./chunk-OMMRNMXF.js";
32
32
  import {
33
33
  GeometryAttribute_default,
34
34
  Geometry_default,
35
35
  PrimitiveType_default
36
- } from "./chunk-NXWEFAZJ.js";
36
+ } from "./chunk-7AMRE57Q.js";
37
37
  import {
38
38
  BoundingSphere_default
39
- } from "./chunk-XUCXZZE5.js";
40
- import "./chunk-R4W6IRJZ.js";
39
+ } from "./chunk-ODZYB26X.js";
40
+ import "./chunk-ANOA7E7F.js";
41
+ import "./chunk-BR3BPM64.js";
42
+ import "./chunk-OEHJY463.js";
41
43
  import {
42
44
  ComponentDatatype_default
43
- } from "./chunk-YTNCIBPQ.js";
45
+ } from "./chunk-C5BO2JCG.js";
46
+ import "./chunk-D3QIW4DH.js";
47
+ import "./chunk-T27NNXEU.js";
48
+ import "./chunk-M6IXKBC7.js";
44
49
  import {
45
- Cartesian3_default
46
- } from "./chunk-ZW52HXFN.js";
47
- import "./chunk-HSJSUPQV.js";
48
- import "./chunk-RZQLZIUI.js";
49
- import "./chunk-I73Q3AG7.js";
50
- import {
51
- defaultValue_default
52
- } from "./chunk-ATLWOZFF.js";
50
+ Cartesian3_default,
51
+ Frozen_default
52
+ } from "./chunk-J4PISUNT.js";
53
+ import "./chunk-VQH2YXO2.js";
53
54
  import {
54
55
  Check_default
55
- } from "./chunk-PN3GIZ5Q.js";
56
+ } from "./chunk-KWV6ZTF4.js";
56
57
  import {
57
58
  defined_default
58
- } from "./chunk-JKLMRPKK.js";
59
+ } from "./chunk-MRMNELAH.js";
59
60
 
60
61
  // packages/engine/Source/Core/PlaneGeometry.js
61
62
  function PlaneGeometry(options) {
62
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
63
- const vertexFormat = defaultValue_default(options.vertexFormat, VertexFormat_default.DEFAULT);
63
+ options = options ?? Frozen_default.EMPTY_OBJECT;
64
+ const vertexFormat = options.vertexFormat ?? VertexFormat_default.DEFAULT;
64
65
  this._vertexFormat = vertexFormat;
65
66
  this._workerName = "createPlaneGeometry";
66
67
  }
@@ -68,7 +69,7 @@ PlaneGeometry.packedLength = VertexFormat_default.packedLength;
68
69
  PlaneGeometry.pack = function(value, array, startingIndex) {
69
70
  Check_default.typeOf.object("value", value);
70
71
  Check_default.defined("array", array);
71
- startingIndex = defaultValue_default(startingIndex, 0);
72
+ startingIndex = startingIndex ?? 0;
72
73
  VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
73
74
  return array;
74
75
  };
@@ -78,7 +79,7 @@ var scratchOptions = {
78
79
  };
79
80
  PlaneGeometry.unpack = function(array, startingIndex, result) {
80
81
  Check_default.defined("array", array);
81
- startingIndex = defaultValue_default(startingIndex, 0);
82
+ startingIndex = startingIndex ?? 0;
82
83
  const vertexFormat = VertexFormat_default.unpack(
83
84
  array,
84
85
  startingIndex,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.42
4
+ * Version 0.1.4
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,32 +25,34 @@
25
25
 
26
26
  import {
27
27
  GeometryAttributes_default
28
- } from "./chunk-MG4EVQH2.js";
28
+ } from "./chunk-OMMRNMXF.js";
29
29
  import {
30
30
  GeometryAttribute_default,
31
31
  Geometry_default,
32
32
  PrimitiveType_default
33
- } from "./chunk-NXWEFAZJ.js";
33
+ } from "./chunk-7AMRE57Q.js";
34
34
  import {
35
35
  BoundingSphere_default
36
- } from "./chunk-XUCXZZE5.js";
37
- import "./chunk-R4W6IRJZ.js";
36
+ } from "./chunk-ODZYB26X.js";
37
+ import "./chunk-ANOA7E7F.js";
38
+ import "./chunk-BR3BPM64.js";
39
+ import "./chunk-OEHJY463.js";
38
40
  import {
39
41
  ComponentDatatype_default
40
- } from "./chunk-YTNCIBPQ.js";
42
+ } from "./chunk-C5BO2JCG.js";
43
+ import "./chunk-D3QIW4DH.js";
44
+ import "./chunk-T27NNXEU.js";
45
+ import "./chunk-M6IXKBC7.js";
41
46
  import {
42
47
  Cartesian3_default
43
- } from "./chunk-ZW52HXFN.js";
44
- import "./chunk-HSJSUPQV.js";
45
- import "./chunk-RZQLZIUI.js";
46
- import "./chunk-I73Q3AG7.js";
47
- import "./chunk-ATLWOZFF.js";
48
+ } from "./chunk-J4PISUNT.js";
49
+ import "./chunk-VQH2YXO2.js";
48
50
  import {
49
51
  Check_default
50
- } from "./chunk-PN3GIZ5Q.js";
52
+ } from "./chunk-KWV6ZTF4.js";
51
53
  import {
52
54
  defined_default
53
- } from "./chunk-JKLMRPKK.js";
55
+ } from "./chunk-MRMNELAH.js";
54
56
 
55
57
  // packages/engine/Source/Core/PlaneOutlineGeometry.js
56
58
  function PlaneOutlineGeometry() {