@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,200 +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
- VertexFormat_default
28
- } from "./chunk-EJZTDTUH.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
- } from "./chunk-AD63PIY6.js";
56
- import {
57
- defined_default
58
- } from "./chunk-E63IIM5T.js";
59
-
60
- // packages/engine/Source/Core/PlaneGeometry.js
61
- function PlaneGeometry(options) {
62
- options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
63
- const vertexFormat = defaultValue_default(options.vertexFormat, VertexFormat_default.DEFAULT);
64
- this._vertexFormat = vertexFormat;
65
- this._workerName = "createPlaneGeometry";
66
- }
67
- PlaneGeometry.packedLength = VertexFormat_default.packedLength;
68
- PlaneGeometry.pack = function(value, array, startingIndex) {
69
- Check_default.typeOf.object("value", value);
70
- Check_default.defined("array", array);
71
- startingIndex = defaultValue_default(startingIndex, 0);
72
- VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
73
- return array;
74
- };
75
- var scratchVertexFormat = new VertexFormat_default();
76
- var scratchOptions = {
77
- vertexFormat: scratchVertexFormat
78
- };
79
- PlaneGeometry.unpack = function(array, startingIndex, result) {
80
- Check_default.defined("array", array);
81
- startingIndex = defaultValue_default(startingIndex, 0);
82
- const vertexFormat = VertexFormat_default.unpack(
83
- array,
84
- startingIndex,
85
- scratchVertexFormat
86
- );
87
- if (!defined_default(result)) {
88
- return new PlaneGeometry(scratchOptions);
89
- }
90
- result._vertexFormat = VertexFormat_default.clone(vertexFormat, result._vertexFormat);
91
- return result;
92
- };
93
- var min = new Cartesian3_default(-0.5, -0.5, 0);
94
- var max = new Cartesian3_default(0.5, 0.5, 0);
95
- PlaneGeometry.createGeometry = function(planeGeometry) {
96
- const vertexFormat = planeGeometry._vertexFormat;
97
- const attributes = new GeometryAttributes_default();
98
- let indices;
99
- let positions;
100
- if (vertexFormat.position) {
101
- positions = new Float64Array(4 * 3);
102
- positions[0] = min.x;
103
- positions[1] = min.y;
104
- positions[2] = 0;
105
- positions[3] = max.x;
106
- positions[4] = min.y;
107
- positions[5] = 0;
108
- positions[6] = max.x;
109
- positions[7] = max.y;
110
- positions[8] = 0;
111
- positions[9] = min.x;
112
- positions[10] = max.y;
113
- positions[11] = 0;
114
- attributes.position = new GeometryAttribute_default({
115
- componentDatatype: ComponentDatatype_default.DOUBLE,
116
- componentsPerAttribute: 3,
117
- values: positions
118
- });
119
- if (vertexFormat.normal) {
120
- const normals = new Float32Array(4 * 3);
121
- normals[0] = 0;
122
- normals[1] = 0;
123
- normals[2] = 1;
124
- normals[3] = 0;
125
- normals[4] = 0;
126
- normals[5] = 1;
127
- normals[6] = 0;
128
- normals[7] = 0;
129
- normals[8] = 1;
130
- normals[9] = 0;
131
- normals[10] = 0;
132
- normals[11] = 1;
133
- attributes.normal = new GeometryAttribute_default({
134
- componentDatatype: ComponentDatatype_default.FLOAT,
135
- componentsPerAttribute: 3,
136
- values: normals
137
- });
138
- }
139
- if (vertexFormat.st) {
140
- const texCoords = new Float32Array(4 * 2);
141
- texCoords[0] = 0;
142
- texCoords[1] = 0;
143
- texCoords[2] = 1;
144
- texCoords[3] = 0;
145
- texCoords[4] = 1;
146
- texCoords[5] = 1;
147
- texCoords[6] = 0;
148
- texCoords[7] = 1;
149
- attributes.st = new GeometryAttribute_default({
150
- componentDatatype: ComponentDatatype_default.FLOAT,
151
- componentsPerAttribute: 2,
152
- values: texCoords
153
- });
154
- }
155
- if (vertexFormat.tangent) {
156
- const tangents = new Float32Array(4 * 3);
157
- tangents[0] = 1;
158
- tangents[1] = 0;
159
- tangents[2] = 0;
160
- tangents[3] = 1;
161
- tangents[4] = 0;
162
- tangents[5] = 0;
163
- tangents[6] = 1;
164
- tangents[7] = 0;
165
- tangents[8] = 0;
166
- tangents[9] = 1;
167
- tangents[10] = 0;
168
- tangents[11] = 0;
169
- attributes.tangent = new GeometryAttribute_default({
170
- componentDatatype: ComponentDatatype_default.FLOAT,
171
- componentsPerAttribute: 3,
172
- values: tangents
173
- });
174
- }
175
- if (vertexFormat.bitangent) {
176
- const bitangents = new Float32Array(4 * 3);
177
- bitangents[0] = 0;
178
- bitangents[1] = 1;
179
- bitangents[2] = 0;
180
- bitangents[3] = 0;
181
- bitangents[4] = 1;
182
- bitangents[5] = 0;
183
- bitangents[6] = 0;
184
- bitangents[7] = 1;
185
- bitangents[8] = 0;
186
- bitangents[9] = 0;
187
- bitangents[10] = 1;
188
- bitangents[11] = 0;
189
- attributes.bitangent = new GeometryAttribute_default({
190
- componentDatatype: ComponentDatatype_default.FLOAT,
191
- componentsPerAttribute: 3,
192
- values: bitangents
193
- });
194
- }
195
- indices = new Uint16Array(2 * 3);
196
- indices[0] = 0;
197
- indices[1] = 1;
198
- indices[2] = 2;
199
- indices[3] = 0;
200
- indices[4] = 2;
201
- indices[5] = 3;
202
- }
203
- return new Geometry_default({
204
- attributes,
205
- indices,
206
- primitiveType: PrimitiveType_default.TRIANGLES,
207
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, Math.sqrt(2))
208
- });
209
- };
210
- var PlaneGeometry_default = PlaneGeometry;
211
-
212
- // packages/engine/Source/Workers/createPlaneGeometry.js
213
- function createPlaneGeometry(planeGeometry, offset) {
214
- if (defined_default(offset)) {
215
- planeGeometry = PlaneGeometry_default.unpack(planeGeometry, offset);
216
- }
217
- return PlaneGeometry_default.createGeometry(planeGeometry);
218
- }
219
- var createPlaneGeometry_default = createPlaneGeometry;
220
- export {
221
- createPlaneGeometry_default as default
222
- };
26
+ import{a as m}from"./chunk-CYCB63OH.js";import{a as b}from"./chunk-A56XVLQR.js";import{b as v,c as x,d as c}from"./chunk-RCV6KWXS.js";import{d as l}from"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import{a as i}from"./chunk-AU7IKHOH.js";import{a as u,f as A}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{b as f}from"./chunk-LEYMRMBK.js";import{e as s}from"./chunk-VTAIKJXX.js";function p(r){r=r??A.EMPTY_OBJECT;let e=r.vertexFormat??m.DEFAULT;this._vertexFormat=e,this._workerName="createPlaneGeometry"}p.packedLength=m.packedLength;p.pack=function(r,e,o){return f.typeOf.object("value",r),f.defined("array",e),o=o??0,m.pack(r._vertexFormat,e,o),e};var d=new m,P={vertexFormat:d};p.unpack=function(r,e,o){f.defined("array",r),e=e??0;let a=m.unpack(r,e,d);return s(o)?(o._vertexFormat=m.clone(a,o._vertexFormat),o):new p(P)};var y=new u(-.5,-.5,0),F=new u(.5,.5,0);p.createGeometry=function(r){let e=r._vertexFormat,o=new b,a,n;if(e.position){if(n=new Float64Array(12),n[0]=y.x,n[1]=y.y,n[2]=0,n[3]=F.x,n[4]=y.y,n[5]=0,n[6]=F.x,n[7]=F.y,n[8]=0,n[9]=y.x,n[10]=F.y,n[11]=0,o.position=new c({componentDatatype:i.DOUBLE,componentsPerAttribute:3,values:n}),e.normal){let t=new Float32Array(12);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,o.normal=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}if(e.st){let t=new Float32Array(8);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,o.st=new c({componentDatatype:i.FLOAT,componentsPerAttribute:2,values:t})}if(e.tangent){let t=new Float32Array(12);t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,o.tangent=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}if(e.bitangent){let t=new Float32Array(12);t[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,o.bitangent=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}a=new Uint16Array(6),a[0]=0,a[1]=1,a[2]=2,a[3]=0,a[4]=2,a[5]=3}return new x({attributes:o,indices:a,primitiveType:v.TRIANGLES,boundingSphere:new l(u.ZERO,Math.sqrt(2))})};var w=p;function h(r,e){return s(e)&&(r=w.unpack(r,e)),w.createGeometry(r)}var N=h;export{N 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,100 +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
- GeometryAttributes_default
28
- } from "./chunk-DI5NGJUP.js";
29
- import {
30
- GeometryAttribute_default,
31
- Geometry_default,
32
- PrimitiveType_default
33
- } from "./chunk-GWCFU2SA.js";
34
- import {
35
- BoundingSphere_default
36
- } from "./chunk-VJZB3WAV.js";
37
- import "./chunk-5PTXS2GO.js";
38
- import {
39
- ComponentDatatype_default
40
- } from "./chunk-K4GQUNB5.js";
41
- import {
42
- Cartesian3_default
43
- } from "./chunk-YFXQECWV.js";
44
- import "./chunk-XY4BATBS.js";
45
- import "./chunk-MXIZJAPH.js";
46
- import "./chunk-6CHGCNMW.js";
47
- import "./chunk-7JO7GPJN.js";
48
- import {
49
- Check_default
50
- } from "./chunk-AD63PIY6.js";
51
- import {
52
- defined_default
53
- } from "./chunk-E63IIM5T.js";
54
-
55
- // packages/engine/Source/Core/PlaneOutlineGeometry.js
56
- function PlaneOutlineGeometry() {
57
- this._workerName = "createPlaneOutlineGeometry";
58
- }
59
- PlaneOutlineGeometry.packedLength = 0;
60
- PlaneOutlineGeometry.pack = function(value, array) {
61
- Check_default.defined("value", value);
62
- Check_default.defined("array", array);
63
- return array;
64
- };
65
- PlaneOutlineGeometry.unpack = function(array, startingIndex, result) {
66
- Check_default.defined("array", array);
67
- if (!defined_default(result)) {
68
- return new PlaneOutlineGeometry();
69
- }
70
- return result;
71
- };
72
- var min = new Cartesian3_default(-0.5, -0.5, 0);
73
- var max = new Cartesian3_default(0.5, 0.5, 0);
74
- PlaneOutlineGeometry.createGeometry = function() {
75
- const attributes = new GeometryAttributes_default();
76
- const indices = new Uint16Array(4 * 2);
77
- const positions = new Float64Array(4 * 3);
78
- positions[0] = min.x;
79
- positions[1] = min.y;
80
- positions[2] = min.z;
81
- positions[3] = max.x;
82
- positions[4] = min.y;
83
- positions[5] = min.z;
84
- positions[6] = max.x;
85
- positions[7] = max.y;
86
- positions[8] = min.z;
87
- positions[9] = min.x;
88
- positions[10] = max.y;
89
- positions[11] = min.z;
90
- attributes.position = new GeometryAttribute_default({
91
- componentDatatype: ComponentDatatype_default.DOUBLE,
92
- componentsPerAttribute: 3,
93
- values: positions
94
- });
95
- indices[0] = 0;
96
- indices[1] = 1;
97
- indices[2] = 1;
98
- indices[3] = 2;
99
- indices[4] = 2;
100
- indices[5] = 3;
101
- indices[6] = 3;
102
- indices[7] = 0;
103
- return new Geometry_default({
104
- attributes,
105
- indices,
106
- primitiveType: PrimitiveType_default.LINES,
107
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, Math.sqrt(2))
108
- });
109
- };
110
- var PlaneOutlineGeometry_default = PlaneOutlineGeometry;
111
-
112
- // packages/engine/Source/Workers/createPlaneOutlineGeometry.js
113
- function createPlaneOutlineGeometry(planeGeometry, offset) {
114
- if (defined_default(offset)) {
115
- planeGeometry = PlaneOutlineGeometry_default.unpack(planeGeometry, offset);
116
- }
117
- return PlaneOutlineGeometry_default.createGeometry(planeGeometry);
118
- }
119
- var createPlaneOutlineGeometry_default = createPlaneOutlineGeometry;
120
- export {
121
- createPlaneOutlineGeometry_default as default
122
- };
26
+ import{a as l}from"./chunk-A56XVLQR.js";import{b as d,c as y,d as s}from"./chunk-RCV6KWXS.js";import{d as c}from"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import{a as f}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 m}from"./chunk-LEYMRMBK.js";import{e as i}from"./chunk-VTAIKJXX.js";function o(){this._workerName="createPlaneOutlineGeometry"}o.packedLength=0;o.pack=function(r,e){return m.defined("value",r),m.defined("array",e),e};o.unpack=function(r,e,t){return m.defined("array",r),i(t)?t:new o};var n=new a(-.5,-.5,0),p=new a(.5,.5,0);o.createGeometry=function(){let r=new l,e=new Uint16Array(8),t=new Float64Array(12);return t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=p.x,t[4]=n.y,t[5]=n.z,t[6]=p.x,t[7]=p.y,t[8]=n.z,t[9]=n.x,t[10]=p.y,t[11]=n.z,r.position=new s({componentDatatype:f.DOUBLE,componentsPerAttribute:3,values:t}),e[0]=0,e[1]=1,e[2]=1,e[3]=2,e[4]=2,e[5]=3,e[6]=3,e[7]=0,new y({attributes:r,indices:e,primitiveType:d.LINES,boundingSphere:new c(a.ZERO,Math.sqrt(2))})};var u=o;function w(r,e){return i(e)&&(r=u.unpack(r,e)),u.createGeometry(r)}var D=w;export{D as default};