@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,220 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.122
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
- GeographicProjection_default,
28
- Intersect_default
29
- } from "./chunk-VJZB3WAV.js";
30
- import {
31
- Rectangle_default
32
- } from "./chunk-5PTXS2GO.js";
33
- import {
34
- Cartesian2_default,
35
- Cartographic_default,
36
- Ellipsoid_default
37
- } from "./chunk-YFXQECWV.js";
38
- import {
39
- defaultValue_default
40
- } from "./chunk-7JO7GPJN.js";
41
- import {
42
- Check_default
43
- } from "./chunk-AD63PIY6.js";
44
- import {
45
- defined_default
46
- } from "./chunk-E63IIM5T.js";
47
-
48
- // packages/engine/Source/Core/BoundingRectangle.js
49
- function BoundingRectangle(x, y, width, height) {
50
- this.x = defaultValue_default(x, 0);
51
- this.y = defaultValue_default(y, 0);
52
- this.width = defaultValue_default(width, 0);
53
- this.height = defaultValue_default(height, 0);
54
- }
55
- BoundingRectangle.packedLength = 4;
56
- BoundingRectangle.pack = function(value, array, startingIndex) {
57
- Check_default.typeOf.object("value", value);
58
- Check_default.defined("array", array);
59
- startingIndex = defaultValue_default(startingIndex, 0);
60
- array[startingIndex++] = value.x;
61
- array[startingIndex++] = value.y;
62
- array[startingIndex++] = value.width;
63
- array[startingIndex] = value.height;
64
- return array;
65
- };
66
- BoundingRectangle.unpack = function(array, startingIndex, result) {
67
- Check_default.defined("array", array);
68
- startingIndex = defaultValue_default(startingIndex, 0);
69
- if (!defined_default(result)) {
70
- result = new BoundingRectangle();
71
- }
72
- result.x = array[startingIndex++];
73
- result.y = array[startingIndex++];
74
- result.width = array[startingIndex++];
75
- result.height = array[startingIndex];
76
- return result;
77
- };
78
- BoundingRectangle.fromPoints = function(positions, result) {
79
- if (!defined_default(result)) {
80
- result = new BoundingRectangle();
81
- }
82
- if (!defined_default(positions) || positions.length === 0) {
83
- result.x = 0;
84
- result.y = 0;
85
- result.width = 0;
86
- result.height = 0;
87
- return result;
88
- }
89
- const length = positions.length;
90
- let minimumX = positions[0].x;
91
- let minimumY = positions[0].y;
92
- let maximumX = positions[0].x;
93
- let maximumY = positions[0].y;
94
- for (let i = 1; i < length; i++) {
95
- const p = positions[i];
96
- const x = p.x;
97
- const y = p.y;
98
- minimumX = Math.min(x, minimumX);
99
- maximumX = Math.max(x, maximumX);
100
- minimumY = Math.min(y, minimumY);
101
- maximumY = Math.max(y, maximumY);
102
- }
103
- result.x = minimumX;
104
- result.y = minimumY;
105
- result.width = maximumX - minimumX;
106
- result.height = maximumY - minimumY;
107
- return result;
108
- };
109
- var defaultProjection = new GeographicProjection_default();
110
- var fromRectangleLowerLeft = new Cartographic_default();
111
- var fromRectangleUpperRight = new Cartographic_default();
112
- BoundingRectangle.fromRectangle = function(rectangle, projection, result) {
113
- if (!defined_default(result)) {
114
- result = new BoundingRectangle();
115
- }
116
- if (!defined_default(rectangle)) {
117
- result.x = 0;
118
- result.y = 0;
119
- result.width = 0;
120
- result.height = 0;
121
- return result;
122
- }
123
- defaultProjection._ellipsoid = Ellipsoid_default.default;
124
- projection = defaultValue_default(projection, defaultProjection);
125
- const lowerLeft = projection.project(
126
- Rectangle_default.southwest(rectangle, fromRectangleLowerLeft)
127
- );
128
- const upperRight = projection.project(
129
- Rectangle_default.northeast(rectangle, fromRectangleUpperRight)
130
- );
131
- Cartesian2_default.subtract(upperRight, lowerLeft, upperRight);
132
- result.x = lowerLeft.x;
133
- result.y = lowerLeft.y;
134
- result.width = upperRight.x;
135
- result.height = upperRight.y;
136
- return result;
137
- };
138
- BoundingRectangle.clone = function(rectangle, result) {
139
- if (!defined_default(rectangle)) {
140
- return void 0;
141
- }
142
- if (!defined_default(result)) {
143
- return new BoundingRectangle(
144
- rectangle.x,
145
- rectangle.y,
146
- rectangle.width,
147
- rectangle.height
148
- );
149
- }
150
- result.x = rectangle.x;
151
- result.y = rectangle.y;
152
- result.width = rectangle.width;
153
- result.height = rectangle.height;
154
- return result;
155
- };
156
- BoundingRectangle.union = function(left, right, result) {
157
- Check_default.typeOf.object("left", left);
158
- Check_default.typeOf.object("right", right);
159
- if (!defined_default(result)) {
160
- result = new BoundingRectangle();
161
- }
162
- const lowerLeftX = Math.min(left.x, right.x);
163
- const lowerLeftY = Math.min(left.y, right.y);
164
- const upperRightX = Math.max(left.x + left.width, right.x + right.width);
165
- const upperRightY = Math.max(left.y + left.height, right.y + right.height);
166
- result.x = lowerLeftX;
167
- result.y = lowerLeftY;
168
- result.width = upperRightX - lowerLeftX;
169
- result.height = upperRightY - lowerLeftY;
170
- return result;
171
- };
172
- BoundingRectangle.expand = function(rectangle, point, result) {
173
- Check_default.typeOf.object("rectangle", rectangle);
174
- Check_default.typeOf.object("point", point);
175
- result = BoundingRectangle.clone(rectangle, result);
176
- const width = point.x - result.x;
177
- const height = point.y - result.y;
178
- if (width > result.width) {
179
- result.width = width;
180
- } else if (width < 0) {
181
- result.width -= width;
182
- result.x = point.x;
183
- }
184
- if (height > result.height) {
185
- result.height = height;
186
- } else if (height < 0) {
187
- result.height -= height;
188
- result.y = point.y;
189
- }
190
- return result;
191
- };
192
- BoundingRectangle.intersect = function(left, right) {
193
- Check_default.typeOf.object("left", left);
194
- Check_default.typeOf.object("right", right);
195
- const leftX = left.x;
196
- const leftY = left.y;
197
- const rightX = right.x;
198
- const rightY = right.y;
199
- if (!(leftX > rightX + right.width || leftX + left.width < rightX || leftY + left.height < rightY || leftY > rightY + right.height)) {
200
- return Intersect_default.INTERSECTING;
201
- }
202
- return Intersect_default.OUTSIDE;
203
- };
204
- BoundingRectangle.equals = function(left, right) {
205
- return left === right || defined_default(left) && defined_default(right) && left.x === right.x && left.y === right.y && left.width === right.width && left.height === right.height;
206
- };
207
- BoundingRectangle.prototype.clone = function(result) {
208
- return BoundingRectangle.clone(this, result);
209
- };
210
- BoundingRectangle.prototype.intersect = function(right) {
211
- return BoundingRectangle.intersect(this, right);
212
- };
213
- BoundingRectangle.prototype.equals = function(right) {
214
- return BoundingRectangle.equals(this, right);
215
- };
216
- var BoundingRectangle_default = BoundingRectangle;
217
-
218
- export {
219
- BoundingRectangle_default
220
- };