@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,212 +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
- FrustumGeometry_default,
28
- OrthographicFrustum_default,
29
- PerspectiveFrustum_default
30
- } from "./chunk-GNBFYG7F.js";
31
- import "./chunk-EJZTDTUH.js";
32
- import "./chunk-2ZGOQXYU.js";
33
- import {
34
- GeometryAttributes_default
35
- } from "./chunk-DI5NGJUP.js";
36
- import {
37
- GeometryAttribute_default,
38
- Geometry_default,
39
- PrimitiveType_default
40
- } from "./chunk-GWCFU2SA.js";
41
- import {
42
- BoundingSphere_default
43
- } from "./chunk-VJZB3WAV.js";
44
- import {
45
- Quaternion_default
46
- } from "./chunk-5PTXS2GO.js";
47
- import {
48
- ComponentDatatype_default
49
- } from "./chunk-K4GQUNB5.js";
50
- import {
51
- Cartesian3_default
52
- } from "./chunk-YFXQECWV.js";
53
- import "./chunk-XY4BATBS.js";
54
- import "./chunk-MXIZJAPH.js";
55
- import "./chunk-6CHGCNMW.js";
56
- import {
57
- defaultValue_default
58
- } from "./chunk-7JO7GPJN.js";
59
- import {
60
- Check_default
61
- } from "./chunk-AD63PIY6.js";
62
- import {
63
- defined_default
64
- } from "./chunk-E63IIM5T.js";
65
-
66
- // packages/engine/Source/Core/FrustumOutlineGeometry.js
67
- var PERSPECTIVE = 0;
68
- var ORTHOGRAPHIC = 1;
69
- function FrustumOutlineGeometry(options) {
70
- Check_default.typeOf.object("options", options);
71
- Check_default.typeOf.object("options.frustum", options.frustum);
72
- Check_default.typeOf.object("options.origin", options.origin);
73
- Check_default.typeOf.object("options.orientation", options.orientation);
74
- const frustum = options.frustum;
75
- const orientation = options.orientation;
76
- const origin = options.origin;
77
- const drawNearPlane = defaultValue_default(options._drawNearPlane, true);
78
- let frustumType;
79
- let frustumPackedLength;
80
- if (frustum instanceof PerspectiveFrustum_default) {
81
- frustumType = PERSPECTIVE;
82
- frustumPackedLength = PerspectiveFrustum_default.packedLength;
83
- } else if (frustum instanceof OrthographicFrustum_default) {
84
- frustumType = ORTHOGRAPHIC;
85
- frustumPackedLength = OrthographicFrustum_default.packedLength;
86
- }
87
- this._frustumType = frustumType;
88
- this._frustum = frustum.clone();
89
- this._origin = Cartesian3_default.clone(origin);
90
- this._orientation = Quaternion_default.clone(orientation);
91
- this._drawNearPlane = drawNearPlane;
92
- this._workerName = "createFrustumOutlineGeometry";
93
- this.packedLength = 2 + frustumPackedLength + Cartesian3_default.packedLength + Quaternion_default.packedLength;
94
- }
95
- FrustumOutlineGeometry.pack = function(value, array, startingIndex) {
96
- Check_default.typeOf.object("value", value);
97
- Check_default.defined("array", array);
98
- startingIndex = defaultValue_default(startingIndex, 0);
99
- const frustumType = value._frustumType;
100
- const frustum = value._frustum;
101
- array[startingIndex++] = frustumType;
102
- if (frustumType === PERSPECTIVE) {
103
- PerspectiveFrustum_default.pack(frustum, array, startingIndex);
104
- startingIndex += PerspectiveFrustum_default.packedLength;
105
- } else {
106
- OrthographicFrustum_default.pack(frustum, array, startingIndex);
107
- startingIndex += OrthographicFrustum_default.packedLength;
108
- }
109
- Cartesian3_default.pack(value._origin, array, startingIndex);
110
- startingIndex += Cartesian3_default.packedLength;
111
- Quaternion_default.pack(value._orientation, array, startingIndex);
112
- startingIndex += Quaternion_default.packedLength;
113
- array[startingIndex] = value._drawNearPlane ? 1 : 0;
114
- return array;
115
- };
116
- var scratchPackPerspective = new PerspectiveFrustum_default();
117
- var scratchPackOrthographic = new OrthographicFrustum_default();
118
- var scratchPackQuaternion = new Quaternion_default();
119
- var scratchPackorigin = new Cartesian3_default();
120
- FrustumOutlineGeometry.unpack = function(array, startingIndex, result) {
121
- Check_default.defined("array", array);
122
- startingIndex = defaultValue_default(startingIndex, 0);
123
- const frustumType = array[startingIndex++];
124
- let frustum;
125
- if (frustumType === PERSPECTIVE) {
126
- frustum = PerspectiveFrustum_default.unpack(
127
- array,
128
- startingIndex,
129
- scratchPackPerspective
130
- );
131
- startingIndex += PerspectiveFrustum_default.packedLength;
132
- } else {
133
- frustum = OrthographicFrustum_default.unpack(
134
- array,
135
- startingIndex,
136
- scratchPackOrthographic
137
- );
138
- startingIndex += OrthographicFrustum_default.packedLength;
139
- }
140
- const origin = Cartesian3_default.unpack(array, startingIndex, scratchPackorigin);
141
- startingIndex += Cartesian3_default.packedLength;
142
- const orientation = Quaternion_default.unpack(
143
- array,
144
- startingIndex,
145
- scratchPackQuaternion
146
- );
147
- startingIndex += Quaternion_default.packedLength;
148
- const drawNearPlane = array[startingIndex] === 1;
149
- if (!defined_default(result)) {
150
- return new FrustumOutlineGeometry({
151
- frustum,
152
- origin,
153
- orientation,
154
- _drawNearPlane: drawNearPlane
155
- });
156
- }
157
- const frustumResult = frustumType === result._frustumType ? result._frustum : void 0;
158
- result._frustum = frustum.clone(frustumResult);
159
- result._frustumType = frustumType;
160
- result._origin = Cartesian3_default.clone(origin, result._origin);
161
- result._orientation = Quaternion_default.clone(orientation, result._orientation);
162
- result._drawNearPlane = drawNearPlane;
163
- return result;
164
- };
165
- FrustumOutlineGeometry.createGeometry = function(frustumGeometry) {
166
- const frustumType = frustumGeometry._frustumType;
167
- const frustum = frustumGeometry._frustum;
168
- const origin = frustumGeometry._origin;
169
- const orientation = frustumGeometry._orientation;
170
- const drawNearPlane = frustumGeometry._drawNearPlane;
171
- const positions = new Float64Array(3 * 4 * 2);
172
- FrustumGeometry_default._computeNearFarPlanes(
173
- origin,
174
- orientation,
175
- frustumType,
176
- frustum,
177
- positions
178
- );
179
- const attributes = new GeometryAttributes_default({
180
- position: new GeometryAttribute_default({
181
- componentDatatype: ComponentDatatype_default.DOUBLE,
182
- componentsPerAttribute: 3,
183
- values: positions
184
- })
185
- });
186
- let offset;
187
- let index;
188
- const numberOfPlanes = drawNearPlane ? 2 : 1;
189
- const indices = new Uint16Array(8 * (numberOfPlanes + 1));
190
- let i = drawNearPlane ? 0 : 1;
191
- for (; i < 2; ++i) {
192
- offset = drawNearPlane ? i * 8 : 0;
193
- index = i * 4;
194
- indices[offset] = index;
195
- indices[offset + 1] = index + 1;
196
- indices[offset + 2] = index + 1;
197
- indices[offset + 3] = index + 2;
198
- indices[offset + 4] = index + 2;
199
- indices[offset + 5] = index + 3;
200
- indices[offset + 6] = index + 3;
201
- indices[offset + 7] = index;
202
- }
203
- for (i = 0; i < 2; ++i) {
204
- offset = (numberOfPlanes + i) * 8;
205
- index = i * 4;
206
- indices[offset] = index;
207
- indices[offset + 1] = index + 4;
208
- indices[offset + 2] = index + 1;
209
- indices[offset + 3] = index + 5;
210
- indices[offset + 4] = index + 2;
211
- indices[offset + 5] = index + 6;
212
- indices[offset + 6] = index + 3;
213
- indices[offset + 7] = index + 7;
214
- }
215
- return new Geometry_default({
216
- attributes,
217
- indices,
218
- primitiveType: PrimitiveType_default.LINES,
219
- boundingSphere: BoundingSphere_default.fromVertices(positions)
220
- });
221
- };
222
- var FrustumOutlineGeometry_default = FrustumOutlineGeometry;
223
-
224
- // packages/engine/Source/Workers/createFrustumOutlineGeometry.js
225
- function createFrustumOutlineGeometry(frustumGeometry, offset) {
226
- if (defined_default(offset)) {
227
- frustumGeometry = FrustumOutlineGeometry_default.unpack(frustumGeometry, offset);
228
- }
229
- return FrustumOutlineGeometry_default.createGeometry(frustumGeometry);
230
- }
231
- var createFrustumOutlineGeometry_default = createFrustumOutlineGeometry;
232
- export {
233
- createFrustumOutlineGeometry_default as default
234
- };
26
+ import{a as k,b as _,c as A}from"./chunk-IYTZ52EY.js";import"./chunk-CYCB63OH.js";import"./chunk-HTFSEEMT.js";import{a as F}from"./chunk-A56XVLQR.js";import{b,c as N,d as g}from"./chunk-RCV6KWXS.js";import{d as y}from"./chunk-4IW2T6GF.js";import{f as s}from"./chunk-PSPPBZWI.js";import{a as T}from"./chunk-AU7IKHOH.js";import{a}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{b as h}from"./chunk-LEYMRMBK.js";import{e as w}from"./chunk-VTAIKJXX.js";var d=0,j=1;function P(e){h.typeOf.object("options",e),h.typeOf.object("options.frustum",e.frustum),h.typeOf.object("options.origin",e.origin),h.typeOf.object("options.orientation",e.orientation);let t=e.frustum,o=e.orientation,u=e.origin,c=e._drawNearPlane??!0,p,m;t instanceof _?(p=d,m=_.packedLength):t instanceof k&&(p=j,m=k.packedLength),this._frustumType=p,this._frustum=t.clone(),this._origin=a.clone(u),this._orientation=s.clone(o),this._drawNearPlane=c,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+m+a.packedLength+s.packedLength}P.pack=function(e,t,o){h.typeOf.object("value",e),h.defined("array",t),o=o??0;let u=e._frustumType,c=e._frustum;return t[o++]=u,u===d?(_.pack(c,t,o),o+=_.packedLength):(k.pack(c,t,o),o+=k.packedLength),a.pack(e._origin,t,o),o+=a.packedLength,s.pack(e._orientation,t,o),o+=s.packedLength,t[o]=e._drawNearPlane?1:0,t};var C=new _,E=new k,G=new s,R=new a;P.unpack=function(e,t,o){h.defined("array",e),t=t??0;let u=e[t++],c;u===d?(c=_.unpack(e,t,C),t+=_.packedLength):(c=k.unpack(e,t,E),t+=k.packedLength);let p=a.unpack(e,t,R);t+=a.packedLength;let m=s.unpack(e,t,G);t+=s.packedLength;let l=e[t]===1;if(!w(o))return new P({frustum:c,origin:p,orientation:m,_drawNearPlane:l});let n=u===o._frustumType?o._frustum:void 0;return o._frustum=c.clone(n),o._frustumType=u,o._origin=a.clone(p,o._origin),o._orientation=s.clone(m,o._orientation),o._drawNearPlane=l,o};P.createGeometry=function(e){let t=e._frustumType,o=e._frustum,u=e._origin,c=e._orientation,p=e._drawNearPlane,m=new Float64Array(24);A._computeNearFarPlanes(u,c,t,o,m);let l=new F({position:new g({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:m})}),n,i,O=p?2:1,r=new Uint16Array(8*(O+1)),f=p?0:1;for(;f<2;++f)n=p?f*8:0,i=f*4,r[n]=i,r[n+1]=i+1,r[n+2]=i+1,r[n+3]=i+2,r[n+4]=i+2,r[n+5]=i+3,r[n+6]=i+3,r[n+7]=i;for(f=0;f<2;++f)n=(O+f)*8,i=f*4,r[n]=i,r[n+1]=i+4,r[n+2]=i+1,r[n+3]=i+5,r[n+4]=i+2,r[n+5]=i+6,r[n+6]=i+3,r[n+7]=i+7;return new N({attributes:l,indices:r,primitiveType:b.LINES,boundingSphere:y.fromVertices(m)})};var L=P;function S(e,t){return w(t)&&(e=L.unpack(e,t)),L.createGeometry(e)}var $=S;export{$ 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,146 +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
- PrimitivePipeline_default
28
- } from "./chunk-TKVT5GQM.js";
29
- import {
30
- createTaskProcessorWorker_default
31
- } from "./chunk-5ODQSF26.js";
32
- import "./chunk-E27BLMDD.js";
33
- import "./chunk-GGZJN2TI.js";
34
- import "./chunk-NGPPMXRM.js";
35
- import "./chunk-C6YYBQXW.js";
36
- import "./chunk-3Q2L65QU.js";
37
- import "./chunk-2ZGOQXYU.js";
38
- import "./chunk-26GA3JAM.js";
39
- import "./chunk-DI5NGJUP.js";
40
- import "./chunk-GWCFU2SA.js";
41
- import "./chunk-VJZB3WAV.js";
42
- import "./chunk-5PTXS2GO.js";
43
- import "./chunk-K4GQUNB5.js";
44
- import "./chunk-YFXQECWV.js";
45
- import "./chunk-XY4BATBS.js";
46
- import "./chunk-MXIZJAPH.js";
47
- import "./chunk-6CHGCNMW.js";
48
- import {
49
- defaultValue_default
50
- } from "./chunk-7JO7GPJN.js";
51
- import {
52
- DeveloperError_default
53
- } from "./chunk-AD63PIY6.js";
54
- import {
55
- __glob,
56
- __require,
57
- defined_default
58
- } from "./chunk-E63IIM5T.js";
59
-
60
- // import("./**/*.js") in packages/engine/Source/Workers/createGeometry.js
61
- var globImport_js = __glob({
62
- "./combineGeometry.js": () => import("./combineGeometry.js"),
63
- "./createBoxGeometry.js": () => import("./createBoxGeometry.js"),
64
- "./createBoxOutlineGeometry.js": () => import("./createBoxOutlineGeometry.js"),
65
- "./createCircleGeometry.js": () => import("./createCircleGeometry.js"),
66
- "./createCircleOutlineGeometry.js": () => import("./createCircleOutlineGeometry.js"),
67
- "./createCoplanarPolygonGeometry.js": () => import("./createCoplanarPolygonGeometry.js"),
68
- "./createCoplanarPolygonOutlineGeometry.js": () => import("./createCoplanarPolygonOutlineGeometry.js"),
69
- "./createCorridorGeometry.js": () => import("./createCorridorGeometry.js"),
70
- "./createCorridorOutlineGeometry.js": () => import("./createCorridorOutlineGeometry.js"),
71
- "./createCylinderGeometry.js": () => import("./createCylinderGeometry.js"),
72
- "./createCylinderOutlineGeometry.js": () => import("./createCylinderOutlineGeometry.js"),
73
- "./createEllipseGeometry.js": () => import("./createEllipseGeometry.js"),
74
- "./createEllipseOutlineGeometry.js": () => import("./createEllipseOutlineGeometry.js"),
75
- "./createEllipsoidGeometry.js": () => import("./createEllipsoidGeometry.js"),
76
- "./createEllipsoidOutlineGeometry.js": () => import("./createEllipsoidOutlineGeometry.js"),
77
- "./createFrustumGeometry.js": () => import("./createFrustumGeometry.js"),
78
- "./createFrustumOutlineGeometry.js": () => import("./createFrustumOutlineGeometry.js"),
79
- "./createGeometry.js": () => import("./createGeometry.js"),
80
- "./createGroundPolylineGeometry.js": () => import("./createGroundPolylineGeometry.js"),
81
- "./createPlaneGeometry.js": () => import("./createPlaneGeometry.js"),
82
- "./createPlaneOutlineGeometry.js": () => import("./createPlaneOutlineGeometry.js"),
83
- "./createPolygonGeometry.js": () => import("./createPolygonGeometry.js"),
84
- "./createPolygonOutlineGeometry.js": () => import("./createPolygonOutlineGeometry.js"),
85
- "./createPolylineGeometry.js": () => import("./createPolylineGeometry.js"),
86
- "./createPolylineVolumeGeometry.js": () => import("./createPolylineVolumeGeometry.js"),
87
- "./createPolylineVolumeOutlineGeometry.js": () => import("./createPolylineVolumeOutlineGeometry.js"),
88
- "./createRectangleGeometry.js": () => import("./createRectangleGeometry.js"),
89
- "./createRectangleOutlineGeometry.js": () => import("./createRectangleOutlineGeometry.js"),
90
- "./createSimplePolylineGeometry.js": () => import("./createSimplePolylineGeometry.js"),
91
- "./createSphereGeometry.js": () => import("./createSphereGeometry.js"),
92
- "./createSphereOutlineGeometry.js": () => import("./createSphereOutlineGeometry.js"),
93
- "./createTaskProcessorWorker.js": () => import("./createTaskProcessorWorker.js"),
94
- "./createVectorTileClampedPolylines.js": () => import("./createVectorTileClampedPolylines.js"),
95
- "./createVectorTileGeometries.js": () => import("./createVectorTileGeometries.js"),
96
- "./createVectorTilePoints.js": () => import("./createVectorTilePoints.js"),
97
- "./createVectorTilePolygons.js": () => import("./createVectorTilePolygons.js"),
98
- "./createVectorTilePolylines.js": () => import("./createVectorTilePolylines.js"),
99
- "./createVerticesFromGoogleEarthEnterpriseBuffer.js": () => import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),
100
- "./createVerticesFromHeightmap.js": () => import("./createVerticesFromHeightmap.js"),
101
- "./createVerticesFromQuantizedTerrainMesh.js": () => import("./createVerticesFromQuantizedTerrainMesh.js"),
102
- "./createWallGeometry.js": () => import("./createWallGeometry.js"),
103
- "./createWallOutlineGeometry.js": () => import("./createWallOutlineGeometry.js"),
104
- "./decodeDraco.js": () => import("./decodeDraco.js"),
105
- "./decodeGoogleEarthEnterprisePacket.js": () => import("./decodeGoogleEarthEnterprisePacket.js"),
106
- "./decodeI3S.js": () => import("./decodeI3S.js"),
107
- "./transcodeKTX2.js": () => import("./transcodeKTX2.js"),
108
- "./transferTypedArrayTest.js": () => import("./transferTypedArrayTest.js"),
109
- "./upsampleQuantizedTerrainMesh.js": () => import("./upsampleQuantizedTerrainMesh.js")
110
- });
111
-
112
- // packages/engine/Source/Workers/createGeometry.js
113
- var moduleCache = {};
114
- async function getModule(moduleName, modulePath) {
115
- let module = defaultValue_default(moduleCache[modulePath], moduleCache[moduleName]);
116
- if (defined_default(module)) {
117
- return module;
118
- }
119
- if (defined_default(modulePath)) {
120
- if (typeof exports === "object") {
121
- module = __require(modulePath);
122
- } else {
123
- const result = await import(modulePath);
124
- module = result.default;
125
- }
126
- moduleCache[modulePath] = module;
127
- return module;
128
- }
129
- if (typeof exports === "object") {
130
- module = __require(`Workers/${moduleName}`);
131
- } else {
132
- const result = defined_default(modulePath) ? await import(modulePath) : await globImport_js(`./${moduleName}.js`);
133
- module = result.default;
134
- }
135
- moduleCache[moduleName] = module;
136
- return module;
137
- }
138
- async function createGeometry(parameters, transferableObjects) {
139
- const subTasks = parameters.subTasks;
140
- const length = subTasks.length;
141
- const resultsOrPromises = new Array(length);
142
- for (let i = 0; i < length; i++) {
143
- const task = subTasks[i];
144
- const geometry = task.geometry;
145
- const moduleName = task.moduleName;
146
- const modulePath = task.modulePath;
147
- if (defined_default(moduleName) && defined_default(modulePath)) {
148
- throw new DeveloperError_default("Must only set moduleName or modulePath");
149
- }
150
- if (defined_default(moduleName) || defined_default(modulePath)) {
151
- resultsOrPromises[i] = getModule(moduleName, modulePath).then(
152
- (createFunction) => createFunction(geometry, task.offset)
153
- );
154
- } else {
155
- resultsOrPromises[i] = geometry;
156
- }
157
- }
158
- return Promise.all(resultsOrPromises).then(function(results) {
159
- return PrimitivePipeline_default.packCreateGeometryResults(
160
- results,
161
- transferableObjects
162
- );
163
- });
164
- }
165
- var createGeometry_default = createTaskProcessorWorker_default(createGeometry);
166
- export {
167
- createGeometry_default as default
168
- };
26
+ import{a as k}from"./chunk-VTBDSFTG.js";import{a as w}from"./chunk-WZDE3RYP.js";import"./chunk-DQQ63PYM.js";import"./chunk-VW6VD53G.js";import"./chunk-DEPHB2WM.js";import"./chunk-QOUAJ6TL.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"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{a as y}from"./chunk-LEYMRMBK.js";import{a,b as p,e as r}from"./chunk-VTAIKJXX.js";var g=p({"./combineGeometry.js":()=>import("./combineGeometry.js"),"./createBoxGeometry.js":()=>import("./createBoxGeometry.js"),"./createBoxOutlineGeometry.js":()=>import("./createBoxOutlineGeometry.js"),"./createCircleGeometry.js":()=>import("./createCircleGeometry.js"),"./createCircleOutlineGeometry.js":()=>import("./createCircleOutlineGeometry.js"),"./createCoplanarPolygonGeometry.js":()=>import("./createCoplanarPolygonGeometry.js"),"./createCoplanarPolygonOutlineGeometry.js":()=>import("./createCoplanarPolygonOutlineGeometry.js"),"./createCorridorGeometry.js":()=>import("./createCorridorGeometry.js"),"./createCorridorOutlineGeometry.js":()=>import("./createCorridorOutlineGeometry.js"),"./createCylinderGeometry.js":()=>import("./createCylinderGeometry.js"),"./createCylinderOutlineGeometry.js":()=>import("./createCylinderOutlineGeometry.js"),"./createEllipseGeometry.js":()=>import("./createEllipseGeometry.js"),"./createEllipseOutlineGeometry.js":()=>import("./createEllipseOutlineGeometry.js"),"./createEllipsoidGeometry.js":()=>import("./createEllipsoidGeometry.js"),"./createEllipsoidOutlineGeometry.js":()=>import("./createEllipsoidOutlineGeometry.js"),"./createFrustumGeometry.js":()=>import("./createFrustumGeometry.js"),"./createFrustumOutlineGeometry.js":()=>import("./createFrustumOutlineGeometry.js"),"./createGeometry.js":()=>import("./createGeometry.js"),"./createGroundPolylineGeometry.js":()=>import("./createGroundPolylineGeometry.js"),"./createPlaneGeometry.js":()=>import("./createPlaneGeometry.js"),"./createPlaneOutlineGeometry.js":()=>import("./createPlaneOutlineGeometry.js"),"./createPolygonGeometry.js":()=>import("./createPolygonGeometry.js"),"./createPolygonOutlineGeometry.js":()=>import("./createPolygonOutlineGeometry.js"),"./createPolylineGeometry.js":()=>import("./createPolylineGeometry.js"),"./createPolylineVolumeGeometry.js":()=>import("./createPolylineVolumeGeometry.js"),"./createPolylineVolumeOutlineGeometry.js":()=>import("./createPolylineVolumeOutlineGeometry.js"),"./createRectangleGeometry.js":()=>import("./createRectangleGeometry.js"),"./createRectangleOutlineGeometry.js":()=>import("./createRectangleOutlineGeometry.js"),"./createSimplePolylineGeometry.js":()=>import("./createSimplePolylineGeometry.js"),"./createSphereGeometry.js":()=>import("./createSphereGeometry.js"),"./createSphereOutlineGeometry.js":()=>import("./createSphereOutlineGeometry.js"),"./createTaskProcessorWorker.js":()=>import("./createTaskProcessorWorker.js"),"./createVectorTileClampedPolylines.js":()=>import("./createVectorTileClampedPolylines.js"),"./createVectorTileGeometries.js":()=>import("./createVectorTileGeometries.js"),"./createVectorTilePoints.js":()=>import("./createVectorTilePoints.js"),"./createVectorTilePolygons.js":()=>import("./createVectorTilePolygons.js"),"./createVectorTilePolylines.js":()=>import("./createVectorTilePolylines.js"),"./createVerticesFromGoogleEarthEnterpriseBuffer.js":()=>import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),"./createVerticesFromHeightmap.js":()=>import("./createVerticesFromHeightmap.js"),"./createVerticesFromQuantizedTerrainMesh.js":()=>import("./createVerticesFromQuantizedTerrainMesh.js"),"./createWallGeometry.js":()=>import("./createWallGeometry.js"),"./createWallOutlineGeometry.js":()=>import("./createWallOutlineGeometry.js"),"./decodeDraco.js":()=>import("./decodeDraco.js"),"./decodeGoogleEarthEnterprisePacket.js":()=>import("./decodeGoogleEarthEnterprisePacket.js"),"./decodeI3S.js":()=>import("./decodeI3S.js"),"./gaussianSplatSorter.js":()=>import("./gaussianSplatSorter.js"),"./gaussianSplatTextureGenerator.js":()=>import("./gaussianSplatTextureGenerator.js"),"./transcodeKTX2.js":()=>import("./transcodeKTX2.js"),"./transferTypedArrayTest.js":()=>import("./transferTypedArrayTest.js"),"./upsampleQuantizedTerrainMesh.js":()=>import("./upsampleQuantizedTerrainMesh.js")});var c={};async function b(s,t){let e=c[t]??c[s];return r(e)?e:r(t)?(typeof exports=="object"?e=a(t):e=(await import(t)).default,c[t]=e,e):(typeof exports=="object"?e=a(`Workers/${s}`):e=(r(t)?await import(t):await g(`./${s}.js`)).default,c[s]=e,e)}async function h(s,t){let e=s.subTasks,n=e.length,f=new Array(n);for(let o=0;o<n;o++){let i=e[o],m=i.geometry,u=i.moduleName,l=i.modulePath;if(r(u)&&r(l))throw new y("Must only set moduleName or modulePath");r(u)||r(l)?f[o]=b(u,l).then(d=>d(m,i.offset)):f[o]=m}return Promise.all(f).then(function(o){return k.packCreateGeometryResults(o,t)})}var G=w(h);export{G as default};