@pggis/pg-sdk 3.3.9 → 3.5.0
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/README.md +8 -8
- package/dist/index.js +1966 -4
- package/dist/pggis.min.css +1 -1
- 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-F3YA3Y2Z.js → chunk-A56XVLQR.js} +2 -13
- package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
- package/dist/resources/Workers/{chunk-EHWHNOEX.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-4H7PY4U5.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-BBWDMCVU.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-WZDE3RYP.js +28 -0
- package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
- package/dist/resources/Workers/combineGeometry.js +2 -44
- package/dist/resources/Workers/createBoxGeometry.js +2 -34
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -211
- package/dist/resources/Workers/createCircleGeometry.js +2 -173
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -123
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -482
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -201
- package/dist/resources/Workers/createCorridorGeometry.js +2 -1239
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -544
- package/dist/resources/Workers/createCylinderGeometry.js +2 -36
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -207
- package/dist/resources/Workers/createEllipseGeometry.js +2 -47
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -40
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -35
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -37
- package/dist/resources/Workers/createFrustumGeometry.js +2 -34
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -211
- package/dist/resources/Workers/createGeometry.js +2 -147
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1584
- package/dist/resources/Workers/createPlaneGeometry.js +2 -200
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -100
- package/dist/resources/Workers/createPolygonGeometry.js +2 -1387
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -519
- package/dist/resources/Workers/createPolylineGeometry.js +2 -472
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -355
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -253
- package/dist/resources/Workers/createRectangleGeometry.js +2 -1250
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -455
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -376
- package/dist/resources/Workers/createSphereGeometry.js +2 -94
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -94
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -468
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -363
- package/dist/resources/Workers/createVectorTilePoints.js +2 -88
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -361
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -238
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -545
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2254
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -722
- package/dist/resources/Workers/createWallGeometry.js +2 -466
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -314
- package/dist/resources/Workers/decodeDraco.js +2 -345
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2626
- package/dist/resources/Workers/decodeI3S.js +2 -1320
- package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
- package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/resources/Workers/transcodeKTX2.js +29 -3398
- package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -795
- package/package.json +9 -8
- package/dist/pggis.min.js +0 -14796
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
- package/dist/resources/Workers/chunk-23UFSGND.js +0 -236
- package/dist/resources/Workers/chunk-2A75IWRS.js +0 -218
- package/dist/resources/Workers/chunk-2FRVPMCS.js +0 -1258
- package/dist/resources/Workers/chunk-2FWRMUTY.js +0 -138
- package/dist/resources/Workers/chunk-2UPKWTMJ.js +0 -117
- package/dist/resources/Workers/chunk-34FXV7D7.js +0 -73
- package/dist/resources/Workers/chunk-3VAZEH7M.js +0 -101
- package/dist/resources/Workers/chunk-4DO5W5XZ.js +0 -196
- package/dist/resources/Workers/chunk-5QULIR53.js +0 -501
- package/dist/resources/Workers/chunk-7TC63SJW.js +0 -302
- package/dist/resources/Workers/chunk-7ZFGPDJA.js +0 -122
- package/dist/resources/Workers/chunk-A5DWLWCY.js +0 -834
- package/dist/resources/Workers/chunk-BG4UCVXN.js +0 -73
- package/dist/resources/Workers/chunk-BIKA3NRA.js +0 -59
- package/dist/resources/Workers/chunk-BROJAZRZ.js +0 -390
- package/dist/resources/Workers/chunk-DDUQAJ4P.js +0 -476
- package/dist/resources/Workers/chunk-EERJKOAF.js +0 -305
- package/dist/resources/Workers/chunk-EG6PTBY2.js +0 -2716
- package/dist/resources/Workers/chunk-F4HFJMGM.js +0 -353
- package/dist/resources/Workers/chunk-FJKNFAKQ.js +0 -8219
- package/dist/resources/Workers/chunk-FNIRWHJB.js +0 -289
- package/dist/resources/Workers/chunk-FZRIVR7Y.js +0 -100
- package/dist/resources/Workers/chunk-G43QFN4Q.js +0 -157
- package/dist/resources/Workers/chunk-GATZHF3K.js +0 -1860
- package/dist/resources/Workers/chunk-GRC2ZTAF.js +0 -398
- package/dist/resources/Workers/chunk-HU6N6EXB.js +0 -767
- package/dist/resources/Workers/chunk-I46ZRR5W.js +0 -1052
- package/dist/resources/Workers/chunk-JURN7NPV.js +0 -1075
- package/dist/resources/Workers/chunk-KKCR2YOP.js +0 -421
- package/dist/resources/Workers/chunk-LPR3YNP2.js +0 -138
- package/dist/resources/Workers/chunk-M7ERACJJ.js +0 -511
- package/dist/resources/Workers/chunk-MDWEGWPA.js +0 -1007
- package/dist/resources/Workers/chunk-OGXZVPPM.js +0 -2365
- package/dist/resources/Workers/chunk-PGSJK77E.js +0 -634
- package/dist/resources/Workers/chunk-PPH7OFP3.js +0 -258
- package/dist/resources/Workers/chunk-SH5USDPI.js +0 -456
- package/dist/resources/Workers/chunk-SOWMRMWA.js +0 -629
- package/dist/resources/Workers/chunk-STW2DGFI.js +0 -58
- package/dist/resources/Workers/chunk-T3XIFPYR.js +0 -1477
- package/dist/resources/Workers/chunk-TTUZP4BO.js +0 -501
- package/dist/resources/Workers/chunk-UEXTBDBE.js +0 -693
- package/dist/resources/Workers/chunk-VOXYEYJT.js +0 -684
- package/dist/resources/Workers/chunk-X4356LRH.js +0 -368
- package/dist/resources/Workers/chunk-XGI5BXZY.js +0 -163
- package/dist/resources/Workers/chunk-Y2ME2IJV.js +0 -781
- package/dist/resources/Workers/chunk-Y5UQJLYE.js +0 -171
- package/dist/resources/Workers/chunk-YJEBABKH.js +0 -2977
- package/dist/resources/Workers/chunk-YWTJ2B4B.js +0 -77
- package/dist/resources/Workers/chunk-Z3TIFFGF.js +0 -430
- package/dist/resources/Workers/chunk-ZT7KWISZ.js +0 -102
|
@@ -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,213 +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
|
-
FrustumGeometry_default,
|
|
28
|
-
OrthographicFrustum_default,
|
|
29
|
-
PerspectiveFrustum_default
|
|
30
|
-
} from "./chunk-T3XIFPYR.js";
|
|
31
|
-
import "./chunk-2FWRMUTY.js";
|
|
32
|
-
import "./chunk-Y5UQJLYE.js";
|
|
33
|
-
import {
|
|
34
|
-
GeometryAttributes_default
|
|
35
|
-
} from "./chunk-4H7PY4U5.js";
|
|
36
|
-
import {
|
|
37
|
-
GeometryAttribute_default,
|
|
38
|
-
Geometry_default,
|
|
39
|
-
PrimitiveType_default
|
|
40
|
-
} from "./chunk-7TC63SJW.js";
|
|
41
|
-
import {
|
|
42
|
-
BoundingSphere_default,
|
|
43
|
-
Quaternion_default
|
|
44
|
-
} from "./chunk-FJKNFAKQ.js";
|
|
45
|
-
import "./chunk-TTUZP4BO.js";
|
|
46
|
-
import "./chunk-BG4UCVXN.js";
|
|
47
|
-
import "./chunk-YJEBABKH.js";
|
|
48
|
-
import {
|
|
49
|
-
ComponentDatatype_default
|
|
50
|
-
} from "./chunk-PPH7OFP3.js";
|
|
51
|
-
import {
|
|
52
|
-
Cartesian3_default
|
|
53
|
-
} from "./chunk-OGXZVPPM.js";
|
|
54
|
-
import "./chunk-5QULIR53.js";
|
|
55
|
-
import "./chunk-SOWMRMWA.js";
|
|
56
|
-
import "./chunk-STW2DGFI.js";
|
|
57
|
-
import {
|
|
58
|
-
defaultValue_default
|
|
59
|
-
} from "./chunk-BBWDMCVU.js";
|
|
60
|
-
import {
|
|
61
|
-
Check_default
|
|
62
|
-
} from "./chunk-XGI5BXZY.js";
|
|
63
|
-
import {
|
|
64
|
-
defined_default
|
|
65
|
-
} from "./chunk-YWTJ2B4B.js";
|
|
66
|
-
|
|
67
|
-
// packages/engine/Source/Core/FrustumOutlineGeometry.js
|
|
68
|
-
var PERSPECTIVE = 0;
|
|
69
|
-
var ORTHOGRAPHIC = 1;
|
|
70
|
-
function FrustumOutlineGeometry(options) {
|
|
71
|
-
Check_default.typeOf.object("options", options);
|
|
72
|
-
Check_default.typeOf.object("options.frustum", options.frustum);
|
|
73
|
-
Check_default.typeOf.object("options.origin", options.origin);
|
|
74
|
-
Check_default.typeOf.object("options.orientation", options.orientation);
|
|
75
|
-
const frustum = options.frustum;
|
|
76
|
-
const orientation = options.orientation;
|
|
77
|
-
const origin = options.origin;
|
|
78
|
-
const drawNearPlane = defaultValue_default(options._drawNearPlane, true);
|
|
79
|
-
let frustumType;
|
|
80
|
-
let frustumPackedLength;
|
|
81
|
-
if (frustum instanceof PerspectiveFrustum_default) {
|
|
82
|
-
frustumType = PERSPECTIVE;
|
|
83
|
-
frustumPackedLength = PerspectiveFrustum_default.packedLength;
|
|
84
|
-
} else if (frustum instanceof OrthographicFrustum_default) {
|
|
85
|
-
frustumType = ORTHOGRAPHIC;
|
|
86
|
-
frustumPackedLength = OrthographicFrustum_default.packedLength;
|
|
87
|
-
}
|
|
88
|
-
this._frustumType = frustumType;
|
|
89
|
-
this._frustum = frustum.clone();
|
|
90
|
-
this._origin = Cartesian3_default.clone(origin);
|
|
91
|
-
this._orientation = Quaternion_default.clone(orientation);
|
|
92
|
-
this._drawNearPlane = drawNearPlane;
|
|
93
|
-
this._workerName = "createFrustumOutlineGeometry";
|
|
94
|
-
this.packedLength = 2 + frustumPackedLength + Cartesian3_default.packedLength + Quaternion_default.packedLength;
|
|
95
|
-
}
|
|
96
|
-
FrustumOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
97
|
-
Check_default.typeOf.object("value", value);
|
|
98
|
-
Check_default.defined("array", array);
|
|
99
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
100
|
-
const frustumType = value._frustumType;
|
|
101
|
-
const frustum = value._frustum;
|
|
102
|
-
array[startingIndex++] = frustumType;
|
|
103
|
-
if (frustumType === PERSPECTIVE) {
|
|
104
|
-
PerspectiveFrustum_default.pack(frustum, array, startingIndex);
|
|
105
|
-
startingIndex += PerspectiveFrustum_default.packedLength;
|
|
106
|
-
} else {
|
|
107
|
-
OrthographicFrustum_default.pack(frustum, array, startingIndex);
|
|
108
|
-
startingIndex += OrthographicFrustum_default.packedLength;
|
|
109
|
-
}
|
|
110
|
-
Cartesian3_default.pack(value._origin, array, startingIndex);
|
|
111
|
-
startingIndex += Cartesian3_default.packedLength;
|
|
112
|
-
Quaternion_default.pack(value._orientation, array, startingIndex);
|
|
113
|
-
startingIndex += Quaternion_default.packedLength;
|
|
114
|
-
array[startingIndex] = value._drawNearPlane ? 1 : 0;
|
|
115
|
-
return array;
|
|
116
|
-
};
|
|
117
|
-
var scratchPackPerspective = new PerspectiveFrustum_default();
|
|
118
|
-
var scratchPackOrthographic = new OrthographicFrustum_default();
|
|
119
|
-
var scratchPackQuaternion = new Quaternion_default();
|
|
120
|
-
var scratchPackorigin = new Cartesian3_default();
|
|
121
|
-
FrustumOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
122
|
-
Check_default.defined("array", array);
|
|
123
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
124
|
-
const frustumType = array[startingIndex++];
|
|
125
|
-
let frustum;
|
|
126
|
-
if (frustumType === PERSPECTIVE) {
|
|
127
|
-
frustum = PerspectiveFrustum_default.unpack(
|
|
128
|
-
array,
|
|
129
|
-
startingIndex,
|
|
130
|
-
scratchPackPerspective
|
|
131
|
-
);
|
|
132
|
-
startingIndex += PerspectiveFrustum_default.packedLength;
|
|
133
|
-
} else {
|
|
134
|
-
frustum = OrthographicFrustum_default.unpack(
|
|
135
|
-
array,
|
|
136
|
-
startingIndex,
|
|
137
|
-
scratchPackOrthographic
|
|
138
|
-
);
|
|
139
|
-
startingIndex += OrthographicFrustum_default.packedLength;
|
|
140
|
-
}
|
|
141
|
-
const origin = Cartesian3_default.unpack(array, startingIndex, scratchPackorigin);
|
|
142
|
-
startingIndex += Cartesian3_default.packedLength;
|
|
143
|
-
const orientation = Quaternion_default.unpack(
|
|
144
|
-
array,
|
|
145
|
-
startingIndex,
|
|
146
|
-
scratchPackQuaternion
|
|
147
|
-
);
|
|
148
|
-
startingIndex += Quaternion_default.packedLength;
|
|
149
|
-
const drawNearPlane = array[startingIndex] === 1;
|
|
150
|
-
if (!defined_default(result)) {
|
|
151
|
-
return new FrustumOutlineGeometry({
|
|
152
|
-
frustum,
|
|
153
|
-
origin,
|
|
154
|
-
orientation,
|
|
155
|
-
_drawNearPlane: drawNearPlane
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
const frustumResult = frustumType === result._frustumType ? result._frustum : void 0;
|
|
159
|
-
result._frustum = frustum.clone(frustumResult);
|
|
160
|
-
result._frustumType = frustumType;
|
|
161
|
-
result._origin = Cartesian3_default.clone(origin, result._origin);
|
|
162
|
-
result._orientation = Quaternion_default.clone(orientation, result._orientation);
|
|
163
|
-
result._drawNearPlane = drawNearPlane;
|
|
164
|
-
return result;
|
|
165
|
-
};
|
|
166
|
-
FrustumOutlineGeometry.createGeometry = function(frustumGeometry) {
|
|
167
|
-
const frustumType = frustumGeometry._frustumType;
|
|
168
|
-
const frustum = frustumGeometry._frustum;
|
|
169
|
-
const origin = frustumGeometry._origin;
|
|
170
|
-
const orientation = frustumGeometry._orientation;
|
|
171
|
-
const drawNearPlane = frustumGeometry._drawNearPlane;
|
|
172
|
-
const positions = new Float64Array(3 * 4 * 2);
|
|
173
|
-
FrustumGeometry_default._computeNearFarPlanes(
|
|
174
|
-
origin,
|
|
175
|
-
orientation,
|
|
176
|
-
frustumType,
|
|
177
|
-
frustum,
|
|
178
|
-
positions
|
|
179
|
-
);
|
|
180
|
-
const attributes = new GeometryAttributes_default({
|
|
181
|
-
position: new GeometryAttribute_default({
|
|
182
|
-
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
183
|
-
componentsPerAttribute: 3,
|
|
184
|
-
values: positions
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
let offset;
|
|
188
|
-
let index;
|
|
189
|
-
const numberOfPlanes = drawNearPlane ? 2 : 1;
|
|
190
|
-
const indices = new Uint16Array(8 * (numberOfPlanes + 1));
|
|
191
|
-
let i = drawNearPlane ? 0 : 1;
|
|
192
|
-
for (; i < 2; ++i) {
|
|
193
|
-
offset = drawNearPlane ? i * 8 : 0;
|
|
194
|
-
index = i * 4;
|
|
195
|
-
indices[offset] = index;
|
|
196
|
-
indices[offset + 1] = index + 1;
|
|
197
|
-
indices[offset + 2] = index + 1;
|
|
198
|
-
indices[offset + 3] = index + 2;
|
|
199
|
-
indices[offset + 4] = index + 2;
|
|
200
|
-
indices[offset + 5] = index + 3;
|
|
201
|
-
indices[offset + 6] = index + 3;
|
|
202
|
-
indices[offset + 7] = index;
|
|
203
|
-
}
|
|
204
|
-
for (i = 0; i < 2; ++i) {
|
|
205
|
-
offset = (numberOfPlanes + i) * 8;
|
|
206
|
-
index = i * 4;
|
|
207
|
-
indices[offset] = index;
|
|
208
|
-
indices[offset + 1] = index + 4;
|
|
209
|
-
indices[offset + 2] = index + 1;
|
|
210
|
-
indices[offset + 3] = index + 5;
|
|
211
|
-
indices[offset + 4] = index + 2;
|
|
212
|
-
indices[offset + 5] = index + 6;
|
|
213
|
-
indices[offset + 6] = index + 3;
|
|
214
|
-
indices[offset + 7] = index + 7;
|
|
215
|
-
}
|
|
216
|
-
return new Geometry_default({
|
|
217
|
-
attributes,
|
|
218
|
-
indices,
|
|
219
|
-
primitiveType: PrimitiveType_default.LINES,
|
|
220
|
-
boundingSphere: BoundingSphere_default.fromVertices(positions)
|
|
221
|
-
});
|
|
222
|
-
};
|
|
223
|
-
var FrustumOutlineGeometry_default = FrustumOutlineGeometry;
|
|
224
|
-
|
|
225
|
-
// packages/engine/Source/Workers/createFrustumOutlineGeometry.js
|
|
226
|
-
function createFrustumOutlineGeometry(frustumGeometry, offset) {
|
|
227
|
-
if (defined_default(offset)) {
|
|
228
|
-
frustumGeometry = FrustumOutlineGeometry_default.unpack(frustumGeometry, offset);
|
|
229
|
-
}
|
|
230
|
-
return FrustumOutlineGeometry_default.createGeometry(frustumGeometry);
|
|
231
|
-
}
|
|
232
|
-
var createFrustumOutlineGeometry_default = createFrustumOutlineGeometry;
|
|
233
|
-
export {
|
|
234
|
-
createFrustumOutlineGeometry_default as default
|
|
235
|
-
};
|
|
26
|
+
import{a as k,b as _,c as A}from"./chunk-IYTZ52EY.js";import"./chunk-CYCB63OH.js";import"./chunk-HTFSEEMT.js";import{a as F}from"./chunk-A56XVLQR.js";import{b,c as N,d as g}from"./chunk-RCV6KWXS.js";import{d as y}from"./chunk-4IW2T6GF.js";import{f as s}from"./chunk-PSPPBZWI.js";import{a as T}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 h}from"./chunk-LEYMRMBK.js";import{e as w}from"./chunk-VTAIKJXX.js";var d=0,j=1;function P(e){h.typeOf.object("options",e),h.typeOf.object("options.frustum",e.frustum),h.typeOf.object("options.origin",e.origin),h.typeOf.object("options.orientation",e.orientation);let t=e.frustum,o=e.orientation,u=e.origin,c=e._drawNearPlane??!0,p,m;t instanceof _?(p=d,m=_.packedLength):t instanceof k&&(p=j,m=k.packedLength),this._frustumType=p,this._frustum=t.clone(),this._origin=a.clone(u),this._orientation=s.clone(o),this._drawNearPlane=c,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+m+a.packedLength+s.packedLength}P.pack=function(e,t,o){h.typeOf.object("value",e),h.defined("array",t),o=o??0;let u=e._frustumType,c=e._frustum;return t[o++]=u,u===d?(_.pack(c,t,o),o+=_.packedLength):(k.pack(c,t,o),o+=k.packedLength),a.pack(e._origin,t,o),o+=a.packedLength,s.pack(e._orientation,t,o),o+=s.packedLength,t[o]=e._drawNearPlane?1:0,t};var C=new _,E=new k,G=new s,R=new a;P.unpack=function(e,t,o){h.defined("array",e),t=t??0;let u=e[t++],c;u===d?(c=_.unpack(e,t,C),t+=_.packedLength):(c=k.unpack(e,t,E),t+=k.packedLength);let p=a.unpack(e,t,R);t+=a.packedLength;let m=s.unpack(e,t,G);t+=s.packedLength;let l=e[t]===1;if(!w(o))return new P({frustum:c,origin:p,orientation:m,_drawNearPlane:l});let n=u===o._frustumType?o._frustum:void 0;return o._frustum=c.clone(n),o._frustumType=u,o._origin=a.clone(p,o._origin),o._orientation=s.clone(m,o._orientation),o._drawNearPlane=l,o};P.createGeometry=function(e){let t=e._frustumType,o=e._frustum,u=e._origin,c=e._orientation,p=e._drawNearPlane,m=new Float64Array(24);A._computeNearFarPlanes(u,c,t,o,m);let l=new F({position:new g({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:m})}),n,i,O=p?2:1,r=new Uint16Array(8*(O+1)),f=p?0:1;for(;f<2;++f)n=p?f*8:0,i=f*4,r[n]=i,r[n+1]=i+1,r[n+2]=i+1,r[n+3]=i+2,r[n+4]=i+2,r[n+5]=i+3,r[n+6]=i+3,r[n+7]=i;for(f=0;f<2;++f)n=(O+f)*8,i=f*4,r[n]=i,r[n+1]=i+4,r[n+2]=i+1,r[n+3]=i+5,r[n+4]=i+2,r[n+5]=i+6,r[n+6]=i+3,r[n+7]=i+7;return new N({attributes:l,indices:r,primitiveType:b.LINES,boundingSphere:y.fromVertices(m)})};var L=P;function S(e,t){return w(t)&&(e=L.unpack(e,t)),L.createGeometry(e)}var $=S;export{$ 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,149 +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
|
-
PrimitivePipeline_default
|
|
28
|
-
} from "./chunk-Y2ME2IJV.js";
|
|
29
|
-
import {
|
|
30
|
-
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-3VAZEH7M.js";
|
|
32
|
-
import "./chunk-2UPKWTMJ.js";
|
|
33
|
-
import "./chunk-EG6PTBY2.js";
|
|
34
|
-
import "./chunk-Z3TIFFGF.js";
|
|
35
|
-
import "./chunk-ZT7KWISZ.js";
|
|
36
|
-
import "./chunk-2FRVPMCS.js";
|
|
37
|
-
import "./chunk-Y5UQJLYE.js";
|
|
38
|
-
import "./chunk-LPR3YNP2.js";
|
|
39
|
-
import "./chunk-4H7PY4U5.js";
|
|
40
|
-
import "./chunk-7TC63SJW.js";
|
|
41
|
-
import "./chunk-FJKNFAKQ.js";
|
|
42
|
-
import "./chunk-TTUZP4BO.js";
|
|
43
|
-
import "./chunk-BG4UCVXN.js";
|
|
44
|
-
import "./chunk-YJEBABKH.js";
|
|
45
|
-
import "./chunk-PPH7OFP3.js";
|
|
46
|
-
import "./chunk-OGXZVPPM.js";
|
|
47
|
-
import "./chunk-5QULIR53.js";
|
|
48
|
-
import "./chunk-SOWMRMWA.js";
|
|
49
|
-
import "./chunk-STW2DGFI.js";
|
|
50
|
-
import {
|
|
51
|
-
defaultValue_default
|
|
52
|
-
} from "./chunk-BBWDMCVU.js";
|
|
53
|
-
import {
|
|
54
|
-
DeveloperError_default
|
|
55
|
-
} from "./chunk-XGI5BXZY.js";
|
|
56
|
-
import {
|
|
57
|
-
__glob,
|
|
58
|
-
__require,
|
|
59
|
-
defined_default
|
|
60
|
-
} from "./chunk-YWTJ2B4B.js";
|
|
61
|
-
|
|
62
|
-
// import("./**/*.js") in packages/engine/Source/Workers/createGeometry.js
|
|
63
|
-
var globImport_js = __glob({
|
|
64
|
-
"./combineGeometry.js": () => import("./combineGeometry.js"),
|
|
65
|
-
"./createBoxGeometry.js": () => import("./createBoxGeometry.js"),
|
|
66
|
-
"./createBoxOutlineGeometry.js": () => import("./createBoxOutlineGeometry.js"),
|
|
67
|
-
"./createCircleGeometry.js": () => import("./createCircleGeometry.js"),
|
|
68
|
-
"./createCircleOutlineGeometry.js": () => import("./createCircleOutlineGeometry.js"),
|
|
69
|
-
"./createCoplanarPolygonGeometry.js": () => import("./createCoplanarPolygonGeometry.js"),
|
|
70
|
-
"./createCoplanarPolygonOutlineGeometry.js": () => import("./createCoplanarPolygonOutlineGeometry.js"),
|
|
71
|
-
"./createCorridorGeometry.js": () => import("./createCorridorGeometry.js"),
|
|
72
|
-
"./createCorridorOutlineGeometry.js": () => import("./createCorridorOutlineGeometry.js"),
|
|
73
|
-
"./createCylinderGeometry.js": () => import("./createCylinderGeometry.js"),
|
|
74
|
-
"./createCylinderOutlineGeometry.js": () => import("./createCylinderOutlineGeometry.js"),
|
|
75
|
-
"./createEllipseGeometry.js": () => import("./createEllipseGeometry.js"),
|
|
76
|
-
"./createEllipseOutlineGeometry.js": () => import("./createEllipseOutlineGeometry.js"),
|
|
77
|
-
"./createEllipsoidGeometry.js": () => import("./createEllipsoidGeometry.js"),
|
|
78
|
-
"./createEllipsoidOutlineGeometry.js": () => import("./createEllipsoidOutlineGeometry.js"),
|
|
79
|
-
"./createFrustumGeometry.js": () => import("./createFrustumGeometry.js"),
|
|
80
|
-
"./createFrustumOutlineGeometry.js": () => import("./createFrustumOutlineGeometry.js"),
|
|
81
|
-
"./createGeometry.js": () => import("./createGeometry.js"),
|
|
82
|
-
"./createGroundPolylineGeometry.js": () => import("./createGroundPolylineGeometry.js"),
|
|
83
|
-
"./createPlaneGeometry.js": () => import("./createPlaneGeometry.js"),
|
|
84
|
-
"./createPlaneOutlineGeometry.js": () => import("./createPlaneOutlineGeometry.js"),
|
|
85
|
-
"./createPolygonGeometry.js": () => import("./createPolygonGeometry.js"),
|
|
86
|
-
"./createPolygonOutlineGeometry.js": () => import("./createPolygonOutlineGeometry.js"),
|
|
87
|
-
"./createPolylineGeometry.js": () => import("./createPolylineGeometry.js"),
|
|
88
|
-
"./createPolylineVolumeGeometry.js": () => import("./createPolylineVolumeGeometry.js"),
|
|
89
|
-
"./createPolylineVolumeOutlineGeometry.js": () => import("./createPolylineVolumeOutlineGeometry.js"),
|
|
90
|
-
"./createRectangleGeometry.js": () => import("./createRectangleGeometry.js"),
|
|
91
|
-
"./createRectangleOutlineGeometry.js": () => import("./createRectangleOutlineGeometry.js"),
|
|
92
|
-
"./createSimplePolylineGeometry.js": () => import("./createSimplePolylineGeometry.js"),
|
|
93
|
-
"./createSphereGeometry.js": () => import("./createSphereGeometry.js"),
|
|
94
|
-
"./createSphereOutlineGeometry.js": () => import("./createSphereOutlineGeometry.js"),
|
|
95
|
-
"./createTaskProcessorWorker.js": () => import("./createTaskProcessorWorker.js"),
|
|
96
|
-
"./createVectorTileClampedPolylines.js": () => import("./createVectorTileClampedPolylines.js"),
|
|
97
|
-
"./createVectorTileGeometries.js": () => import("./createVectorTileGeometries.js"),
|
|
98
|
-
"./createVectorTilePoints.js": () => import("./createVectorTilePoints.js"),
|
|
99
|
-
"./createVectorTilePolygons.js": () => import("./createVectorTilePolygons.js"),
|
|
100
|
-
"./createVectorTilePolylines.js": () => import("./createVectorTilePolylines.js"),
|
|
101
|
-
"./createVerticesFromGoogleEarthEnterpriseBuffer.js": () => import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),
|
|
102
|
-
"./createVerticesFromHeightmap.js": () => import("./createVerticesFromHeightmap.js"),
|
|
103
|
-
"./createVerticesFromQuantizedTerrainMesh.js": () => import("./createVerticesFromQuantizedTerrainMesh.js"),
|
|
104
|
-
"./createWallGeometry.js": () => import("./createWallGeometry.js"),
|
|
105
|
-
"./createWallOutlineGeometry.js": () => import("./createWallOutlineGeometry.js"),
|
|
106
|
-
"./decodeDraco.js": () => import("./decodeDraco.js"),
|
|
107
|
-
"./decodeGoogleEarthEnterprisePacket.js": () => import("./decodeGoogleEarthEnterprisePacket.js"),
|
|
108
|
-
"./decodeI3S.js": () => import("./decodeI3S.js"),
|
|
109
|
-
"./transcodeKTX2.js": () => import("./transcodeKTX2.js"),
|
|
110
|
-
"./transferTypedArrayTest.js": () => import("./transferTypedArrayTest.js"),
|
|
111
|
-
"./upsampleQuantizedTerrainMesh.js": () => import("./upsampleQuantizedTerrainMesh.js")
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
// packages/engine/Source/Workers/createGeometry.js
|
|
115
|
-
var moduleCache = {};
|
|
116
|
-
async function getModule(moduleName, modulePath) {
|
|
117
|
-
let module = defaultValue_default(moduleCache[modulePath] ?? moduleCache[moduleName]);
|
|
118
|
-
if (defined_default(module)) {
|
|
119
|
-
return module;
|
|
120
|
-
}
|
|
121
|
-
if (defined_default(modulePath)) {
|
|
122
|
-
if (typeof exports === "object") {
|
|
123
|
-
module = __require(modulePath);
|
|
124
|
-
} else {
|
|
125
|
-
const result = await import(modulePath);
|
|
126
|
-
module = result.default;
|
|
127
|
-
}
|
|
128
|
-
moduleCache[modulePath] = module;
|
|
129
|
-
return module;
|
|
130
|
-
}
|
|
131
|
-
if (typeof exports === "object") {
|
|
132
|
-
module = __require(`Workers/${moduleName}`);
|
|
133
|
-
} else {
|
|
134
|
-
const result = defined_default(modulePath) ? await import(modulePath) : await globImport_js(`./${moduleName}.js`);
|
|
135
|
-
module = result.default;
|
|
136
|
-
}
|
|
137
|
-
moduleCache[moduleName] = module;
|
|
138
|
-
return module;
|
|
139
|
-
}
|
|
140
|
-
async function createGeometry(parameters, transferableObjects) {
|
|
141
|
-
const subTasks = parameters.subTasks;
|
|
142
|
-
const length = subTasks.length;
|
|
143
|
-
const resultsOrPromises = new Array(length);
|
|
144
|
-
for (let i = 0; i < length; i++) {
|
|
145
|
-
const task = subTasks[i];
|
|
146
|
-
const geometry = task.geometry;
|
|
147
|
-
const moduleName = task.moduleName;
|
|
148
|
-
const modulePath = task.modulePath;
|
|
149
|
-
if (defined_default(moduleName) && defined_default(modulePath)) {
|
|
150
|
-
throw new DeveloperError_default("Must only set moduleName or modulePath");
|
|
151
|
-
}
|
|
152
|
-
if (defined_default(moduleName) || defined_default(modulePath)) {
|
|
153
|
-
resultsOrPromises[i] = getModule(
|
|
154
|
-
moduleName,
|
|
155
|
-
modulePath
|
|
156
|
-
).then((createFunction) => createFunction(geometry, task.offset));
|
|
157
|
-
} else {
|
|
158
|
-
resultsOrPromises[i] = geometry;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return Promise.all(resultsOrPromises).then(function(results) {
|
|
162
|
-
return PrimitivePipeline_default.packCreateGeometryResults(
|
|
163
|
-
results,
|
|
164
|
-
transferableObjects
|
|
165
|
-
);
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
var createGeometry_default = createTaskProcessorWorker_default(createGeometry);
|
|
169
|
-
export {
|
|
170
|
-
createGeometry_default as default
|
|
171
|
-
};
|
|
26
|
+
import{a as k}from"./chunk-VTBDSFTG.js";import{a as w}from"./chunk-WZDE3RYP.js";import"./chunk-DQQ63PYM.js";import"./chunk-VW6VD53G.js";import"./chunk-DEPHB2WM.js";import"./chunk-QOUAJ6TL.js";import"./chunk-DMEY62ID.js";import"./chunk-HTFSEEMT.js";import"./chunk-OFUUQVMR.js";import"./chunk-A56XVLQR.js";import"./chunk-RCV6KWXS.js";import"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import"./chunk-AU7IKHOH.js";import"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{a as y}from"./chunk-LEYMRMBK.js";import{a,b as p,e as r}from"./chunk-VTAIKJXX.js";var g=p({"./combineGeometry.js":()=>import("./combineGeometry.js"),"./createBoxGeometry.js":()=>import("./createBoxGeometry.js"),"./createBoxOutlineGeometry.js":()=>import("./createBoxOutlineGeometry.js"),"./createCircleGeometry.js":()=>import("./createCircleGeometry.js"),"./createCircleOutlineGeometry.js":()=>import("./createCircleOutlineGeometry.js"),"./createCoplanarPolygonGeometry.js":()=>import("./createCoplanarPolygonGeometry.js"),"./createCoplanarPolygonOutlineGeometry.js":()=>import("./createCoplanarPolygonOutlineGeometry.js"),"./createCorridorGeometry.js":()=>import("./createCorridorGeometry.js"),"./createCorridorOutlineGeometry.js":()=>import("./createCorridorOutlineGeometry.js"),"./createCylinderGeometry.js":()=>import("./createCylinderGeometry.js"),"./createCylinderOutlineGeometry.js":()=>import("./createCylinderOutlineGeometry.js"),"./createEllipseGeometry.js":()=>import("./createEllipseGeometry.js"),"./createEllipseOutlineGeometry.js":()=>import("./createEllipseOutlineGeometry.js"),"./createEllipsoidGeometry.js":()=>import("./createEllipsoidGeometry.js"),"./createEllipsoidOutlineGeometry.js":()=>import("./createEllipsoidOutlineGeometry.js"),"./createFrustumGeometry.js":()=>import("./createFrustumGeometry.js"),"./createFrustumOutlineGeometry.js":()=>import("./createFrustumOutlineGeometry.js"),"./createGeometry.js":()=>import("./createGeometry.js"),"./createGroundPolylineGeometry.js":()=>import("./createGroundPolylineGeometry.js"),"./createPlaneGeometry.js":()=>import("./createPlaneGeometry.js"),"./createPlaneOutlineGeometry.js":()=>import("./createPlaneOutlineGeometry.js"),"./createPolygonGeometry.js":()=>import("./createPolygonGeometry.js"),"./createPolygonOutlineGeometry.js":()=>import("./createPolygonOutlineGeometry.js"),"./createPolylineGeometry.js":()=>import("./createPolylineGeometry.js"),"./createPolylineVolumeGeometry.js":()=>import("./createPolylineVolumeGeometry.js"),"./createPolylineVolumeOutlineGeometry.js":()=>import("./createPolylineVolumeOutlineGeometry.js"),"./createRectangleGeometry.js":()=>import("./createRectangleGeometry.js"),"./createRectangleOutlineGeometry.js":()=>import("./createRectangleOutlineGeometry.js"),"./createSimplePolylineGeometry.js":()=>import("./createSimplePolylineGeometry.js"),"./createSphereGeometry.js":()=>import("./createSphereGeometry.js"),"./createSphereOutlineGeometry.js":()=>import("./createSphereOutlineGeometry.js"),"./createTaskProcessorWorker.js":()=>import("./createTaskProcessorWorker.js"),"./createVectorTileClampedPolylines.js":()=>import("./createVectorTileClampedPolylines.js"),"./createVectorTileGeometries.js":()=>import("./createVectorTileGeometries.js"),"./createVectorTilePoints.js":()=>import("./createVectorTilePoints.js"),"./createVectorTilePolygons.js":()=>import("./createVectorTilePolygons.js"),"./createVectorTilePolylines.js":()=>import("./createVectorTilePolylines.js"),"./createVerticesFromGoogleEarthEnterpriseBuffer.js":()=>import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),"./createVerticesFromHeightmap.js":()=>import("./createVerticesFromHeightmap.js"),"./createVerticesFromQuantizedTerrainMesh.js":()=>import("./createVerticesFromQuantizedTerrainMesh.js"),"./createWallGeometry.js":()=>import("./createWallGeometry.js"),"./createWallOutlineGeometry.js":()=>import("./createWallOutlineGeometry.js"),"./decodeDraco.js":()=>import("./decodeDraco.js"),"./decodeGoogleEarthEnterprisePacket.js":()=>import("./decodeGoogleEarthEnterprisePacket.js"),"./decodeI3S.js":()=>import("./decodeI3S.js"),"./gaussianSplatSorter.js":()=>import("./gaussianSplatSorter.js"),"./gaussianSplatTextureGenerator.js":()=>import("./gaussianSplatTextureGenerator.js"),"./transcodeKTX2.js":()=>import("./transcodeKTX2.js"),"./transferTypedArrayTest.js":()=>import("./transferTypedArrayTest.js"),"./upsampleQuantizedTerrainMesh.js":()=>import("./upsampleQuantizedTerrainMesh.js")});var c={};async function b(s,t){let e=c[t]??c[s];return r(e)?e:r(t)?(typeof exports=="object"?e=a(t):e=(await import(t)).default,c[t]=e,e):(typeof exports=="object"?e=a(`Workers/${s}`):e=(r(t)?await import(t):await g(`./${s}.js`)).default,c[s]=e,e)}async function h(s,t){let e=s.subTasks,n=e.length,f=new Array(n);for(let o=0;o<n;o++){let i=e[o],m=i.geometry,u=i.moduleName,l=i.modulePath;if(r(u)&&r(l))throw new y("Must only set moduleName or modulePath");r(u)||r(l)?f[o]=b(u,l).then(d=>d(m,i.offset)):f[o]=m}return Promise.all(f).then(function(o){return k.packCreateGeometryResults(o,t)})}var G=w(h);export{G as default};
|