@pggis/pg-sdk 3.3.10 → 4.3.3

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 (163) hide show
  1. package/README.md +8 -8
  2. package/dist/index.js +1966 -4
  3. package/dist/pggis.min.css +1 -1
  4. package/dist/pggis.min.js +10980 -7539
  5. package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -2
  6. package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -2
  7. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
  8. package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -8337
  9. package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
  10. package/dist/resources/Workers/chunk-35SHYARM.js +26 -0
  11. package/dist/resources/Workers/chunk-37F5JSTI.js +26 -0
  12. package/dist/resources/Workers/chunk-3SSKC3VN.js +26 -0
  13. package/dist/resources/Workers/chunk-3W4GT7KQ.js +26 -0
  14. package/dist/resources/Workers/chunk-4IW2T6GF.js +26 -0
  15. package/dist/resources/Workers/chunk-5YEWO3HT.js +26 -0
  16. package/dist/resources/Workers/chunk-64RSHJUE.js +28 -0
  17. package/dist/resources/Workers/chunk-77IHZJJ3.js +26 -0
  18. package/dist/resources/Workers/chunk-7HTKERZY.js +26 -0
  19. package/dist/resources/Workers/{chunk-F3YA3Y2Z.js → chunk-A56XVLQR.js} +2 -13
  20. package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
  21. package/dist/resources/Workers/{chunk-EHWHNOEX.js → chunk-ARG42DC4.js} +2 -31
  22. package/dist/resources/Workers/chunk-AU7IKHOH.js +26 -0
  23. package/dist/resources/Workers/chunk-B4AA3ARO.js +26 -0
  24. package/dist/resources/Workers/chunk-CNCV5UL7.js +26 -0
  25. package/dist/resources/Workers/chunk-CYCB63OH.js +26 -0
  26. package/dist/resources/Workers/{chunk-4H7PY4U5.js → chunk-D6AA5QVT.js} +2 -20
  27. package/dist/resources/Workers/chunk-D6C66QON.js +26 -0
  28. package/dist/resources/Workers/chunk-DEPHB2WM.js +26 -0
  29. package/dist/resources/Workers/chunk-DMEY62ID.js +26 -0
  30. package/dist/resources/Workers/chunk-DQQ63PYM.js +26 -0
  31. package/dist/resources/Workers/chunk-ED5JPB3S.js +27 -0
  32. package/dist/resources/Workers/chunk-EZUYS2JF.js +26 -0
  33. package/dist/resources/Workers/chunk-FEVXJ54I.js +26 -0
  34. package/dist/resources/Workers/chunk-G5AGHVVC.js +26 -0
  35. package/dist/resources/Workers/{chunk-BBWDMCVU.js → chunk-GBYLG25F.js} +2 -15
  36. package/dist/resources/Workers/chunk-GILIDQNQ.js +26 -0
  37. package/dist/resources/Workers/chunk-HMIYSTF6.js +26 -0
  38. package/dist/resources/Workers/chunk-HTFSEEMT.js +26 -0
  39. package/dist/resources/Workers/chunk-HWXX4CWK.js +26 -0
  40. package/dist/resources/Workers/chunk-IYTZ52EY.js +26 -0
  41. package/dist/resources/Workers/chunk-J6UP6FLE.js +26 -0
  42. package/dist/resources/Workers/chunk-LEYMRMBK.js +27 -0
  43. package/dist/resources/Workers/chunk-M3MGYQSL.js +26 -0
  44. package/dist/resources/Workers/chunk-N4VJKXZS.js +26 -0
  45. package/dist/resources/Workers/chunk-NB3ML6JO.js +26 -0
  46. package/dist/resources/Workers/chunk-OFUUQVMR.js +26 -0
  47. package/dist/resources/Workers/chunk-OSW76XDF.js +26 -0
  48. package/dist/resources/Workers/chunk-PSPPBZWI.js +66 -0
  49. package/dist/resources/Workers/chunk-QN3VOORQ.js +26 -0
  50. package/dist/resources/Workers/chunk-QOUAJ6TL.js +26 -0
  51. package/dist/resources/Workers/chunk-RCV6KWXS.js +26 -0
  52. package/dist/resources/Workers/chunk-TCGIRNHN.js +26 -0
  53. package/dist/resources/Workers/chunk-U4IEOH5K.js +26 -0
  54. package/dist/resources/Workers/chunk-UP6I5URU.js +26 -0
  55. package/dist/resources/Workers/chunk-VTAIKJXX.js +26 -0
  56. package/dist/resources/Workers/chunk-VTBDSFTG.js +26 -0
  57. package/dist/resources/Workers/chunk-VW6VD53G.js +26 -0
  58. package/dist/resources/Workers/chunk-WGGIH7QW.js +26 -0
  59. package/dist/resources/Workers/chunk-WWA5PL4H.js +26 -0
  60. package/dist/resources/Workers/chunk-WZDE3RYP.js +28 -0
  61. package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
  62. package/dist/resources/Workers/combineGeometry.js +2 -44
  63. package/dist/resources/Workers/createBoxGeometry.js +2 -34
  64. package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -211
  65. package/dist/resources/Workers/createCircleGeometry.js +2 -173
  66. package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -123
  67. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -482
  68. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -201
  69. package/dist/resources/Workers/createCorridorGeometry.js +2 -1239
  70. package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -544
  71. package/dist/resources/Workers/createCylinderGeometry.js +2 -36
  72. package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -207
  73. package/dist/resources/Workers/createEllipseGeometry.js +2 -47
  74. package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -40
  75. package/dist/resources/Workers/createEllipsoidGeometry.js +2 -35
  76. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -37
  77. package/dist/resources/Workers/createFrustumGeometry.js +2 -34
  78. package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -211
  79. package/dist/resources/Workers/createGeometry.js +2 -147
  80. package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1584
  81. package/dist/resources/Workers/createPlaneGeometry.js +2 -200
  82. package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -100
  83. package/dist/resources/Workers/createPolygonGeometry.js +2 -1387
  84. package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -519
  85. package/dist/resources/Workers/createPolylineGeometry.js +2 -472
  86. package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -355
  87. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -253
  88. package/dist/resources/Workers/createRectangleGeometry.js +2 -1250
  89. package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -455
  90. package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -376
  91. package/dist/resources/Workers/createSphereGeometry.js +2 -94
  92. package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -94
  93. package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
  94. package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -468
  95. package/dist/resources/Workers/createVectorTileGeometries.js +2 -363
  96. package/dist/resources/Workers/createVectorTilePoints.js +2 -88
  97. package/dist/resources/Workers/createVectorTilePolygons.js +2 -361
  98. package/dist/resources/Workers/createVectorTilePolylines.js +2 -238
  99. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -545
  100. package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2254
  101. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -722
  102. package/dist/resources/Workers/createWallGeometry.js +2 -466
  103. package/dist/resources/Workers/createWallOutlineGeometry.js +2 -314
  104. package/dist/resources/Workers/decodeDraco.js +2 -345
  105. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2626
  106. package/dist/resources/Workers/decodeI3S.js +2 -1320
  107. package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
  108. package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
  109. package/dist/resources/Workers/transcodeKTX2.js +29 -3398
  110. package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
  111. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -795
  112. package/package.json +9 -8
  113. package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
  114. package/dist/resources/Workers/chunk-23UFSGND.js +0 -236
  115. package/dist/resources/Workers/chunk-2A75IWRS.js +0 -218
  116. package/dist/resources/Workers/chunk-2FRVPMCS.js +0 -1258
  117. package/dist/resources/Workers/chunk-2FWRMUTY.js +0 -138
  118. package/dist/resources/Workers/chunk-2UPKWTMJ.js +0 -117
  119. package/dist/resources/Workers/chunk-34FXV7D7.js +0 -73
  120. package/dist/resources/Workers/chunk-3VAZEH7M.js +0 -101
  121. package/dist/resources/Workers/chunk-4DO5W5XZ.js +0 -196
  122. package/dist/resources/Workers/chunk-5QULIR53.js +0 -501
  123. package/dist/resources/Workers/chunk-7TC63SJW.js +0 -302
  124. package/dist/resources/Workers/chunk-7ZFGPDJA.js +0 -122
  125. package/dist/resources/Workers/chunk-A5DWLWCY.js +0 -834
  126. package/dist/resources/Workers/chunk-BG4UCVXN.js +0 -73
  127. package/dist/resources/Workers/chunk-BIKA3NRA.js +0 -59
  128. package/dist/resources/Workers/chunk-BROJAZRZ.js +0 -390
  129. package/dist/resources/Workers/chunk-DDUQAJ4P.js +0 -476
  130. package/dist/resources/Workers/chunk-EERJKOAF.js +0 -305
  131. package/dist/resources/Workers/chunk-EG6PTBY2.js +0 -2716
  132. package/dist/resources/Workers/chunk-F4HFJMGM.js +0 -353
  133. package/dist/resources/Workers/chunk-FJKNFAKQ.js +0 -8219
  134. package/dist/resources/Workers/chunk-FNIRWHJB.js +0 -289
  135. package/dist/resources/Workers/chunk-FZRIVR7Y.js +0 -100
  136. package/dist/resources/Workers/chunk-G43QFN4Q.js +0 -157
  137. package/dist/resources/Workers/chunk-GATZHF3K.js +0 -1860
  138. package/dist/resources/Workers/chunk-GRC2ZTAF.js +0 -398
  139. package/dist/resources/Workers/chunk-HU6N6EXB.js +0 -767
  140. package/dist/resources/Workers/chunk-I46ZRR5W.js +0 -1052
  141. package/dist/resources/Workers/chunk-JURN7NPV.js +0 -1075
  142. package/dist/resources/Workers/chunk-KKCR2YOP.js +0 -421
  143. package/dist/resources/Workers/chunk-LPR3YNP2.js +0 -138
  144. package/dist/resources/Workers/chunk-M7ERACJJ.js +0 -511
  145. package/dist/resources/Workers/chunk-MDWEGWPA.js +0 -1007
  146. package/dist/resources/Workers/chunk-OGXZVPPM.js +0 -2365
  147. package/dist/resources/Workers/chunk-PGSJK77E.js +0 -634
  148. package/dist/resources/Workers/chunk-PPH7OFP3.js +0 -258
  149. package/dist/resources/Workers/chunk-SH5USDPI.js +0 -456
  150. package/dist/resources/Workers/chunk-SOWMRMWA.js +0 -629
  151. package/dist/resources/Workers/chunk-STW2DGFI.js +0 -58
  152. package/dist/resources/Workers/chunk-T3XIFPYR.js +0 -1477
  153. package/dist/resources/Workers/chunk-TTUZP4BO.js +0 -501
  154. package/dist/resources/Workers/chunk-UEXTBDBE.js +0 -693
  155. package/dist/resources/Workers/chunk-VOXYEYJT.js +0 -684
  156. package/dist/resources/Workers/chunk-X4356LRH.js +0 -368
  157. package/dist/resources/Workers/chunk-XGI5BXZY.js +0 -163
  158. package/dist/resources/Workers/chunk-Y2ME2IJV.js +0 -781
  159. package/dist/resources/Workers/chunk-Y5UQJLYE.js +0 -171
  160. package/dist/resources/Workers/chunk-YJEBABKH.js +0 -2977
  161. package/dist/resources/Workers/chunk-YWTJ2B4B.js +0 -77
  162. package/dist/resources/Workers/chunk-Z3TIFFGF.js +0 -430
  163. package/dist/resources/Workers/chunk-ZT7KWISZ.js +0 -102
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.115
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,213 +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-F3YA3Y2Z.js";
29
- import {
30
- GeometryAttributes_default
31
- } from "./chunk-4H7PY4U5.js";
32
- import {
33
- GeometryAttribute_default,
34
- Geometry_default,
35
- PrimitiveType_default
36
- } from "./chunk-7TC63SJW.js";
37
- import {
38
- BoundingSphere_default
39
- } from "./chunk-FJKNFAKQ.js";
40
- import "./chunk-TTUZP4BO.js";
41
- import "./chunk-BG4UCVXN.js";
42
- import "./chunk-YJEBABKH.js";
43
- import {
44
- ComponentDatatype_default
45
- } from "./chunk-PPH7OFP3.js";
46
- import {
47
- Cartesian3_default
48
- } from "./chunk-OGXZVPPM.js";
49
- import "./chunk-5QULIR53.js";
50
- import "./chunk-SOWMRMWA.js";
51
- import "./chunk-STW2DGFI.js";
52
- import {
53
- defaultValue_default
54
- } from "./chunk-BBWDMCVU.js";
55
- import {
56
- Check_default,
57
- DeveloperError_default
58
- } from "./chunk-XGI5BXZY.js";
59
- import {
60
- defined_default
61
- } from "./chunk-YWTJ2B4B.js";
62
-
63
- // packages/engine/Source/Core/BoxOutlineGeometry.js
64
- var diffScratch = new Cartesian3_default();
65
- function BoxOutlineGeometry(options) {
66
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
67
- const min = options.minimum;
68
- const max = options.maximum;
69
- Check_default.typeOf.object("min", min);
70
- Check_default.typeOf.object("max", max);
71
- if (defined_default(options.offsetAttribute) && options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
72
- throw new DeveloperError_default(
73
- "GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry."
74
- );
75
- }
76
- this._min = Cartesian3_default.clone(min);
77
- this._max = Cartesian3_default.clone(max);
78
- this._offsetAttribute = options.offsetAttribute;
79
- this._workerName = "createBoxOutlineGeometry";
80
- }
81
- BoxOutlineGeometry.fromDimensions = function(options) {
82
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
83
- const dimensions = options.dimensions;
84
- Check_default.typeOf.object("dimensions", dimensions);
85
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.x", dimensions.x, 0);
86
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.y", dimensions.y, 0);
87
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.z", dimensions.z, 0);
88
- const corner = Cartesian3_default.multiplyByScalar(dimensions, 0.5, new Cartesian3_default());
89
- return new BoxOutlineGeometry({
90
- minimum: Cartesian3_default.negate(corner, new Cartesian3_default()),
91
- maximum: corner,
92
- offsetAttribute: options.offsetAttribute
93
- });
94
- };
95
- BoxOutlineGeometry.fromAxisAlignedBoundingBox = function(boundingBox) {
96
- Check_default.typeOf.object("boundindBox", boundingBox);
97
- return new BoxOutlineGeometry({
98
- minimum: boundingBox.minimum,
99
- maximum: boundingBox.maximum
100
- });
101
- };
102
- BoxOutlineGeometry.packedLength = 2 * Cartesian3_default.packedLength + 1;
103
- BoxOutlineGeometry.pack = function(value, array, startingIndex) {
104
- Check_default.typeOf.object("value", value);
105
- Check_default.defined("array", array);
106
- startingIndex = defaultValue_default(startingIndex, 0);
107
- Cartesian3_default.pack(value._min, array, startingIndex);
108
- Cartesian3_default.pack(value._max, array, startingIndex + Cartesian3_default.packedLength);
109
- array[startingIndex + Cartesian3_default.packedLength * 2] = defaultValue_default(
110
- value._offsetAttribute,
111
- -1
112
- );
113
- return array;
114
- };
115
- var scratchMin = new Cartesian3_default();
116
- var scratchMax = new Cartesian3_default();
117
- var scratchOptions = {
118
- minimum: scratchMin,
119
- maximum: scratchMax,
120
- offsetAttribute: void 0
121
- };
122
- BoxOutlineGeometry.unpack = function(array, startingIndex, result) {
123
- Check_default.defined("array", array);
124
- startingIndex = defaultValue_default(startingIndex, 0);
125
- const min = Cartesian3_default.unpack(array, startingIndex, scratchMin);
126
- const max = Cartesian3_default.unpack(
127
- array,
128
- startingIndex + Cartesian3_default.packedLength,
129
- scratchMax
130
- );
131
- const offsetAttribute = array[startingIndex + Cartesian3_default.packedLength * 2];
132
- if (!defined_default(result)) {
133
- scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
134
- return new BoxOutlineGeometry(scratchOptions);
135
- }
136
- result._min = Cartesian3_default.clone(min, result._min);
137
- result._max = Cartesian3_default.clone(max, result._max);
138
- result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
139
- return result;
140
- };
141
- BoxOutlineGeometry.createGeometry = function(boxGeometry) {
142
- const min = boxGeometry._min;
143
- const max = boxGeometry._max;
144
- if (Cartesian3_default.equals(min, max)) {
145
- return;
146
- }
147
- const attributes = new GeometryAttributes_default();
148
- const indices = new Uint16Array(12 * 2);
149
- const positions = new Float64Array(8 * 3);
150
- positions[0] = min.x;
151
- positions[1] = min.y;
152
- positions[2] = min.z;
153
- positions[3] = max.x;
154
- positions[4] = min.y;
155
- positions[5] = min.z;
156
- positions[6] = max.x;
157
- positions[7] = max.y;
158
- positions[8] = min.z;
159
- positions[9] = min.x;
160
- positions[10] = max.y;
161
- positions[11] = min.z;
162
- positions[12] = min.x;
163
- positions[13] = min.y;
164
- positions[14] = max.z;
165
- positions[15] = max.x;
166
- positions[16] = min.y;
167
- positions[17] = max.z;
168
- positions[18] = max.x;
169
- positions[19] = max.y;
170
- positions[20] = max.z;
171
- positions[21] = min.x;
172
- positions[22] = max.y;
173
- positions[23] = max.z;
174
- attributes.position = new GeometryAttribute_default({
175
- componentDatatype: ComponentDatatype_default.DOUBLE,
176
- componentsPerAttribute: 3,
177
- values: positions
178
- });
179
- indices[0] = 4;
180
- indices[1] = 5;
181
- indices[2] = 5;
182
- indices[3] = 6;
183
- indices[4] = 6;
184
- indices[5] = 7;
185
- indices[6] = 7;
186
- indices[7] = 4;
187
- indices[8] = 0;
188
- indices[9] = 1;
189
- indices[10] = 1;
190
- indices[11] = 2;
191
- indices[12] = 2;
192
- indices[13] = 3;
193
- indices[14] = 3;
194
- indices[15] = 0;
195
- indices[16] = 0;
196
- indices[17] = 4;
197
- indices[18] = 1;
198
- indices[19] = 5;
199
- indices[20] = 2;
200
- indices[21] = 6;
201
- indices[22] = 3;
202
- indices[23] = 7;
203
- const diff = Cartesian3_default.subtract(max, min, diffScratch);
204
- const radius = Cartesian3_default.magnitude(diff) * 0.5;
205
- if (defined_default(boxGeometry._offsetAttribute)) {
206
- const length = positions.length;
207
- const offsetValue = boxGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
208
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
209
- attributes.applyOffset = new GeometryAttribute_default({
210
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
211
- componentsPerAttribute: 1,
212
- values: applyOffset
213
- });
214
- }
215
- return new Geometry_default({
216
- attributes,
217
- indices,
218
- primitiveType: PrimitiveType_default.LINES,
219
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, radius),
220
- offsetAttribute: boxGeometry._offsetAttribute
221
- });
222
- };
223
- var BoxOutlineGeometry_default = BoxOutlineGeometry;
224
-
225
- // packages/engine/Source/Workers/createBoxOutlineGeometry.js
226
- function createBoxOutlineGeometry(boxGeometry, offset) {
227
- if (defined_default(offset)) {
228
- boxGeometry = BoxOutlineGeometry_default.unpack(boxGeometry, offset);
229
- }
230
- return BoxOutlineGeometry_default.createGeometry(boxGeometry);
231
- }
232
- var createBoxOutlineGeometry_default = createBoxOutlineGeometry;
233
- export {
234
- createBoxOutlineGeometry_default as default
235
- };
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.115
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,175 +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-JURN7NPV.js";
29
- import "./chunk-EERJKOAF.js";
30
- import "./chunk-BIKA3NRA.js";
31
- import "./chunk-EG6PTBY2.js";
32
- import "./chunk-Z3TIFFGF.js";
33
- import "./chunk-ZT7KWISZ.js";
34
- import "./chunk-F3YA3Y2Z.js";
35
- import {
36
- VertexFormat_default
37
- } from "./chunk-2FWRMUTY.js";
38
- import "./chunk-2FRVPMCS.js";
39
- import "./chunk-Y5UQJLYE.js";
40
- import "./chunk-LPR3YNP2.js";
41
- import "./chunk-4H7PY4U5.js";
42
- import "./chunk-7TC63SJW.js";
43
- import "./chunk-FJKNFAKQ.js";
44
- import "./chunk-TTUZP4BO.js";
45
- import "./chunk-BG4UCVXN.js";
46
- import "./chunk-YJEBABKH.js";
47
- import "./chunk-PPH7OFP3.js";
48
- import {
49
- Cartesian3_default,
50
- Ellipsoid_default
51
- } from "./chunk-OGXZVPPM.js";
52
- import "./chunk-5QULIR53.js";
53
- import "./chunk-SOWMRMWA.js";
54
- import "./chunk-STW2DGFI.js";
55
- import {
56
- defaultValue_default
57
- } from "./chunk-BBWDMCVU.js";
58
- import {
59
- Check_default
60
- } from "./chunk-XGI5BXZY.js";
61
- import {
62
- defined_default
63
- } from "./chunk-YWTJ2B4B.js";
64
-
65
- // packages/engine/Source/Core/CircleGeometry.js
66
- function CircleGeometry(options) {
67
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
68
- const radius = options.radius;
69
- Check_default.typeOf.number("radius", radius);
70
- const ellipseGeometryOptions = {
71
- center: options.center,
72
- semiMajorAxis: radius,
73
- semiMinorAxis: radius,
74
- ellipsoid: options.ellipsoid,
75
- height: options.height,
76
- extrudedHeight: options.extrudedHeight,
77
- granularity: options.granularity,
78
- vertexFormat: options.vertexFormat,
79
- stRotation: options.stRotation,
80
- shadowVolume: options.shadowVolume
81
- };
82
- this._ellipseGeometry = new EllipseGeometry_default(ellipseGeometryOptions);
83
- this._workerName = "createCircleGeometry";
84
- }
85
- CircleGeometry.packedLength = EllipseGeometry_default.packedLength;
86
- CircleGeometry.pack = function(value, array, startingIndex) {
87
- Check_default.typeOf.object("value", value);
88
- return EllipseGeometry_default.pack(value._ellipseGeometry, array, startingIndex);
89
- };
90
- var scratchEllipseGeometry = new EllipseGeometry_default({
91
- center: new Cartesian3_default(),
92
- semiMajorAxis: 1,
93
- semiMinorAxis: 1
94
- });
95
- var scratchOptions = {
96
- center: new Cartesian3_default(),
97
- radius: void 0,
98
- ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE),
99
- height: void 0,
100
- extrudedHeight: void 0,
101
- granularity: void 0,
102
- vertexFormat: new VertexFormat_default(),
103
- stRotation: void 0,
104
- semiMajorAxis: void 0,
105
- semiMinorAxis: void 0,
106
- shadowVolume: void 0
107
- };
108
- CircleGeometry.unpack = function(array, startingIndex, result) {
109
- const ellipseGeometry = EllipseGeometry_default.unpack(
110
- array,
111
- startingIndex,
112
- scratchEllipseGeometry
113
- );
114
- scratchOptions.center = Cartesian3_default.clone(
115
- ellipseGeometry._center,
116
- scratchOptions.center
117
- );
118
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
119
- ellipseGeometry._ellipsoid,
120
- scratchOptions.ellipsoid
121
- );
122
- scratchOptions.height = ellipseGeometry._height;
123
- scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
124
- scratchOptions.granularity = ellipseGeometry._granularity;
125
- scratchOptions.vertexFormat = VertexFormat_default.clone(
126
- ellipseGeometry._vertexFormat,
127
- scratchOptions.vertexFormat
128
- );
129
- scratchOptions.stRotation = ellipseGeometry._stRotation;
130
- scratchOptions.shadowVolume = ellipseGeometry._shadowVolume;
131
- if (!defined_default(result)) {
132
- scratchOptions.radius = ellipseGeometry._semiMajorAxis;
133
- return new CircleGeometry(scratchOptions);
134
- }
135
- scratchOptions.semiMajorAxis = ellipseGeometry._semiMajorAxis;
136
- scratchOptions.semiMinorAxis = ellipseGeometry._semiMinorAxis;
137
- result._ellipseGeometry = new EllipseGeometry_default(scratchOptions);
138
- return result;
139
- };
140
- CircleGeometry.createGeometry = function(circleGeometry) {
141
- return EllipseGeometry_default.createGeometry(circleGeometry._ellipseGeometry);
142
- };
143
- CircleGeometry.createShadowVolume = function(circleGeometry, minHeightFunc, maxHeightFunc) {
144
- const granularity = circleGeometry._ellipseGeometry._granularity;
145
- const ellipsoid = circleGeometry._ellipseGeometry._ellipsoid;
146
- const minHeight = minHeightFunc(granularity, ellipsoid);
147
- const maxHeight = maxHeightFunc(granularity, ellipsoid);
148
- return new CircleGeometry({
149
- center: circleGeometry._ellipseGeometry._center,
150
- radius: circleGeometry._ellipseGeometry._semiMajorAxis,
151
- ellipsoid,
152
- stRotation: circleGeometry._ellipseGeometry._stRotation,
153
- granularity,
154
- extrudedHeight: minHeight,
155
- height: maxHeight,
156
- vertexFormat: VertexFormat_default.POSITION_ONLY,
157
- shadowVolume: true
158
- });
159
- };
160
- Object.defineProperties(CircleGeometry.prototype, {
161
- /**
162
- * @private
163
- */
164
- rectangle: {
165
- get: function() {
166
- return this._ellipseGeometry.rectangle;
167
- }
168
- },
169
- /**
170
- * For remapping texture coordinates when rendering CircleGeometries as GroundPrimitives.
171
- * @private
172
- */
173
- textureCoordinateRotationPoints: {
174
- get: function() {
175
- return this._ellipseGeometry.textureCoordinateRotationPoints;
176
- }
177
- }
178
- });
179
- var CircleGeometry_default = CircleGeometry;
180
-
181
- // packages/engine/Source/Workers/createCircleGeometry.js
182
- function createCircleGeometry(circleGeometry, offset) {
183
- if (defined_default(offset)) {
184
- circleGeometry = CircleGeometry_default.unpack(circleGeometry, offset);
185
- }
186
- circleGeometry._ellipseGeometry._center = Cartesian3_default.clone(
187
- circleGeometry._ellipseGeometry._center
188
- );
189
- circleGeometry._ellipseGeometry._ellipsoid = Ellipsoid_default.clone(
190
- circleGeometry._ellipseGeometry._ellipsoid
191
- );
192
- return CircleGeometry_default.createGeometry(circleGeometry);
193
- }
194
- var createCircleGeometry_default = createCircleGeometry;
195
- export {
196
- createCircleGeometry_default as default
197
- };
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.115
4
+ * Version 1.132
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -23,125 +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-BROJAZRZ.js";
29
- import "./chunk-EERJKOAF.js";
30
- import "./chunk-F3YA3Y2Z.js";
31
- import "./chunk-LPR3YNP2.js";
32
- import "./chunk-4H7PY4U5.js";
33
- import "./chunk-7TC63SJW.js";
34
- import "./chunk-FJKNFAKQ.js";
35
- import "./chunk-TTUZP4BO.js";
36
- import "./chunk-BG4UCVXN.js";
37
- import "./chunk-YJEBABKH.js";
38
- import "./chunk-PPH7OFP3.js";
39
- import {
40
- Cartesian3_default,
41
- Ellipsoid_default
42
- } from "./chunk-OGXZVPPM.js";
43
- import "./chunk-5QULIR53.js";
44
- import "./chunk-SOWMRMWA.js";
45
- import "./chunk-STW2DGFI.js";
46
- import {
47
- defaultValue_default
48
- } from "./chunk-BBWDMCVU.js";
49
- import {
50
- Check_default
51
- } from "./chunk-XGI5BXZY.js";
52
- import {
53
- defined_default
54
- } from "./chunk-YWTJ2B4B.js";
55
-
56
- // packages/engine/Source/Core/CircleOutlineGeometry.js
57
- function CircleOutlineGeometry(options) {
58
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
59
- const radius = options.radius;
60
- Check_default.typeOf.number("radius", radius);
61
- const ellipseGeometryOptions = {
62
- center: options.center,
63
- semiMajorAxis: radius,
64
- semiMinorAxis: radius,
65
- ellipsoid: options.ellipsoid,
66
- height: options.height,
67
- extrudedHeight: options.extrudedHeight,
68
- granularity: options.granularity,
69
- numberOfVerticalLines: options.numberOfVerticalLines
70
- };
71
- this._ellipseGeometry = new EllipseOutlineGeometry_default(ellipseGeometryOptions);
72
- this._workerName = "createCircleOutlineGeometry";
73
- }
74
- CircleOutlineGeometry.packedLength = EllipseOutlineGeometry_default.packedLength;
75
- CircleOutlineGeometry.pack = function(value, array, startingIndex) {
76
- Check_default.typeOf.object("value", value);
77
- return EllipseOutlineGeometry_default.pack(
78
- value._ellipseGeometry,
79
- array,
80
- startingIndex
81
- );
82
- };
83
- var scratchEllipseGeometry = new EllipseOutlineGeometry_default({
84
- center: new Cartesian3_default(),
85
- semiMajorAxis: 1,
86
- semiMinorAxis: 1
87
- });
88
- var scratchOptions = {
89
- center: new Cartesian3_default(),
90
- radius: void 0,
91
- ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE),
92
- height: void 0,
93
- extrudedHeight: void 0,
94
- granularity: void 0,
95
- numberOfVerticalLines: void 0,
96
- semiMajorAxis: void 0,
97
- semiMinorAxis: void 0
98
- };
99
- CircleOutlineGeometry.unpack = function(array, startingIndex, result) {
100
- const ellipseGeometry = EllipseOutlineGeometry_default.unpack(
101
- array,
102
- startingIndex,
103
- scratchEllipseGeometry
104
- );
105
- scratchOptions.center = Cartesian3_default.clone(
106
- ellipseGeometry._center,
107
- scratchOptions.center
108
- );
109
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
110
- ellipseGeometry._ellipsoid,
111
- scratchOptions.ellipsoid
112
- );
113
- scratchOptions.height = ellipseGeometry._height;
114
- scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
115
- scratchOptions.granularity = ellipseGeometry._granularity;
116
- scratchOptions.numberOfVerticalLines = ellipseGeometry._numberOfVerticalLines;
117
- if (!defined_default(result)) {
118
- scratchOptions.radius = ellipseGeometry._semiMajorAxis;
119
- return new CircleOutlineGeometry(scratchOptions);
120
- }
121
- scratchOptions.semiMajorAxis = ellipseGeometry._semiMajorAxis;
122
- scratchOptions.semiMinorAxis = ellipseGeometry._semiMinorAxis;
123
- result._ellipseGeometry = new EllipseOutlineGeometry_default(scratchOptions);
124
- return result;
125
- };
126
- CircleOutlineGeometry.createGeometry = function(circleGeometry) {
127
- return EllipseOutlineGeometry_default.createGeometry(circleGeometry._ellipseGeometry);
128
- };
129
- var CircleOutlineGeometry_default = CircleOutlineGeometry;
130
-
131
- // packages/engine/Source/Workers/createCircleOutlineGeometry.js
132
- function createCircleOutlineGeometry(circleGeometry, offset) {
133
- if (defined_default(offset)) {
134
- circleGeometry = CircleOutlineGeometry_default.unpack(circleGeometry, offset);
135
- }
136
- circleGeometry._ellipseGeometry._center = Cartesian3_default.clone(
137
- circleGeometry._ellipseGeometry._center
138
- );
139
- circleGeometry._ellipseGeometry._ellipsoid = Ellipsoid_default.clone(
140
- circleGeometry._ellipseGeometry._ellipsoid
141
- );
142
- return CircleOutlineGeometry_default.createGeometry(circleGeometry);
143
- }
144
- var createCircleOutlineGeometry_default = createCircleOutlineGeometry;
145
- export {
146
- createCircleOutlineGeometry_default as default
147
- };
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};