@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,289 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.115
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- AxisAlignedBoundingBox_default
28
- } from "./chunk-G43QFN4Q.js";
29
- import {
30
- IntersectionTests_default,
31
- Ray_default
32
- } from "./chunk-2FRVPMCS.js";
33
- import {
34
- Plane_default
35
- } from "./chunk-Y5UQJLYE.js";
36
- import {
37
- Transforms_default
38
- } from "./chunk-FJKNFAKQ.js";
39
- import {
40
- Cartesian4_default,
41
- Matrix4_default
42
- } from "./chunk-YJEBABKH.js";
43
- import {
44
- Cartesian2_default,
45
- Cartesian3_default,
46
- Ellipsoid_default
47
- } from "./chunk-OGXZVPPM.js";
48
- import {
49
- defaultValue_default
50
- } from "./chunk-BBWDMCVU.js";
51
- import {
52
- Check_default,
53
- DeveloperError_default
54
- } from "./chunk-XGI5BXZY.js";
55
- import {
56
- defined_default
57
- } from "./chunk-YWTJ2B4B.js";
58
-
59
- // packages/engine/Source/Core/EllipsoidTangentPlane.js
60
- var scratchCart4 = new Cartesian4_default();
61
- function EllipsoidTangentPlane(origin, ellipsoid) {
62
- Check_default.defined("origin", origin);
63
- ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.WGS84);
64
- origin = ellipsoid.scaleToGeodeticSurface(origin);
65
- if (!defined_default(origin)) {
66
- throw new DeveloperError_default(
67
- "origin must not be at the center of the ellipsoid."
68
- );
69
- }
70
- const eastNorthUp = Transforms_default.eastNorthUpToFixedFrame(origin, ellipsoid);
71
- this._ellipsoid = ellipsoid;
72
- this._origin = origin;
73
- this._xAxis = Cartesian3_default.fromCartesian4(
74
- Matrix4_default.getColumn(eastNorthUp, 0, scratchCart4)
75
- );
76
- this._yAxis = Cartesian3_default.fromCartesian4(
77
- Matrix4_default.getColumn(eastNorthUp, 1, scratchCart4)
78
- );
79
- const normal = Cartesian3_default.fromCartesian4(
80
- Matrix4_default.getColumn(eastNorthUp, 2, scratchCart4)
81
- );
82
- this._plane = Plane_default.fromPointNormal(origin, normal);
83
- }
84
- Object.defineProperties(EllipsoidTangentPlane.prototype, {
85
- /**
86
- * Gets the ellipsoid.
87
- * @memberof EllipsoidTangentPlane.prototype
88
- * @type {Ellipsoid}
89
- */
90
- ellipsoid: {
91
- get: function() {
92
- return this._ellipsoid;
93
- }
94
- },
95
- /**
96
- * Gets the origin.
97
- * @memberof EllipsoidTangentPlane.prototype
98
- * @type {Cartesian3}
99
- */
100
- origin: {
101
- get: function() {
102
- return this._origin;
103
- }
104
- },
105
- /**
106
- * Gets the plane which is tangent to the ellipsoid.
107
- * @memberof EllipsoidTangentPlane.prototype
108
- * @readonly
109
- * @type {Plane}
110
- */
111
- plane: {
112
- get: function() {
113
- return this._plane;
114
- }
115
- },
116
- /**
117
- * Gets the local X-axis (east) of the tangent plane.
118
- * @memberof EllipsoidTangentPlane.prototype
119
- * @readonly
120
- * @type {Cartesian3}
121
- */
122
- xAxis: {
123
- get: function() {
124
- return this._xAxis;
125
- }
126
- },
127
- /**
128
- * Gets the local Y-axis (north) of the tangent plane.
129
- * @memberof EllipsoidTangentPlane.prototype
130
- * @readonly
131
- * @type {Cartesian3}
132
- */
133
- yAxis: {
134
- get: function() {
135
- return this._yAxis;
136
- }
137
- },
138
- /**
139
- * Gets the local Z-axis (up) of the tangent plane.
140
- * @memberof EllipsoidTangentPlane.prototype
141
- * @readonly
142
- * @type {Cartesian3}
143
- */
144
- zAxis: {
145
- get: function() {
146
- return this._plane.normal;
147
- }
148
- }
149
- });
150
- var tmp = new AxisAlignedBoundingBox_default();
151
- EllipsoidTangentPlane.fromPoints = function(cartesians, ellipsoid) {
152
- Check_default.defined("cartesians", cartesians);
153
- const box = AxisAlignedBoundingBox_default.fromPoints(cartesians, tmp);
154
- return new EllipsoidTangentPlane(box.center, ellipsoid);
155
- };
156
- var scratchProjectPointOntoPlaneRay = new Ray_default();
157
- var scratchProjectPointOntoPlaneCartesian3 = new Cartesian3_default();
158
- EllipsoidTangentPlane.prototype.projectPointOntoPlane = function(cartesian, result) {
159
- Check_default.defined("cartesian", cartesian);
160
- const ray = scratchProjectPointOntoPlaneRay;
161
- ray.origin = cartesian;
162
- Cartesian3_default.normalize(cartesian, ray.direction);
163
- let intersectionPoint = IntersectionTests_default.rayPlane(
164
- ray,
165
- this._plane,
166
- scratchProjectPointOntoPlaneCartesian3
167
- );
168
- if (!defined_default(intersectionPoint)) {
169
- Cartesian3_default.negate(ray.direction, ray.direction);
170
- intersectionPoint = IntersectionTests_default.rayPlane(
171
- ray,
172
- this._plane,
173
- scratchProjectPointOntoPlaneCartesian3
174
- );
175
- }
176
- if (defined_default(intersectionPoint)) {
177
- const v = Cartesian3_default.subtract(
178
- intersectionPoint,
179
- this._origin,
180
- intersectionPoint
181
- );
182
- const x = Cartesian3_default.dot(this._xAxis, v);
183
- const y = Cartesian3_default.dot(this._yAxis, v);
184
- if (!defined_default(result)) {
185
- return new Cartesian2_default(x, y);
186
- }
187
- result.x = x;
188
- result.y = y;
189
- return result;
190
- }
191
- return void 0;
192
- };
193
- EllipsoidTangentPlane.prototype.projectPointsOntoPlane = function(cartesians, result) {
194
- Check_default.defined("cartesians", cartesians);
195
- if (!defined_default(result)) {
196
- result = [];
197
- }
198
- let count = 0;
199
- const length = cartesians.length;
200
- for (let i = 0; i < length; i++) {
201
- const p = this.projectPointOntoPlane(cartesians[i], result[count]);
202
- if (defined_default(p)) {
203
- result[count] = p;
204
- count++;
205
- }
206
- }
207
- result.length = count;
208
- return result;
209
- };
210
- EllipsoidTangentPlane.prototype.projectPointToNearestOnPlane = function(cartesian, result) {
211
- Check_default.defined("cartesian", cartesian);
212
- if (!defined_default(result)) {
213
- result = new Cartesian2_default();
214
- }
215
- const ray = scratchProjectPointOntoPlaneRay;
216
- ray.origin = cartesian;
217
- Cartesian3_default.clone(this._plane.normal, ray.direction);
218
- let intersectionPoint = IntersectionTests_default.rayPlane(
219
- ray,
220
- this._plane,
221
- scratchProjectPointOntoPlaneCartesian3
222
- );
223
- if (!defined_default(intersectionPoint)) {
224
- Cartesian3_default.negate(ray.direction, ray.direction);
225
- intersectionPoint = IntersectionTests_default.rayPlane(
226
- ray,
227
- this._plane,
228
- scratchProjectPointOntoPlaneCartesian3
229
- );
230
- }
231
- const v = Cartesian3_default.subtract(
232
- intersectionPoint,
233
- this._origin,
234
- intersectionPoint
235
- );
236
- const x = Cartesian3_default.dot(this._xAxis, v);
237
- const y = Cartesian3_default.dot(this._yAxis, v);
238
- result.x = x;
239
- result.y = y;
240
- return result;
241
- };
242
- EllipsoidTangentPlane.prototype.projectPointsToNearestOnPlane = function(cartesians, result) {
243
- Check_default.defined("cartesians", cartesians);
244
- if (!defined_default(result)) {
245
- result = [];
246
- }
247
- const length = cartesians.length;
248
- result.length = length;
249
- for (let i = 0; i < length; i++) {
250
- result[i] = this.projectPointToNearestOnPlane(cartesians[i], result[i]);
251
- }
252
- return result;
253
- };
254
- var projectPointsOntoEllipsoidScratch = new Cartesian3_default();
255
- EllipsoidTangentPlane.prototype.projectPointOntoEllipsoid = function(cartesian, result) {
256
- Check_default.defined("cartesian", cartesian);
257
- if (!defined_default(result)) {
258
- result = new Cartesian3_default();
259
- }
260
- const ellipsoid = this._ellipsoid;
261
- const origin = this._origin;
262
- const xAxis = this._xAxis;
263
- const yAxis = this._yAxis;
264
- const tmp2 = projectPointsOntoEllipsoidScratch;
265
- Cartesian3_default.multiplyByScalar(xAxis, cartesian.x, tmp2);
266
- result = Cartesian3_default.add(origin, tmp2, result);
267
- Cartesian3_default.multiplyByScalar(yAxis, cartesian.y, tmp2);
268
- Cartesian3_default.add(result, tmp2, result);
269
- ellipsoid.scaleToGeocentricSurface(result, result);
270
- return result;
271
- };
272
- EllipsoidTangentPlane.prototype.projectPointsOntoEllipsoid = function(cartesians, result) {
273
- Check_default.defined("cartesians", cartesians);
274
- const length = cartesians.length;
275
- if (!defined_default(result)) {
276
- result = new Array(length);
277
- } else {
278
- result.length = length;
279
- }
280
- for (let i = 0; i < length; ++i) {
281
- result[i] = this.projectPointOntoEllipsoid(cartesians[i], result[i]);
282
- }
283
- return result;
284
- };
285
- var EllipsoidTangentPlane_default = EllipsoidTangentPlane;
286
-
287
- export {
288
- EllipsoidTangentPlane_default
289
- };
@@ -1,100 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.115
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- Math_default
28
- } from "./chunk-5QULIR53.js";
29
- import {
30
- defaultValue_default
31
- } from "./chunk-BBWDMCVU.js";
32
- import {
33
- Check_default
34
- } from "./chunk-XGI5BXZY.js";
35
- import {
36
- defined_default
37
- } from "./chunk-YWTJ2B4B.js";
38
-
39
- // packages/engine/Source/Core/arrayRemoveDuplicates.js
40
- var removeDuplicatesEpsilon = Math_default.EPSILON10;
41
- function arrayRemoveDuplicates(values, equalsEpsilon, wrapAround, removedIndices) {
42
- Check_default.defined("equalsEpsilon", equalsEpsilon);
43
- if (!defined_default(values)) {
44
- return void 0;
45
- }
46
- wrapAround = defaultValue_default(wrapAround, false);
47
- const storeRemovedIndices = defined_default(removedIndices);
48
- const length = values.length;
49
- if (length < 2) {
50
- return values;
51
- }
52
- let i;
53
- let v0 = values[0];
54
- let v1;
55
- let cleanedValues;
56
- let lastCleanIndex = 0;
57
- let removedIndexLCI = -1;
58
- for (i = 1; i < length; ++i) {
59
- v1 = values[i];
60
- if (equalsEpsilon(v0, v1, removeDuplicatesEpsilon)) {
61
- if (!defined_default(cleanedValues)) {
62
- cleanedValues = values.slice(0, i);
63
- lastCleanIndex = i - 1;
64
- removedIndexLCI = 0;
65
- }
66
- if (storeRemovedIndices) {
67
- removedIndices.push(i);
68
- }
69
- } else {
70
- if (defined_default(cleanedValues)) {
71
- cleanedValues.push(v1);
72
- lastCleanIndex = i;
73
- if (storeRemovedIndices) {
74
- removedIndexLCI = removedIndices.length;
75
- }
76
- }
77
- v0 = v1;
78
- }
79
- }
80
- if (wrapAround && equalsEpsilon(values[0], values[length - 1], removeDuplicatesEpsilon)) {
81
- if (storeRemovedIndices) {
82
- if (defined_default(cleanedValues)) {
83
- removedIndices.splice(removedIndexLCI, 0, lastCleanIndex);
84
- } else {
85
- removedIndices.push(length - 1);
86
- }
87
- }
88
- if (defined_default(cleanedValues)) {
89
- cleanedValues.length -= 1;
90
- } else {
91
- cleanedValues = values.slice(0, -1);
92
- }
93
- }
94
- return defined_default(cleanedValues) ? cleanedValues : values;
95
- }
96
- var arrayRemoveDuplicates_default = arrayRemoveDuplicates;
97
-
98
- export {
99
- arrayRemoveDuplicates_default
100
- };
@@ -1,157 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.115
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- Intersect_default
28
- } from "./chunk-FJKNFAKQ.js";
29
- import {
30
- Cartesian3_default
31
- } from "./chunk-OGXZVPPM.js";
32
- import {
33
- defaultValue_default
34
- } from "./chunk-BBWDMCVU.js";
35
- import {
36
- Check_default
37
- } from "./chunk-XGI5BXZY.js";
38
- import {
39
- defined_default
40
- } from "./chunk-YWTJ2B4B.js";
41
-
42
- // packages/engine/Source/Core/AxisAlignedBoundingBox.js
43
- function AxisAlignedBoundingBox(minimum, maximum, center) {
44
- this.minimum = Cartesian3_default.clone(defaultValue_default(minimum, Cartesian3_default.ZERO));
45
- this.maximum = Cartesian3_default.clone(defaultValue_default(maximum, Cartesian3_default.ZERO));
46
- if (!defined_default(center)) {
47
- center = Cartesian3_default.midpoint(this.minimum, this.maximum, new Cartesian3_default());
48
- } else {
49
- center = Cartesian3_default.clone(center);
50
- }
51
- this.center = center;
52
- }
53
- AxisAlignedBoundingBox.fromCorners = function(minimum, maximum, result) {
54
- Check_default.defined("minimum", minimum);
55
- Check_default.defined("maximum", maximum);
56
- if (!defined_default(result)) {
57
- result = new AxisAlignedBoundingBox();
58
- }
59
- result.minimum = Cartesian3_default.clone(minimum, result.minimum);
60
- result.maximum = Cartesian3_default.clone(maximum, result.maximum);
61
- result.center = Cartesian3_default.midpoint(minimum, maximum, result.center);
62
- return result;
63
- };
64
- AxisAlignedBoundingBox.fromPoints = function(positions, result) {
65
- if (!defined_default(result)) {
66
- result = new AxisAlignedBoundingBox();
67
- }
68
- if (!defined_default(positions) || positions.length === 0) {
69
- result.minimum = Cartesian3_default.clone(Cartesian3_default.ZERO, result.minimum);
70
- result.maximum = Cartesian3_default.clone(Cartesian3_default.ZERO, result.maximum);
71
- result.center = Cartesian3_default.clone(Cartesian3_default.ZERO, result.center);
72
- return result;
73
- }
74
- let minimumX = positions[0].x;
75
- let minimumY = positions[0].y;
76
- let minimumZ = positions[0].z;
77
- let maximumX = positions[0].x;
78
- let maximumY = positions[0].y;
79
- let maximumZ = positions[0].z;
80
- const length = positions.length;
81
- for (let i = 1; i < length; i++) {
82
- const p = positions[i];
83
- const x = p.x;
84
- const y = p.y;
85
- const z = p.z;
86
- minimumX = Math.min(x, minimumX);
87
- maximumX = Math.max(x, maximumX);
88
- minimumY = Math.min(y, minimumY);
89
- maximumY = Math.max(y, maximumY);
90
- minimumZ = Math.min(z, minimumZ);
91
- maximumZ = Math.max(z, maximumZ);
92
- }
93
- const minimum = result.minimum;
94
- minimum.x = minimumX;
95
- minimum.y = minimumY;
96
- minimum.z = minimumZ;
97
- const maximum = result.maximum;
98
- maximum.x = maximumX;
99
- maximum.y = maximumY;
100
- maximum.z = maximumZ;
101
- result.center = Cartesian3_default.midpoint(minimum, maximum, result.center);
102
- return result;
103
- };
104
- AxisAlignedBoundingBox.clone = function(box, result) {
105
- if (!defined_default(box)) {
106
- return void 0;
107
- }
108
- if (!defined_default(result)) {
109
- return new AxisAlignedBoundingBox(box.minimum, box.maximum, box.center);
110
- }
111
- result.minimum = Cartesian3_default.clone(box.minimum, result.minimum);
112
- result.maximum = Cartesian3_default.clone(box.maximum, result.maximum);
113
- result.center = Cartesian3_default.clone(box.center, result.center);
114
- return result;
115
- };
116
- AxisAlignedBoundingBox.equals = function(left, right) {
117
- return left === right || defined_default(left) && defined_default(right) && Cartesian3_default.equals(left.center, right.center) && Cartesian3_default.equals(left.minimum, right.minimum) && Cartesian3_default.equals(left.maximum, right.maximum);
118
- };
119
- var intersectScratch = new Cartesian3_default();
120
- AxisAlignedBoundingBox.intersectPlane = function(box, plane) {
121
- Check_default.defined("box", box);
122
- Check_default.defined("plane", plane);
123
- intersectScratch = Cartesian3_default.subtract(
124
- box.maximum,
125
- box.minimum,
126
- intersectScratch
127
- );
128
- const h = Cartesian3_default.multiplyByScalar(
129
- intersectScratch,
130
- 0.5,
131
- intersectScratch
132
- );
133
- const normal = plane.normal;
134
- const e = h.x * Math.abs(normal.x) + h.y * Math.abs(normal.y) + h.z * Math.abs(normal.z);
135
- const s = Cartesian3_default.dot(box.center, normal) + plane.distance;
136
- if (s - e > 0) {
137
- return Intersect_default.INSIDE;
138
- }
139
- if (s + e < 0) {
140
- return Intersect_default.OUTSIDE;
141
- }
142
- return Intersect_default.INTERSECTING;
143
- };
144
- AxisAlignedBoundingBox.prototype.clone = function(result) {
145
- return AxisAlignedBoundingBox.clone(this, result);
146
- };
147
- AxisAlignedBoundingBox.prototype.intersectPlane = function(plane) {
148
- return AxisAlignedBoundingBox.intersectPlane(this, plane);
149
- };
150
- AxisAlignedBoundingBox.prototype.equals = function(right) {
151
- return AxisAlignedBoundingBox.equals(this, right);
152
- };
153
- var AxisAlignedBoundingBox_default = AxisAlignedBoundingBox;
154
-
155
- export {
156
- AxisAlignedBoundingBox_default
157
- };