@gmgis/gm-sdk 1.12.5 → 2.0.2

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 (159) hide show
  1. package/dist/dist/index.js +1848 -0
  2. package/dist/gm.min.js +16983 -16483
  3. package/dist/index.js +1436 -1434
  4. package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -2
  5. package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -2
  6. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
  7. package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -8337
  8. package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
  9. package/dist/resources/Workers/chunk-35SHYARM.js +26 -0
  10. package/dist/resources/Workers/chunk-37F5JSTI.js +26 -0
  11. package/dist/resources/Workers/chunk-3SSKC3VN.js +26 -0
  12. package/dist/resources/Workers/chunk-3W4GT7KQ.js +26 -0
  13. package/dist/resources/Workers/chunk-4IW2T6GF.js +26 -0
  14. package/dist/resources/Workers/chunk-5YEWO3HT.js +26 -0
  15. package/dist/resources/Workers/chunk-64RSHJUE.js +28 -0
  16. package/dist/resources/Workers/chunk-77IHZJJ3.js +26 -0
  17. package/dist/resources/Workers/chunk-7HTKERZY.js +26 -0
  18. package/dist/resources/Workers/{chunk-I2ITFFPX.js → chunk-A56XVLQR.js} +2 -13
  19. package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
  20. package/dist/resources/Workers/{chunk-PRGYLLJT.js → chunk-ARG42DC4.js} +2 -31
  21. package/dist/resources/Workers/chunk-AU7IKHOH.js +26 -0
  22. package/dist/resources/Workers/chunk-B4AA3ARO.js +26 -0
  23. package/dist/resources/Workers/chunk-CNCV5UL7.js +26 -0
  24. package/dist/resources/Workers/chunk-CYCB63OH.js +26 -0
  25. package/dist/resources/Workers/{chunk-DI5NGJUP.js → chunk-D6AA5QVT.js} +2 -20
  26. package/dist/resources/Workers/chunk-D6C66QON.js +26 -0
  27. package/dist/resources/Workers/chunk-DEPHB2WM.js +26 -0
  28. package/dist/resources/Workers/chunk-DMEY62ID.js +26 -0
  29. package/dist/resources/Workers/chunk-DQQ63PYM.js +26 -0
  30. package/dist/resources/Workers/chunk-ED5JPB3S.js +27 -0
  31. package/dist/resources/Workers/chunk-EZUYS2JF.js +26 -0
  32. package/dist/resources/Workers/chunk-FEVXJ54I.js +26 -0
  33. package/dist/resources/Workers/chunk-G5AGHVVC.js +26 -0
  34. package/dist/resources/Workers/{chunk-7JO7GPJN.js → chunk-GBYLG25F.js} +2 -15
  35. package/dist/resources/Workers/chunk-GILIDQNQ.js +26 -0
  36. package/dist/resources/Workers/chunk-HMIYSTF6.js +26 -0
  37. package/dist/resources/Workers/chunk-HTFSEEMT.js +26 -0
  38. package/dist/resources/Workers/chunk-HWXX4CWK.js +26 -0
  39. package/dist/resources/Workers/chunk-IYTZ52EY.js +26 -0
  40. package/dist/resources/Workers/chunk-J6UP6FLE.js +26 -0
  41. package/dist/resources/Workers/chunk-LEYMRMBK.js +27 -0
  42. package/dist/resources/Workers/chunk-M3MGYQSL.js +26 -0
  43. package/dist/resources/Workers/chunk-N4VJKXZS.js +26 -0
  44. package/dist/resources/Workers/chunk-NB3ML6JO.js +26 -0
  45. package/dist/resources/Workers/chunk-OFUUQVMR.js +26 -0
  46. package/dist/resources/Workers/chunk-OSW76XDF.js +26 -0
  47. package/dist/resources/Workers/chunk-PSPPBZWI.js +66 -0
  48. package/dist/resources/Workers/chunk-QN3VOORQ.js +26 -0
  49. package/dist/resources/Workers/chunk-QOUAJ6TL.js +26 -0
  50. package/dist/resources/Workers/chunk-RCV6KWXS.js +26 -0
  51. package/dist/resources/Workers/chunk-TCGIRNHN.js +26 -0
  52. package/dist/resources/Workers/chunk-U4IEOH5K.js +26 -0
  53. package/dist/resources/Workers/chunk-UP6I5URU.js +26 -0
  54. package/dist/resources/Workers/chunk-VTAIKJXX.js +26 -0
  55. package/dist/resources/Workers/chunk-VTBDSFTG.js +26 -0
  56. package/dist/resources/Workers/chunk-VW6VD53G.js +26 -0
  57. package/dist/resources/Workers/chunk-WGGIH7QW.js +26 -0
  58. package/dist/resources/Workers/chunk-WWA5PL4H.js +26 -0
  59. package/dist/resources/Workers/{chunk-6CHGCNMW.js → chunk-WZDE3RYP.js} +4 -34
  60. package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
  61. package/dist/resources/Workers/combineGeometry.js +2 -40
  62. package/dist/resources/Workers/createBoxGeometry.js +2 -32
  63. package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -209
  64. package/dist/resources/Workers/createCircleGeometry.js +2 -175
  65. package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -121
  66. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -481
  67. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -199
  68. package/dist/resources/Workers/createCorridorGeometry.js +2 -1237
  69. package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -542
  70. package/dist/resources/Workers/createCylinderGeometry.js +2 -34
  71. package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -205
  72. package/dist/resources/Workers/createEllipseGeometry.js +2 -45
  73. package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -38
  74. package/dist/resources/Workers/createEllipsoidGeometry.js +2 -33
  75. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -35
  76. package/dist/resources/Workers/createFrustumGeometry.js +2 -32
  77. package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -210
  78. package/dist/resources/Workers/createGeometry.js +2 -144
  79. package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1582
  80. package/dist/resources/Workers/createPlaneGeometry.js +2 -198
  81. package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -98
  82. package/dist/resources/Workers/createPolygonGeometry.js +2 -1381
  83. package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -509
  84. package/dist/resources/Workers/createPolylineGeometry.js +2 -470
  85. package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -354
  86. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -251
  87. package/dist/resources/Workers/createRectangleGeometry.js +2 -1246
  88. package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -453
  89. package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -374
  90. package/dist/resources/Workers/createSphereGeometry.js +2 -92
  91. package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -92
  92. package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
  93. package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -466
  94. package/dist/resources/Workers/createVectorTileGeometries.js +2 -361
  95. package/dist/resources/Workers/createVectorTilePoints.js +2 -88
  96. package/dist/resources/Workers/createVectorTilePolygons.js +2 -359
  97. package/dist/resources/Workers/createVectorTilePolylines.js +2 -236
  98. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -539
  99. package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2252
  100. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -729
  101. package/dist/resources/Workers/createWallGeometry.js +2 -464
  102. package/dist/resources/Workers/createWallOutlineGeometry.js +2 -312
  103. package/dist/resources/Workers/decodeDraco.js +2 -345
  104. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2642
  105. package/dist/resources/Workers/decodeI3S.js +2 -1319
  106. package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
  107. package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
  108. package/dist/resources/Workers/transcodeKTX2.js +29 -3360
  109. package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
  110. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -793
  111. package/package.json +74 -74
  112. package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
  113. package/dist/resources/Workers/chunk-26GA3JAM.js +0 -139
  114. package/dist/resources/Workers/chunk-27HUZ7SA.js +0 -305
  115. package/dist/resources/Workers/chunk-2ZGOQXYU.js +0 -171
  116. package/dist/resources/Workers/chunk-3Q2L65QU.js +0 -1258
  117. package/dist/resources/Workers/chunk-472HQ3EH.js +0 -100
  118. package/dist/resources/Workers/chunk-5ODQSF26.js +0 -101
  119. package/dist/resources/Workers/chunk-5OOFQLKF.js +0 -634
  120. package/dist/resources/Workers/chunk-5PTXS2GO.js +0 -10390
  121. package/dist/resources/Workers/chunk-76BYBWHP.js +0 -122
  122. package/dist/resources/Workers/chunk-7BMOHCPM.js +0 -390
  123. package/dist/resources/Workers/chunk-7KTQP4VB.js +0 -59
  124. package/dist/resources/Workers/chunk-7O373FFS.js +0 -665
  125. package/dist/resources/Workers/chunk-AD63PIY6.js +0 -163
  126. package/dist/resources/Workers/chunk-BHQJ2NT7.js +0 -353
  127. package/dist/resources/Workers/chunk-C6YYBQXW.js +0 -102
  128. package/dist/resources/Workers/chunk-CKY7HOHV.js +0 -287
  129. package/dist/resources/Workers/chunk-DHYHSFFJ.js +0 -73
  130. package/dist/resources/Workers/chunk-E27BLMDD.js +0 -115
  131. package/dist/resources/Workers/chunk-E63IIM5T.js +0 -75
  132. package/dist/resources/Workers/chunk-E6V6SQZW.js +0 -456
  133. package/dist/resources/Workers/chunk-EJZTDTUH.js +0 -138
  134. package/dist/resources/Workers/chunk-FDOV2LBJ.js +0 -220
  135. package/dist/resources/Workers/chunk-FIGIZHAQ.js +0 -684
  136. package/dist/resources/Workers/chunk-GESF4OXQ.js +0 -1800
  137. package/dist/resources/Workers/chunk-GGZJN2TI.js +0 -2717
  138. package/dist/resources/Workers/chunk-GNBFYG7F.js +0 -1481
  139. package/dist/resources/Workers/chunk-GWCFU2SA.js +0 -300
  140. package/dist/resources/Workers/chunk-IBLIYJZR.js +0 -196
  141. package/dist/resources/Workers/chunk-JW4FOI6M.js +0 -476
  142. package/dist/resources/Workers/chunk-K4GQUNB5.js +0 -262
  143. package/dist/resources/Workers/chunk-M3GMB5OP.js +0 -834
  144. package/dist/resources/Workers/chunk-MXIZJAPH.js +0 -629
  145. package/dist/resources/Workers/chunk-N5KJGGCM.js +0 -1073
  146. package/dist/resources/Workers/chunk-NGPPMXRM.js +0 -435
  147. package/dist/resources/Workers/chunk-O3E4OAOE.js +0 -511
  148. package/dist/resources/Workers/chunk-PGRPDNHG.js +0 -1048
  149. package/dist/resources/Workers/chunk-S6MRMMQU.js +0 -157
  150. package/dist/resources/Workers/chunk-SMDOP47J.js +0 -945
  151. package/dist/resources/Workers/chunk-TGONEMZO.js +0 -421
  152. package/dist/resources/Workers/chunk-TKVT5GQM.js +0 -781
  153. package/dist/resources/Workers/chunk-U72QNFOJ.js +0 -758
  154. package/dist/resources/Workers/chunk-VJZB3WAV.js +0 -963
  155. package/dist/resources/Workers/chunk-VU2MNO7L.js +0 -239
  156. package/dist/resources/Workers/chunk-XY4BATBS.js +0 -500
  157. package/dist/resources/Workers/chunk-YFXQECWV.js +0 -2857
  158. package/dist/resources/Workers/chunk-YSGTGQQO.js +0 -398
  159. package/dist/resources/Workers/chunk-YZ733KKS.js +0 -368
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,211 +23,4 @@
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
25
 
