@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.
- package/dist/dist/index.js +1848 -0
- package/dist/gm.min.js +16983 -16483
- package/dist/index.js +1436 -1434
- 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-35SHYARM.js +26 -0
- package/dist/resources/Workers/chunk-37F5JSTI.js +26 -0
- package/dist/resources/Workers/chunk-3SSKC3VN.js +26 -0
- package/dist/resources/Workers/chunk-3W4GT7KQ.js +26 -0
- package/dist/resources/Workers/chunk-4IW2T6GF.js +26 -0
- package/dist/resources/Workers/chunk-5YEWO3HT.js +26 -0
- package/dist/resources/Workers/chunk-64RSHJUE.js +28 -0
- package/dist/resources/Workers/chunk-77IHZJJ3.js +26 -0
- package/dist/resources/Workers/chunk-7HTKERZY.js +26 -0
- package/dist/resources/Workers/{chunk-I2ITFFPX.js → chunk-A56XVLQR.js} +2 -13
- package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
- package/dist/resources/Workers/{chunk-PRGYLLJT.js → chunk-ARG42DC4.js} +2 -31
- package/dist/resources/Workers/chunk-AU7IKHOH.js +26 -0
- package/dist/resources/Workers/chunk-B4AA3ARO.js +26 -0
- package/dist/resources/Workers/chunk-CNCV5UL7.js +26 -0
- package/dist/resources/Workers/chunk-CYCB63OH.js +26 -0
- package/dist/resources/Workers/{chunk-DI5NGJUP.js → chunk-D6AA5QVT.js} +2 -20
- package/dist/resources/Workers/chunk-D6C66QON.js +26 -0
- package/dist/resources/Workers/chunk-DEPHB2WM.js +26 -0
- package/dist/resources/Workers/chunk-DMEY62ID.js +26 -0
- package/dist/resources/Workers/chunk-DQQ63PYM.js +26 -0
- package/dist/resources/Workers/chunk-ED5JPB3S.js +27 -0
- package/dist/resources/Workers/chunk-EZUYS2JF.js +26 -0
- package/dist/resources/Workers/chunk-FEVXJ54I.js +26 -0
- package/dist/resources/Workers/chunk-G5AGHVVC.js +26 -0
- package/dist/resources/Workers/{chunk-7JO7GPJN.js → chunk-GBYLG25F.js} +2 -15
- package/dist/resources/Workers/chunk-GILIDQNQ.js +26 -0
- package/dist/resources/Workers/chunk-HMIYSTF6.js +26 -0
- package/dist/resources/Workers/chunk-HTFSEEMT.js +26 -0
- package/dist/resources/Workers/chunk-HWXX4CWK.js +26 -0
- package/dist/resources/Workers/chunk-IYTZ52EY.js +26 -0
- package/dist/resources/Workers/chunk-J6UP6FLE.js +26 -0
- package/dist/resources/Workers/chunk-LEYMRMBK.js +27 -0
- package/dist/resources/Workers/chunk-M3MGYQSL.js +26 -0
- package/dist/resources/Workers/chunk-N4VJKXZS.js +26 -0
- package/dist/resources/Workers/chunk-NB3ML6JO.js +26 -0
- package/dist/resources/Workers/chunk-OFUUQVMR.js +26 -0
- package/dist/resources/Workers/chunk-OSW76XDF.js +26 -0
- package/dist/resources/Workers/chunk-PSPPBZWI.js +66 -0
- package/dist/resources/Workers/chunk-QN3VOORQ.js +26 -0
- package/dist/resources/Workers/chunk-QOUAJ6TL.js +26 -0
- package/dist/resources/Workers/chunk-RCV6KWXS.js +26 -0
- package/dist/resources/Workers/chunk-TCGIRNHN.js +26 -0
- package/dist/resources/Workers/chunk-U4IEOH5K.js +26 -0
- package/dist/resources/Workers/chunk-UP6I5URU.js +26 -0
- package/dist/resources/Workers/chunk-VTAIKJXX.js +26 -0
- package/dist/resources/Workers/chunk-VTBDSFTG.js +26 -0
- package/dist/resources/Workers/chunk-VW6VD53G.js +26 -0
- package/dist/resources/Workers/chunk-WGGIH7QW.js +26 -0
- package/dist/resources/Workers/chunk-WWA5PL4H.js +26 -0
- package/dist/resources/Workers/{chunk-6CHGCNMW.js → chunk-WZDE3RYP.js} +4 -34
- package/dist/resources/Workers/chunk-XRL4AVS5.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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
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.
|
|
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};
|