@gmgis/gm-sdk 1.12.4 → 2.0.1
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.
- package/dist/dist/index.js +1848 -0
- package/dist/gm.min.js +6224 -5596
- package/dist/index.js +1558 -1438
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -2
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -2
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -8337
- package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/resources/Workers/chunk-335F4KMR.js +26 -0
- package/dist/resources/Workers/chunk-3FFM6NRK.js +26 -0
- package/dist/resources/Workers/chunk-46IDNOB6.js +26 -0
- package/dist/resources/Workers/chunk-4QCIHDA2.js +26 -0
- package/dist/resources/Workers/chunk-5EZKANRV.js +26 -0
- package/dist/resources/Workers/chunk-5GVU4LLW.js +26 -0
- package/dist/resources/Workers/chunk-6EFYFFBI.js +26 -0
- package/dist/resources/Workers/chunk-72ENFGTU.js +26 -0
- package/dist/resources/Workers/{chunk-I2ITFFPX.js → chunk-7IBY6LYM.js} +2 -13
- package/dist/resources/Workers/{chunk-PRGYLLJT.js → chunk-7RJW35V3.js} +3 -31
- package/dist/resources/Workers/chunk-ABHTLV4B.js +26 -0
- package/dist/resources/Workers/{chunk-DI5NGJUP.js → chunk-AHKBUIAX.js} +2 -20
- package/dist/resources/Workers/{chunk-7JO7GPJN.js → chunk-AOSK7NDA.js} +2 -15
- package/dist/resources/Workers/chunk-ATTMFTQ4.js +26 -0
- package/dist/resources/Workers/chunk-BCYX7GBY.js +26 -0
- package/dist/resources/Workers/chunk-BDLVVHOG.js +26 -0
- package/dist/resources/Workers/chunk-BGQDOF2W.js +26 -0
- package/dist/resources/Workers/chunk-BTPJ3H6N.js +26 -0
- package/dist/resources/Workers/chunk-DGGIK7AD.js +66 -0
- package/dist/resources/Workers/chunk-DSXZVGY7.js +26 -0
- package/dist/resources/Workers/chunk-F7XR2IV5.js +26 -0
- package/dist/resources/Workers/chunk-FCVV6A2F.js +28 -0
- package/dist/resources/Workers/chunk-GBI3IATP.js +26 -0
- package/dist/resources/Workers/{chunk-6CHGCNMW.js → chunk-GRCPCORO.js} +4 -34
- package/dist/resources/Workers/chunk-HLFNWOQ4.js +26 -0
- package/dist/resources/Workers/chunk-HMV6ETSJ.js +26 -0
- package/dist/resources/Workers/chunk-I3XHKING.js +26 -0
- package/dist/resources/Workers/chunk-I7WJS3WM.js +26 -0
- package/dist/resources/Workers/chunk-JOXXXMPE.js +26 -0
- package/dist/resources/Workers/chunk-JU23HGY3.js +26 -0
- package/dist/resources/Workers/chunk-KORWG3CG.js +26 -0
- package/dist/resources/Workers/chunk-KTDI3TD2.js +26 -0
- package/dist/resources/Workers/chunk-LIEFEM73.js +26 -0
- package/dist/resources/Workers/chunk-LNFOIPBT.js +26 -0
- package/dist/resources/Workers/chunk-N6G72L23.js +26 -0
- package/dist/resources/Workers/chunk-NU4XOT2V.js +26 -0
- package/dist/resources/Workers/chunk-PO64KPKA.js +26 -0
- package/dist/resources/Workers/chunk-PQSWZ6QE.js +26 -0
- package/dist/resources/Workers/chunk-QGPFMASY.js +26 -0
- package/dist/resources/Workers/chunk-QJG5NRTN.js +26 -0
- package/dist/resources/Workers/chunk-R3KD5ZAI.js +27 -0
- package/dist/resources/Workers/chunk-RQ3X5FSK.js +26 -0
- package/dist/resources/Workers/chunk-SNN6UCXM.js +26 -0
- package/dist/resources/Workers/chunk-SPVHGWGM.js +26 -0
- package/dist/resources/Workers/chunk-SRJEQ4WA.js +26 -0
- package/dist/resources/Workers/chunk-VMOPYKP4.js +26 -0
- package/dist/resources/Workers/chunk-WNAZRVVU.js +26 -0
- package/dist/resources/Workers/chunk-WQBKKXJC.js +26 -0
- package/dist/resources/Workers/chunk-Y53SIX6D.js +26 -0
- package/dist/resources/Workers/chunk-YC4EEWUJ.js +26 -0
- package/dist/resources/Workers/chunk-YDUNCXSU.js +26 -0
- package/dist/resources/Workers/chunk-YL47XCQ4.js +26 -0
- package/dist/resources/Workers/combineGeometry.js +2 -40
- package/dist/resources/Workers/createBoxGeometry.js +2 -32
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -209
- package/dist/resources/Workers/createCircleGeometry.js +2 -175
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -121
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -481
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -199
- package/dist/resources/Workers/createCorridorGeometry.js +2 -1237
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -542
- package/dist/resources/Workers/createCylinderGeometry.js +2 -34
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -205
- package/dist/resources/Workers/createEllipseGeometry.js +2 -45
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -38
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -33
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -35
- package/dist/resources/Workers/createFrustumGeometry.js +2 -32
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -210
- package/dist/resources/Workers/createGeometry.js +2 -144
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1582
- package/dist/resources/Workers/createPlaneGeometry.js +2 -198
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -98
- package/dist/resources/Workers/createPolygonGeometry.js +2 -1381
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -509
- package/dist/resources/Workers/createPolylineGeometry.js +2 -470
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -354
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -251
- package/dist/resources/Workers/createRectangleGeometry.js +2 -1246
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -453
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -374
- package/dist/resources/Workers/createSphereGeometry.js +2 -92
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -92
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -466
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -361
- package/dist/resources/Workers/createVectorTilePoints.js +2 -88
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -359
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -236
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -539
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2252
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -729
- package/dist/resources/Workers/createWallGeometry.js +2 -464
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -312
- package/dist/resources/Workers/decodeDraco.js +2 -345
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2642
- package/dist/resources/Workers/decodeI3S.js +2 -1319
- package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
- package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/resources/Workers/transcodeKTX2.js +29 -3360
- package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -793
- package/package.json +74 -74
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
- package/dist/resources/Workers/chunk-26GA3JAM.js +0 -139
- package/dist/resources/Workers/chunk-27HUZ7SA.js +0 -305
- package/dist/resources/Workers/chunk-2ZGOQXYU.js +0 -171
- package/dist/resources/Workers/chunk-3Q2L65QU.js +0 -1258
- package/dist/resources/Workers/chunk-472HQ3EH.js +0 -100
- package/dist/resources/Workers/chunk-5ODQSF26.js +0 -101
- package/dist/resources/Workers/chunk-5OOFQLKF.js +0 -634
- package/dist/resources/Workers/chunk-5PTXS2GO.js +0 -10390
- package/dist/resources/Workers/chunk-76BYBWHP.js +0 -122
- package/dist/resources/Workers/chunk-7BMOHCPM.js +0 -390
- package/dist/resources/Workers/chunk-7KTQP4VB.js +0 -59
- package/dist/resources/Workers/chunk-7O373FFS.js +0 -665
- package/dist/resources/Workers/chunk-AD63PIY6.js +0 -163
- package/dist/resources/Workers/chunk-BHQJ2NT7.js +0 -353
- package/dist/resources/Workers/chunk-C6YYBQXW.js +0 -102
- package/dist/resources/Workers/chunk-CKY7HOHV.js +0 -287
- package/dist/resources/Workers/chunk-DHYHSFFJ.js +0 -73
- package/dist/resources/Workers/chunk-E27BLMDD.js +0 -115
- package/dist/resources/Workers/chunk-E63IIM5T.js +0 -75
- package/dist/resources/Workers/chunk-E6V6SQZW.js +0 -456
- package/dist/resources/Workers/chunk-EJZTDTUH.js +0 -138
- package/dist/resources/Workers/chunk-FDOV2LBJ.js +0 -220
- package/dist/resources/Workers/chunk-FIGIZHAQ.js +0 -684
- package/dist/resources/Workers/chunk-GESF4OXQ.js +0 -1800
- package/dist/resources/Workers/chunk-GGZJN2TI.js +0 -2717
- package/dist/resources/Workers/chunk-GNBFYG7F.js +0 -1481
- package/dist/resources/Workers/chunk-GWCFU2SA.js +0 -300
- package/dist/resources/Workers/chunk-IBLIYJZR.js +0 -196
- package/dist/resources/Workers/chunk-JW4FOI6M.js +0 -476
- package/dist/resources/Workers/chunk-K4GQUNB5.js +0 -262
- package/dist/resources/Workers/chunk-M3GMB5OP.js +0 -834
- package/dist/resources/Workers/chunk-MXIZJAPH.js +0 -629
- package/dist/resources/Workers/chunk-N5KJGGCM.js +0 -1073
- package/dist/resources/Workers/chunk-NGPPMXRM.js +0 -435
- package/dist/resources/Workers/chunk-O3E4OAOE.js +0 -511
- package/dist/resources/Workers/chunk-PGRPDNHG.js +0 -1048
- package/dist/resources/Workers/chunk-S6MRMMQU.js +0 -157
- package/dist/resources/Workers/chunk-SMDOP47J.js +0 -945
- package/dist/resources/Workers/chunk-TGONEMZO.js +0 -421
- package/dist/resources/Workers/chunk-TKVT5GQM.js +0 -781
- package/dist/resources/Workers/chunk-U72QNFOJ.js +0 -758
- package/dist/resources/Workers/chunk-VJZB3WAV.js +0 -963
- package/dist/resources/Workers/chunk-VU2MNO7L.js +0 -239
- package/dist/resources/Workers/chunk-XY4BATBS.js +0 -500
- package/dist/resources/Workers/chunk-YFXQECWV.js +0 -2857
- package/dist/resources/Workers/chunk-YSGTGQQO.js +0 -398
- package/dist/resources/Workers/chunk-YZ733KKS.js +0 -368
|
@@ -1,157 +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
|
-
Intersect_default
|
|
28
|
-
} from "./chunk-VJZB3WAV.js";
|
|
29
|
-
import {
|
|
30
|
-
Cartesian3_default
|
|
31
|
-
} from "./chunk-YFXQECWV.js";
|
|
32
|
-
import {
|
|
33
|
-
defaultValue_default
|
|
34
|
-
} from "./chunk-7JO7GPJN.js";
|
|
35
|
-
import {
|
|
36
|
-
Check_default
|
|
37
|
-
} from "./chunk-AD63PIY6.js";
|
|
38
|
-
import {
|
|
39
|
-
defined_default
|
|
40
|
-
} from "./chunk-E63IIM5T.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
|
-
};
|