26
- import {
27
- GeometryOffsetAttribute_default
28
- } from "./chunk-I2ITFFPX.js";
29
- import {
30
- GeometryAttributes_default
31
- } from "./chunk-DI5NGJUP.js";
32
- import {
33
- GeometryAttribute_default,
34
- Geometry_default,
35
- PrimitiveType_default
36
- } from "./chunk-GWCFU2SA.js";
37
- import {
38
- BoundingSphere_default
39
- } from "./chunk-VJZB3WAV.js";
40
- import "./chunk-5PTXS2GO.js";
41
- import {
42
- ComponentDatatype_default
43
- } from "./chunk-K4GQUNB5.js";
44
- import {
45
- Cartesian3_default
46
- } from "./chunk-YFXQECWV.js";
47
- import "./chunk-XY4BATBS.js";
48
- import "./chunk-MXIZJAPH.js";
49
- import "./chunk-6CHGCNMW.js";
50
- import {
51
- defaultValue_default
52
- } from "./chunk-7JO7GPJN.js";
53
- import {
54
- Check_default,
55
- DeveloperError_default
56
- } from "./chunk-AD63PIY6.js";
57
- import {
58
- defined_default
59
- } from "./chunk-E63IIM5T.js";
60
-
61
- // packages/engine/Source/Core/BoxOutlineGeometry.js
62
- var diffScratch = new Cartesian3_default();
63
- function BoxOutlineGeometry(options) {
64
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
65
- const min = options.minimum;
66
- const max = options.maximum;
67
- Check_default.typeOf.object("min", min);
68
- Check_default.typeOf.object("max", max);
69
- if (defined_default(options.offsetAttribute) && options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
70
- throw new DeveloperError_default(
71
- "GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry."
72
- );
73
- }
74
- this._min = Cartesian3_default.clone(min);
75
- this._max = Cartesian3_default.clone(max);
76
- this._offsetAttribute = options.offsetAttribute;
77
- this._workerName = "createBoxOutlineGeometry";
78
- }
79
- BoxOutlineGeometry.fromDimensions = function(options) {
80
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
81
- const dimensions = options.dimensions;
82
- Check_default.typeOf.object("dimensions", dimensions);
83
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.x", dimensions.x, 0);
84
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.y", dimensions.y, 0);
85
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.z", dimensions.z, 0);
86
- const corner = Cartesian3_default.multiplyByScalar(dimensions, 0.5, new Cartesian3_default());
87
- return new BoxOutlineGeometry({
88
- minimum: Cartesian3_default.negate(corner, new Cartesian3_default()),
89
- maximum: corner,
90
- offsetAttribute: options.offsetAttribute
91
- });
92
- };
93
- BoxOutlineGeometry.fromAxisAlignedBoundingBox = function(boundingBox) {
94
- Check_default.typeOf.object("boundindBox", boundingBox);
95
- return new BoxOutlineGeometry({
96
- minimum: boundingBox.minimum,
97
- maximum: boundingBox.maximum
98
- });
99
- };
100
- BoxOutlineGeometry.packedLength = 2 * Cartesian3_default.packedLength + 1;
101
- BoxOutlineGeometry.pack = function(value, array, startingIndex) {
102
- Check_default.typeOf.object("value", value);
103
- Check_default.defined("array", array);
104
- startingIndex = defaultValue_default(startingIndex, 0);
105
- Cartesian3_default.pack(value._min, array, startingIndex);
106
- Cartesian3_default.pack(value._max, array, startingIndex + Cartesian3_default.packedLength);
107
- array[startingIndex + Cartesian3_default.packedLength * 2] = defaultValue_default(
108
- value._offsetAttribute,
109
- -1
110
- );
111
- return array;
112
- };
113
- var scratchMin = new Cartesian3_default();
114
- var scratchMax = new Cartesian3_default();
115
- var scratchOptions = {
116
- minimum: scratchMin,
117
- maximum: scratchMax,
118
- offsetAttribute: void 0
119
- };
120
- BoxOutlineGeometry.unpack = function(array, startingIndex, result) {
121
- Check_default.defined("array", array);
122
- startingIndex = defaultValue_default(startingIndex, 0);
123
- const min = Cartesian3_default.unpack(array, startingIndex, scratchMin);
124
- const max = Cartesian3_default.unpack(
125
- array,
126
- startingIndex + Cartesian3_default.packedLength,
127
- scratchMax
128
- );
129
- const offsetAttribute = array[startingIndex + Cartesian3_default.packedLength * 2];
130
- if (!defined_default(result)) {
131
- scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
132
- return new BoxOutlineGeometry(scratchOptions);
133
- }
134
- result._min = Cartesian3_default.clone(min, result._min);
135
- result._max = Cartesian3_default.clone(max, result._max);
136
- result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
137
- return result;
138
- };
139
- BoxOutlineGeometry.createGeometry = function(boxGeometry) {
140
- const min = boxGeometry._min;
141
- const max = boxGeometry._max;
142
- if (Cartesian3_default.equals(min, max)) {
143
- return;
144
- }
145
- const attributes = new GeometryAttributes_default();
146
- const indices = new Uint16Array(12 * 2);
147
- const positions = new Float64Array(8 * 3);
148
- positions[0] = min.x;
149
- positions[1] = min.y;
150
- positions[2] = min.z;
151
- positions[3] = max.x;
152
- positions[4] = min.y;
153
- positions[5] = min.z;
154
- positions[6] = max.x;
155
- positions[7] = max.y;
156
- positions[8] = min.z;
157
- positions[9] = min.x;
158
- positions[10] = max.y;
159
- positions[11] = min.z;
160
- positions[12] = min.x;
161
- positions[13] = min.y;
162
- positions[14] = max.z;
163
- positions[15] = max.x;
164
- positions[16] = min.y;
165
- positions[17] = max.z;
166
- positions[18] = max.x;
167
- positions[19] = max.y;
168
- positions[20] = max.z;
169
- positions[21] = min.x;
170
- positions[22] = max.y;
171
- positions[23] = max.z;
172
- attributes.position = new GeometryAttribute_default({
173
- componentDatatype: ComponentDatatype_default.DOUBLE,
174
- componentsPerAttribute: 3,
175
- values: positions
176
- });
177
- indices[0] = 4;
178
- indices[1] = 5;
179
- indices[2] = 5;
180
- indices[3] = 6;
181
- indices[4] = 6;
182
- indices[5] = 7;
183
- indices[6] = 7;
184
- indices[7] = 4;
185
- indices[8] = 0;
186
- indices[9] = 1;
187
- indices[10] = 1;
188
- indices[11] = 2;
189
- indices[12] = 2;
190
- indices[13] = 3;
191
- indices[14] = 3;
192
- indices[15] = 0;
193
- indices[16] = 0;
194
- indices[17] = 4;
195
- indices[18] = 1;
196
- indices[19] = 5;
197
- indices[20] = 2;
198
- indices[21] = 6;
199
- indices[22] = 3;
200
- indices[23] = 7;
201
- const diff = Cartesian3_default.subtract(max, min, diffScratch);
202
- const radius = Cartesian3_default.magnitude(diff) * 0.5;
203
- if (defined_default(boxGeometry._offsetAttribute)) {
204
- const length = positions.length;
205
- const offsetValue = boxGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
206
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
207
- attributes.applyOffset = new GeometryAttribute_default({
208
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
209
- componentsPerAttribute: 1,
210
- values: applyOffset
211
- });
212
- }
213
- return new Geometry_default({
214
- attributes,
215
- indices,
216
- primitiveType: PrimitiveType_default.LINES,
217
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, radius),
218
- offsetAttribute: boxGeometry._offsetAttribute
219
- });
220
- };
221
- var BoxOutlineGeometry_default = BoxOutlineGeometry;
222
-
223
- // packages/engine/Source/Workers/createBoxOutlineGeometry.js
224
- function createBoxOutlineGeometry(boxGeometry, offset) {
225
- if (defined_default(offset)) {
226
- boxGeometry = BoxOutlineGeometry_default.unpack(boxGeometry, offset);
227
- }
228
- return BoxOutlineGeometry_default.createGeometry(boxGeometry);
229
- }
230
- var createBoxOutlineGeometry_default = createBoxOutlineGeometry;
231
- export {
232
- createBoxOutlineGeometry_default as default
233
- };
26
+ import{a as d}from"./chunk-GBYLG25F.js";import{a as l}from"./chunk-A56XVLQR.js";import{b as O,c as h,d as p}from"./chunk-RCV6KWXS.js";import{d as A}from"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import{a}from"./chunk-AU7IKHOH.js";import{a as m,f as s}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{a as b,b as r}from"./chunk-LEYMRMBK.js";import{e as c}from"./chunk-VTAIKJXX.js";var g=new m;function f(e){e=e??s.EMPTY_OBJECT;let t=e.minimum,n=e.maximum;if(r.typeOf.object("min",t),r.typeOf.object("max",n),c(e.offsetAttribute)&&e.offsetAttribute===d.TOP)throw new b("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._min=m.clone(t),this._max=m.clone(n),this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxOutlineGeometry"}f.fromDimensions=function(e){e=e??s.EMPTY_OBJECT;let t=e.dimensions;r.typeOf.object("dimensions",t),r.typeOf.number.greaterThanOrEquals("dimensions.x",t.x,0),r.typeOf.number.greaterThanOrEquals("dimensions.y",t.y,0),r.typeOf.number.greaterThanOrEquals("dimensions.z",t.z,0);let n=m.multiplyByScalar(t,.5,new m);return new f({minimum:m.negate(n,new m),maximum:n,offsetAttribute:e.offsetAttribute})};f.fromAxisAlignedBoundingBox=function(e){return r.typeOf.object("boundindBox",e),new f({minimum:e.minimum,maximum:e.maximum})};f.packedLength=2*m.packedLength+1;f.pack=function(e,t,n){return r.typeOf.object("value",e),r.defined("array",t),n=n??0,m.pack(e._min,t,n),m.pack(e._max,t,n+m.packedLength),t[n+m.packedLength*2]=e._offsetAttribute??-1,t};var w=new m,x=new m,_={minimum:w,maximum:x,offsetAttribute:void 0};f.unpack=function(e,t,n){r.defined("array",e),t=t??0;let u=m.unpack(e,t,w),o=m.unpack(e,t+m.packedLength,x),i=e[t+m.packedLength*2];return c(n)?(n._min=m.clone(u,n._min),n._max=m.clone(o,n._max),n._offsetAttribute=i===-1?void 0:i,n):(_.offsetAttribute=i===-1?void 0:i,new f(_))};f.createGeometry=function(e){let t=e._min,n=e._max;if(m.equals(t,n))return;let u=new l,o=new Uint16Array(24),i=new Float64Array(24);i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=n.x,i[4]=t.y,i[5]=t.z,i[6]=n.x,i[7]=n.y,i[8]=t.z,i[9]=t.x,i[10]=n.y,i[11]=t.z,i[12]=t.x,i[13]=t.y,i[14]=n.z,i[15]=n.x,i[16]=t.y,i[17]=n.z,i[18]=n.x,i[19]=n.y,i[20]=n.z,i[21]=t.x,i[22]=n.y,i[23]=n.z,u.position=new p({componentDatatype:a.DOUBLE,componentsPerAttribute:3,values:i}),o[0]=4,o[1]=5,o[2]=5,o[3]=6,o[4]=6,o[5]=7,o[6]=7,o[7]=4,o[8]=0,o[9]=1,o[10]=1,o[11]=2,o[12]=2,o[13]=3,o[14]=3,o[15]=0,o[16]=0,o[17]=4,o[18]=1,o[19]=5,o[20]=2,o[21]=6,o[22]=3,o[23]=7;let k=m.subtract(n,t,g),E=m.magnitude(k)*.5;if(c(e._offsetAttribute)){let T=i.length,z=e._offsetAttribute===d.NONE?0:1,B=new Uint8Array(T/3).fill(z);u.applyOffset=new p({componentDatatype:a.UNSIGNED_BYTE,componentsPerAttribute:1,values:B})}return new h({attributes:u,indices:o,primitiveType:O.LINES,boundingSphere:new A(m.ZERO,E),offsetAttribute:e._offsetAttribute})};var y=f;function L(e,t){return c(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}var V=L;export{V as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,177 +23,4 @@
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
25
 
