@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,202 +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-2FWRMUTY.js";
|
|
29
|
-
import {
|
|
30
|
-
GeometryAttributes_default
|
|
31
|
-
} from "./chunk-4H7PY4U5.js";
|
|
32
|
-
import {
|
|
33
|
-
GeometryAttribute_default,
|
|
34
|
-
Geometry_default,
|
|
35
|
-
PrimitiveType_default
|
|
36
|
-
} from "./chunk-7TC63SJW.js";
|
|
37
|
-
import {
|
|
38
|
-
BoundingSphere_default
|
|
39
|
-
} from "./chunk-FJKNFAKQ.js";
|
|
40
|
-
import "./chunk-TTUZP4BO.js";
|
|
41
|
-
import "./chunk-BG4UCVXN.js";
|
|
42
|
-
import "./chunk-YJEBABKH.js";
|
|
43
|
-
import {
|
|
44
|
-
ComponentDatatype_default
|
|
45
|
-
} from "./chunk-PPH7OFP3.js";
|
|
46
|
-
import {
|
|
47
|
-
Cartesian3_default
|
|
48
|
-
} from "./chunk-OGXZVPPM.js";
|
|
49
|
-
import "./chunk-5QULIR53.js";
|
|
50
|
-
import "./chunk-SOWMRMWA.js";
|
|
51
|
-
import "./chunk-STW2DGFI.js";
|
|
52
|
-
import {
|
|
53
|
-
defaultValue_default
|
|
54
|
-
} from "./chunk-BBWDMCVU.js";
|
|
55
|
-
import {
|
|
56
|
-
Check_default
|
|
57
|
-
} from "./chunk-XGI5BXZY.js";
|
|
58
|
-
import {
|
|
59
|
-
defined_default
|
|
60
|
-
} from "./chunk-YWTJ2B4B.js";
|
|
61
|
-
|
|
62
|
-
// packages/engine/Source/Core/PlaneGeometry.js
|
|
63
|
-
function PlaneGeometry(options) {
|
|
64
|
-
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
65
|
-
const vertexFormat = defaultValue_default(options.vertexFormat, VertexFormat_default.DEFAULT);
|
|
66
|
-
this._vertexFormat = vertexFormat;
|
|
67
|
-
this._workerName = "createPlaneGeometry";
|
|
68
|
-
}
|
|
69
|
-
PlaneGeometry.packedLength = VertexFormat_default.packedLength;
|
|
70
|
-
PlaneGeometry.pack = function(value, array, startingIndex) {
|
|
71
|
-
Check_default.typeOf.object("value", value);
|
|
72
|
-
Check_default.defined("array", array);
|
|
73
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
74
|
-
VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
|
|
75
|
-
return array;
|
|
76
|
-
};
|
|
77
|
-
var scratchVertexFormat = new VertexFormat_default();
|
|
78
|
-
var scratchOptions = {
|
|
79
|
-
vertexFormat: scratchVertexFormat
|
|
80
|
-
};
|
|
81
|
-
PlaneGeometry.unpack = function(array, startingIndex, result) {
|
|
82
|
-
Check_default.defined("array", array);
|
|
83
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
84
|
-
const vertexFormat = VertexFormat_default.unpack(
|
|
85
|
-
array,
|
|
86
|
-
startingIndex,
|
|
87
|
-
scratchVertexFormat
|
|
88
|
-
);
|
|
89
|
-
if (!defined_default(result)) {
|
|
90
|
-
return new PlaneGeometry(scratchOptions);
|
|
91
|
-
}
|
|
92
|
-
result._vertexFormat = VertexFormat_default.clone(vertexFormat, result._vertexFormat);
|
|
93
|
-
return result;
|
|
94
|
-
};
|
|
95
|
-
var min = new Cartesian3_default(-0.5, -0.5, 0);
|
|
96
|
-
var max = new Cartesian3_default(0.5, 0.5, 0);
|
|
97
|
-
PlaneGeometry.createGeometry = function(planeGeometry) {
|
|
98
|
-
const vertexFormat = planeGeometry._vertexFormat;
|
|
99
|
-
const attributes = new GeometryAttributes_default();
|
|
100
|
-
let indices;
|
|
101
|
-
let positions;
|
|
102
|
-
if (vertexFormat.position) {
|
|
103
|
-
positions = new Float64Array(4 * 3);
|
|
104
|
-
positions[0] = min.x;
|
|
105
|
-
positions[1] = min.y;
|
|
106
|
-
positions[2] = 0;
|
|
107
|
-
positions[3] = max.x;
|
|
108
|
-
positions[4] = min.y;
|
|
109
|
-
positions[5] = 0;
|
|
110
|
-
positions[6] = max.x;
|
|
111
|
-
positions[7] = max.y;
|
|
112
|
-
positions[8] = 0;
|
|
113
|
-
positions[9] = min.x;
|
|
114
|
-
positions[10] = max.y;
|
|
115
|
-
positions[11] = 0;
|
|
116
|
-
attributes.position = new GeometryAttribute_default({
|
|
117
|
-
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
118
|
-
componentsPerAttribute: 3,
|
|
119
|
-
values: positions
|
|
120
|
-
});
|
|
121
|
-
if (vertexFormat.normal) {
|
|
122
|
-
const normals = new Float32Array(4 * 3);
|
|
123
|
-
normals[0] = 0;
|
|
124
|
-
normals[1] = 0;
|
|
125
|
-
normals[2] = 1;
|
|
126
|
-
normals[3] = 0;
|
|
127
|
-
normals[4] = 0;
|
|
128
|
-
normals[5] = 1;
|
|
129
|
-
normals[6] = 0;
|
|
130
|
-
normals[7] = 0;
|
|
131
|
-
normals[8] = 1;
|
|
132
|
-
normals[9] = 0;
|
|
133
|
-
normals[10] = 0;
|
|
134
|
-
normals[11] = 1;
|
|
135
|
-
attributes.normal = new GeometryAttribute_default({
|
|
136
|
-
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
137
|
-
componentsPerAttribute: 3,
|
|
138
|
-
values: normals
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
if (vertexFormat.st) {
|
|
142
|
-
const texCoords = new Float32Array(4 * 2);
|
|
143
|
-
texCoords[0] = 0;
|
|
144
|
-
texCoords[1] = 0;
|
|
145
|
-
texCoords[2] = 1;
|
|
146
|
-
texCoords[3] = 0;
|
|
147
|
-
texCoords[4] = 1;
|
|
148
|
-
texCoords[5] = 1;
|
|
149
|
-
texCoords[6] = 0;
|
|
150
|
-
texCoords[7] = 1;
|
|
151
|
-
attributes.st = new GeometryAttribute_default({
|
|
152
|
-
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
153
|
-
componentsPerAttribute: 2,
|
|
154
|
-
values: texCoords
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
if (vertexFormat.tangent) {
|
|
158
|
-
const tangents = new Float32Array(4 * 3);
|
|
159
|
-
tangents[0] = 1;
|
|
160
|
-
tangents[1] = 0;
|
|
161
|
-
tangents[2] = 0;
|
|
162
|
-
tangents[3] = 1;
|
|
163
|
-
tangents[4] = 0;
|
|
164
|
-
tangents[5] = 0;
|
|
165
|
-
tangents[6] = 1;
|
|
166
|
-
tangents[7] = 0;
|
|
167
|
-
tangents[8] = 0;
|
|
168
|
-
tangents[9] = 1;
|
|
169
|
-
tangents[10] = 0;
|
|
170
|
-
tangents[11] = 0;
|
|
171
|
-
attributes.tangent = new GeometryAttribute_default({
|
|
172
|
-
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
173
|
-
componentsPerAttribute: 3,
|
|
174
|
-
values: tangents
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
if (vertexFormat.bitangent) {
|
|
178
|
-
const bitangents = new Float32Array(4 * 3);
|
|
179
|
-
bitangents[0] = 0;
|
|
180
|
-
bitangents[1] = 1;
|
|
181
|
-
bitangents[2] = 0;
|
|
182
|
-
bitangents[3] = 0;
|
|
183
|
-
bitangents[4] = 1;
|
|
184
|
-
bitangents[5] = 0;
|
|
185
|
-
bitangents[6] = 0;
|
|
186
|
-
bitangents[7] = 1;
|
|
187
|
-
bitangents[8] = 0;
|
|
188
|
-
bitangents[9] = 0;
|
|
189
|
-
bitangents[10] = 1;
|
|
190
|
-
bitangents[11] = 0;
|
|
191
|
-
attributes.bitangent = new GeometryAttribute_default({
|
|
192
|
-
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
193
|
-
componentsPerAttribute: 3,
|
|
194
|
-
values: bitangents
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
indices = new Uint16Array(2 * 3);
|
|
198
|
-
indices[0] = 0;
|
|
199
|
-
indices[1] = 1;
|
|
200
|
-
indices[2] = 2;
|
|
201
|
-
indices[3] = 0;
|
|
202
|
-
indices[4] = 2;
|
|
203
|
-
indices[5] = 3;
|
|
204
|
-
}
|
|
205
|
-
return new Geometry_default({
|
|
206
|
-
attributes,
|
|
207
|
-
indices,
|
|
208
|
-
primitiveType: PrimitiveType_default.TRIANGLES,
|
|
209
|
-
boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, Math.sqrt(2))
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
var PlaneGeometry_default = PlaneGeometry;
|
|
213
|
-
|
|
214
|
-
// packages/engine/Source/Workers/createPlaneGeometry.js
|
|
215
|
-
function createPlaneGeometry(planeGeometry, offset) {
|
|
216
|
-
if (defined_default(offset)) {
|
|
217
|
-
planeGeometry = PlaneGeometry_default.unpack(planeGeometry, offset);
|
|
218
|
-
}
|
|
219
|
-
return PlaneGeometry_default.createGeometry(planeGeometry);
|
|
220
|
-
}
|
|
221
|
-
var createPlaneGeometry_default = createPlaneGeometry;
|
|
222
|
-
export {
|
|
223
|
-
createPlaneGeometry_default as default
|
|
224
|
-
};
|
|
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,102 +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-4H7PY4U5.js";
|
|
29
|
-
import {
|
|
30
|
-
GeometryAttribute_default,
|
|
31
|
-
Geometry_default,
|
|
32
|
-
PrimitiveType_default
|
|
33
|
-
} from "./chunk-7TC63SJW.js";
|
|
34
|
-
import {
|
|
35
|
-
BoundingSphere_default
|
|
36
|
-
} from "./chunk-FJKNFAKQ.js";
|
|
37
|
-
import "./chunk-TTUZP4BO.js";
|
|
38
|
-
import "./chunk-BG4UCVXN.js";
|
|
39
|
-
import "./chunk-YJEBABKH.js";
|
|
40
|
-
import {
|
|
41
|
-
ComponentDatatype_default
|
|
42
|
-
} from "./chunk-PPH7OFP3.js";
|
|
43
|
-
import {
|
|
44
|
-
Cartesian3_default
|
|
45
|
-
} from "./chunk-OGXZVPPM.js";
|
|
46
|
-
import "./chunk-5QULIR53.js";
|
|
47
|
-
import "./chunk-SOWMRMWA.js";
|
|
48
|
-
import "./chunk-STW2DGFI.js";
|
|
49
|
-
import "./chunk-BBWDMCVU.js";
|
|
50
|
-
import {
|
|
51
|
-
Check_default
|
|
52
|
-
} from "./chunk-XGI5BXZY.js";
|
|
53
|
-
import {
|
|
54
|
-
defined_default
|
|
55
|
-
} from "./chunk-YWTJ2B4B.js";
|
|
56
|
-
|
|
57
|
-
// packages/engine/Source/Core/PlaneOutlineGeometry.js
|
|
58
|
-
function PlaneOutlineGeometry() {
|
|
59
|
-
this._workerName = "createPlaneOutlineGeometry";
|
|
60
|
-
}
|
|
61
|
-
PlaneOutlineGeometry.packedLength = 0;
|
|
62
|
-
PlaneOutlineGeometry.pack = function(value, array) {
|
|
63
|
-
Check_default.defined("value", value);
|
|
64
|
-
Check_default.defined("array", array);
|
|
65
|
-
return array;
|
|
66
|
-
};
|
|
67
|
-
PlaneOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
68
|
-
Check_default.defined("array", array);
|
|
69
|
-
if (!defined_default(result)) {
|
|
70
|
-
return new PlaneOutlineGeometry();
|
|
71
|
-
}
|
|
72
|
-
return result;
|
|
73
|
-
};
|
|
74
|
-
var min = new Cartesian3_default(-0.5, -0.5, 0);
|
|
75
|
-
var max = new Cartesian3_default(0.5, 0.5, 0);
|
|
76
|
-
PlaneOutlineGeometry.createGeometry = function() {
|
|
77
|
-
const attributes = new GeometryAttributes_default();
|
|
78
|
-
const indices = new Uint16Array(4 * 2);
|
|
79
|
-
const positions = new Float64Array(4 * 3);
|
|
80
|
-
positions[0] = min.x;
|
|
81
|
-
positions[1] = min.y;
|
|
82
|
-
positions[2] = min.z;
|
|
83
|
-
positions[3] = max.x;
|
|
84
|
-
positions[4] = min.y;
|
|
85
|
-
positions[5] = min.z;
|
|
86
|
-
positions[6] = max.x;
|
|
87
|
-
positions[7] = max.y;
|
|
88
|
-
positions[8] = min.z;
|
|
89
|
-
positions[9] = min.x;
|
|
90
|
-
positions[10] = max.y;
|
|
91
|
-
positions[11] = min.z;
|
|
92
|
-
attributes.position = new GeometryAttribute_default({
|
|
93
|
-
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
94
|
-
componentsPerAttribute: 3,
|
|
95
|
-
values: positions
|
|
96
|
-
});
|
|
97
|
-
indices[0] = 0;
|
|
98
|
-
indices[1] = 1;
|
|
99
|
-
indices[2] = 1;
|
|
100
|
-
indices[3] = 2;
|
|
101
|
-
indices[4] = 2;
|
|
102
|
-
indices[5] = 3;
|
|
103
|
-
indices[6] = 3;
|
|
104
|
-
indices[7] = 0;
|
|
105
|
-
return new Geometry_default({
|
|
106
|
-
attributes,
|
|
107
|
-
indices,
|
|
108
|
-
primitiveType: PrimitiveType_default.LINES,
|
|
109
|
-
boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, Math.sqrt(2))
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
var PlaneOutlineGeometry_default = PlaneOutlineGeometry;
|
|
113
|
-
|
|
114
|
-
// packages/engine/Source/Workers/createPlaneOutlineGeometry.js
|
|
115
|
-
function createPlaneOutlineGeometry(planeGeometry, offset) {
|
|
116
|
-
if (defined_default(offset)) {
|
|
117
|
-
planeGeometry = PlaneOutlineGeometry_default.unpack(planeGeometry, offset);
|
|
118
|
-
}
|
|
119
|
-
return PlaneOutlineGeometry_default.createGeometry(planeGeometry);
|
|
120
|
-
}
|
|
121
|
-
var createPlaneOutlineGeometry_default = createPlaneOutlineGeometry;
|
|
122
|
-
export {
|
|
123
|
-
createPlaneOutlineGeometry_default as default
|
|
124
|
-
};
|
|
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};
|