26
- import {
27
- EllipseGeometry_default
28
- } from "./chunk-N5KJGGCM.js";
29
- import "./chunk-27HUZ7SA.js";
30
- import "./chunk-7KTQP4VB.js";
31
- import "./chunk-GGZJN2TI.js";
32
- import "./chunk-NGPPMXRM.js";
33
- import "./chunk-C6YYBQXW.js";
34
- import "./chunk-I2ITFFPX.js";
35
- import {
36
- VertexFormat_default
37
- } from "./chunk-EJZTDTUH.js";
38
- import "./chunk-3Q2L65QU.js";
39
- import "./chunk-2ZGOQXYU.js";
40
- import "./chunk-26GA3JAM.js";
41
- import "./chunk-DI5NGJUP.js";
42
- import "./chunk-GWCFU2SA.js";
43
- import "./chunk-VJZB3WAV.js";
44
- import "./chunk-5PTXS2GO.js";
45
- import "./chunk-K4GQUNB5.js";
46
- import {
47
- Cartesian3_default,
48
- Ellipsoid_default
49
- } from "./chunk-YFXQECWV.js";
50
- import "./chunk-XY4BATBS.js";
51
- import "./chunk-MXIZJAPH.js";
52
- import "./chunk-6CHGCNMW.js";
53
- import {
54
- defaultValue_default
55
- } from "./chunk-7JO7GPJN.js";
56
- import {
57
- Check_default
58
- } from "./chunk-AD63PIY6.js";
59
- import {
60
- defined_default
61
- } from "./chunk-E63IIM5T.js";
62
-
63
- // packages/engine/Source/Core/CircleGeometry.js
64
- function CircleGeometry(options) {
65
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
66
- const radius = options.radius;
67
- Check_default.typeOf.number("radius", radius);
68
- const ellipseGeometryOptions = {
69
- center: options.center,
70
- semiMajorAxis: radius,
71
- semiMinorAxis: radius,
72
- ellipsoid: options.ellipsoid,
73
- height: options.height,
74
- extrudedHeight: options.extrudedHeight,
75
- granularity: options.granularity,
76
- vertexFormat: options.vertexFormat,
77
- stRotation: options.stRotation,
78
- shadowVolume: options.shadowVolume
79
- };
80
- this._ellipseGeometry = new EllipseGeometry_default(ellipseGeometryOptions);
81
- this._workerName = "createCircleGeometry";
82
- }
83
- CircleGeometry.packedLength = EllipseGeometry_default.packedLength;
84
- CircleGeometry.pack = function(value, array, startingIndex) {
85
- Check_default.typeOf.object("value", value);
86
- return EllipseGeometry_default.pack(value._ellipseGeometry, array, startingIndex);
87
- };
88
- var scratchEllipseGeometry = new EllipseGeometry_default({
89
- center: new Cartesian3_default(),
90
- semiMajorAxis: 1,
91
- semiMinorAxis: 1
92
- });
93
- var scratchOptions = {
94
- center: new Cartesian3_default(),
95
- radius: void 0,
96
- ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.default),
97
- height: void 0,
98
- extrudedHeight: void 0,
99
- granularity: void 0,
100
- vertexFormat: new VertexFormat_default(),
101
- stRotation: void 0,
102
- semiMajorAxis: void 0,
103
- semiMinorAxis: void 0,
104
- shadowVolume: void 0
105
- };
106
- CircleGeometry.unpack = function(array, startingIndex, result) {
107
- const ellipseGeometry = EllipseGeometry_default.unpack(
108
- array,
109
- startingIndex,
110
- scratchEllipseGeometry
111
- );
112
- scratchOptions.center = Cartesian3_default.clone(
113
- ellipseGeometry._center,
114
- scratchOptions.center
115
- );
116
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
117
- ellipseGeometry._ellipsoid,
118
- scratchOptions.ellipsoid
119
- );
120
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
121
- ellipseGeometry._ellipsoid,
122
- scratchEllipseGeometry._ellipsoid
123
- );
124
- scratchOptions.height = ellipseGeometry._height;
125
- scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
126
- scratchOptions.granularity = ellipseGeometry._granularity;
127
- scratchOptions.vertexFormat = VertexFormat_default.clone(
128
- ellipseGeometry._vertexFormat,
129
- scratchOptions.vertexFormat
130
- );
131
- scratchOptions.stRotation = ellipseGeometry._stRotation;
132
- scratchOptions.shadowVolume = ellipseGeometry._shadowVolume;
133
- if (!defined_default(result)) {
134
- scratchOptions.radius = ellipseGeometry._semiMajorAxis;
135
- return new CircleGeometry(scratchOptions);
136
- }
137
- scratchOptions.semiMajorAxis = ellipseGeometry._semiMajorAxis;
138
- scratchOptions.semiMinorAxis = ellipseGeometry._semiMinorAxis;
139
- result._ellipseGeometry = new EllipseGeometry_default(scratchOptions);
140
- return result;
141
- };
142
- CircleGeometry.createGeometry = function(circleGeometry) {
143
- return EllipseGeometry_default.createGeometry(circleGeometry._ellipseGeometry);
144
- };
145
- CircleGeometry.createShadowVolume = function(circleGeometry, minHeightFunc, maxHeightFunc) {
146
- const granularity = circleGeometry._ellipseGeometry._granularity;
147
- const ellipsoid = circleGeometry._ellipseGeometry._ellipsoid;
148
- const minHeight = minHeightFunc(granularity, ellipsoid);
149
- const maxHeight = maxHeightFunc(granularity, ellipsoid);
150
- return new CircleGeometry({
151
- center: circleGeometry._ellipseGeometry._center,
152
- radius: circleGeometry._ellipseGeometry._semiMajorAxis,
153
- ellipsoid,
154
- stRotation: circleGeometry._ellipseGeometry._stRotation,
155
- granularity,
156
- extrudedHeight: minHeight,
157
- height: maxHeight,
158
- vertexFormat: VertexFormat_default.POSITION_ONLY,
159
- shadowVolume: true
160
- });
161
- };
162
- Object.defineProperties(CircleGeometry.prototype, {
163
- /**
164
- * @private
165
- */
166
- rectangle: {
167
- get: function() {
168
- return this._ellipseGeometry.rectangle;
169
- }
170
- },
171
- /**
172
- * For remapping texture coordinates when rendering CircleGeometries as GroundPrimitives.
173
- * @private
174
- */
175
- textureCoordinateRotationPoints: {
176
- get: function() {
177
- return this._ellipseGeometry.textureCoordinateRotationPoints;
178
- }
179
- }
180
- });
181
- var CircleGeometry_default = CircleGeometry;
182
-
183
- // packages/engine/Source/Workers/createCircleGeometry.js
184
- function createCircleGeometry(circleGeometry, offset) {
185
- if (defined_default(offset)) {
186
- circleGeometry = CircleGeometry_default.unpack(circleGeometry, offset);
187
- }
188
- circleGeometry._ellipseGeometry._center = Cartesian3_default.clone(
189
- circleGeometry._ellipseGeometry._center
190
- );
191
- circleGeometry._ellipseGeometry._ellipsoid = Ellipsoid_default.clone(
192
- circleGeometry._ellipseGeometry._ellipsoid
193
- );
194
- return CircleGeometry_default.createGeometry(circleGeometry);
195
- }
196
- var createCircleGeometry_default = createCircleGeometry;
197
- export {
198
- createCircleGeometry_default as default
199
- };
26
+ import{a as l}from"./chunk-FEVXJ54I.js";import"./chunk-UP6I5URU.js";import"./chunk-D6AA5QVT.js";import"./chunk-VW6VD53G.js";import"./chunk-DEPHB2WM.js";import"./chunk-QOUAJ6TL.js";import"./chunk-GBYLG25F.js";import{a as m}from"./chunk-CYCB63OH.js";import"./chunk-DMEY62ID.js";import"./chunk-HTFSEEMT.js";import"./chunk-OFUUQVMR.js";import"./chunk-A56XVLQR.js";import"./chunk-RCV6KWXS.js";import"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import"./chunk-AU7IKHOH.js";import{a,d as s,f as _}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{b as p}from"./chunk-LEYMRMBK.js";import{e as d}from"./chunk-VTAIKJXX.js";function n(e){e=e??_.EMPTY_OBJECT;let r=e.radius;p.typeOf.number("radius",r);let o={center:e.center,semiMajorAxis:r,semiMinorAxis:r,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new l(o),this._workerName="createCircleGeometry"}n.packedLength=l.packedLength;n.pack=function(e,r,o){return p.typeOf.object("value",e),l.pack(e._ellipseGeometry,r,o)};var h=new l({center:new a,semiMajorAxis:1,semiMinorAxis:1}),t={center:new a,radius:void 0,ellipsoid:s.clone(s.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new m,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};n.unpack=function(e,r,o){let i=l.unpack(e,r,h);return t.center=a.clone(i._center,t.center),t.ellipsoid=s.clone(i._ellipsoid,t.ellipsoid),t.ellipsoid=s.clone(i._ellipsoid,h._ellipsoid),t.height=i._height,t.extrudedHeight=i._extrudedHeight,t.granularity=i._granularity,t.vertexFormat=m.clone(i._vertexFormat,t.vertexFormat),t.stRotation=i._stRotation,t.shadowVolume=i._shadowVolume,d(o)?(t.semiMajorAxis=i._semiMajorAxis,t.semiMinorAxis=i._semiMinorAxis,o._ellipseGeometry=new l(t),o):(t.radius=i._semiMajorAxis,new n(t))};n.createGeometry=function(e){return l.createGeometry(e._ellipseGeometry)};n.createShadowVolume=function(e,r,o){let i=e._ellipseGeometry._granularity,u=e._ellipseGeometry._ellipsoid,f=r(i,u),x=o(i,u);return new n({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:u,stRotation:e._ellipseGeometry._stRotation,granularity:i,extrudedHeight:f,height:x,vertexFormat:m.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(n.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var c=n;function g(e,r){return d(r)&&(e=c.unpack(e,r)),e._ellipseGeometry._center=a.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=s.clone(e._ellipseGeometry._ellipsoid),c.createGeometry(e)}var V=g;export{V as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,123 +23,4 @@
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
25
 
26
- import {
27
- EllipseOutlineGeometry_default
28
- } from "./chunk-7BMOHCPM.js";
29
- import "./chunk-27HUZ7SA.js";
30
- import "./chunk-I2ITFFPX.js";
31
- import "./chunk-26GA3JAM.js";
32
- import "./chunk-DI5NGJUP.js";
33
- import "./chunk-GWCFU2SA.js";
34
- import "./chunk-VJZB3WAV.js";
35
- import "./chunk-5PTXS2GO.js";
36
- import "./chunk-K4GQUNB5.js";
37
- import {
38
- Cartesian3_default,
39
- Ellipsoid_default
40
- } from "./chunk-YFXQECWV.js";
41
- import "./chunk-XY4BATBS.js";
42
- import "./chunk-MXIZJAPH.js";
43
- import "./chunk-6CHGCNMW.js";
44
- import {
45
- defaultValue_default
46
- } from "./chunk-7JO7GPJN.js";
47
- import {
48
- Check_default
49
- } from "./chunk-AD63PIY6.js";
50
- import {
51
- defined_default
52
- } from "./chunk-E63IIM5T.js";
53
-
54
- // packages/engine/Source/Core/CircleOutlineGeometry.js
55
- function CircleOutlineGeometry(options) {
56
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
57
- const radius = options.radius;
58
- Check_default.typeOf.number("radius", radius);
59
- const ellipseGeometryOptions = {
60
- center: options.center,
61
- semiMajorAxis: radius,
62
- semiMinorAxis: radius,
63
- ellipsoid: options.ellipsoid,
64
- height: options.height,
65
- extrudedHeight: options.extrudedHeight,
66
- granularity: options.granularity,
67
- numberOfVerticalLines: options.numberOfVerticalLines
68
- };
69
- this._ellipseGeometry = new EllipseOutlineGeometry_default(ellipseGeometryOptions);
70
- this._workerName = "createCircleOutlineGeometry";
71
- }
72
- CircleOutlineGeometry.packedLength = EllipseOutlineGeometry_default.packedLength;
73
- CircleOutlineGeometry.pack = function(value, array, startingIndex) {
74
- Check_default.typeOf.object("value", value);
75
- return EllipseOutlineGeometry_default.pack(
76
- value._ellipseGeometry,
77
- array,
78
- startingIndex
79
- );
80
- };
81
- var scratchEllipseGeometry = new EllipseOutlineGeometry_default({
82
- center: new Cartesian3_default(),
83
- semiMajorAxis: 1,
84
- semiMinorAxis: 1
85
- });
86
- var scratchOptions = {
87
- center: new Cartesian3_default(),
88
- radius: void 0,
89
- ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE),
90
- height: void 0,
91
- extrudedHeight: void 0,
92
- granularity: void 0,
93
- numberOfVerticalLines: void 0,
94
- semiMajorAxis: void 0,
95
- semiMinorAxis: void 0
96
- };
97
- CircleOutlineGeometry.unpack = function(array, startingIndex, result) {
98
- const ellipseGeometry = EllipseOutlineGeometry_default.unpack(
99
- array,
100
- startingIndex,
101
- scratchEllipseGeometry
102
- );
103
- scratchOptions.center = Cartesian3_default.clone(
104
- ellipseGeometry._center,
105
- scratchOptions.center
106
- );
107
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
108
- ellipseGeometry._ellipsoid,
109
- scratchOptions.ellipsoid
110
- );
111
- scratchOptions.height = ellipseGeometry._height;
112
- scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
113
- scratchOptions.granularity = ellipseGeometry._granularity;
114
- scratchOptions.numberOfVerticalLines = ellipseGeometry._numberOfVerticalLines;
115
- if (!defined_default(result)) {
116
- scratchOptions.radius = ellipseGeometry._semiMajorAxis;
117
- return new CircleOutlineGeometry(scratchOptions);
118
- }
119
- scratchOptions.semiMajorAxis = ellipseGeometry._semiMajorAxis;
120
- scratchOptions.semiMinorAxis = ellipseGeometry._semiMinorAxis;
121
- result._ellipseGeometry = new EllipseOutlineGeometry_default(scratchOptions);
122
- return result;
123
- };
124
- CircleOutlineGeometry.createGeometry = function(circleGeometry) {
125
- return EllipseOutlineGeometry_default.createGeometry(circleGeometry._ellipseGeometry);
126
- };
127
- var CircleOutlineGeometry_default = CircleOutlineGeometry;
128
-
129
- // packages/engine/Source/Workers/createCircleOutlineGeometry.js
130
- function createCircleOutlineGeometry(circleGeometry, offset) {
131
- if (defined_default(offset)) {
132
- circleGeometry = CircleOutlineGeometry_default.unpack(circleGeometry, offset);
133
- }
134
- circleGeometry._ellipseGeometry._center = Cartesian3_default.clone(
135
- circleGeometry._ellipseGeometry._center
136
- );
137
- circleGeometry._ellipseGeometry._ellipsoid = Ellipsoid_default.clone(
138
- circleGeometry._ellipseGeometry._ellipsoid
139
- );
140
- return CircleOutlineGeometry_default.createGeometry(circleGeometry);
141
- }
142
- var createCircleOutlineGeometry_default = createCircleOutlineGeometry;
143
- export {
144
- createCircleOutlineGeometry_default as default
145
- };
26
+ import{a as n}from"./chunk-HWXX4CWK.js";import"./chunk-UP6I5URU.js";import"./chunk-GBYLG25F.js";import"./chunk-OFUUQVMR.js";import"./chunk-A56XVLQR.js";import"./chunk-RCV6KWXS.js";import"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import"./chunk-AU7IKHOH.js";import{a as o,d as s,f as c}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{b as d}from"./chunk-LEYMRMBK.js";import{e as a}from"./chunk-VTAIKJXX.js";function m(e){e=e??c.EMPTY_OBJECT;let r=e.radius;d.typeOf.number("radius",r);let l={center:e.center,semiMajorAxis:r,semiMinorAxis:r,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new n(l),this._workerName="createCircleOutlineGeometry"}m.packedLength=n.packedLength;m.pack=function(e,r,l){return d.typeOf.object("value",e),n.pack(e._ellipseGeometry,r,l)};var p=new n({center:new o,semiMajorAxis:1,semiMinorAxis:1}),i={center:new o,radius:void 0,ellipsoid:s.clone(s.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};m.unpack=function(e,r,l){let t=n.unpack(e,r,p);return i.center=o.clone(t._center,i.center),i.ellipsoid=s.clone(t._ellipsoid,i.ellipsoid),i.height=t._height,i.extrudedHeight=t._extrudedHeight,i.granularity=t._granularity,i.numberOfVerticalLines=t._numberOfVerticalLines,a(l)?(i.semiMajorAxis=t._semiMajorAxis,i.semiMinorAxis=t._semiMinorAxis,l._ellipseGeometry=new n(i),l):(i.radius=t._semiMajorAxis,new m(i))};m.createGeometry=function(e){return n.createGeometry(e._ellipseGeometry)};var u=m;function f(e,r){return a(r)&&(e=u.unpack(e,r)),e._ellipseGeometry._center=o.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=s.clone(e._ellipseGeometry._ellipsoid),u.createGeometry(e)}var E=f;export{E as default};