@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,470 +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
|
-
createTaskProcessorWorker_default
|
|
28
|
-
} from "./chunk-3VAZEH7M.js";
|
|
29
|
-
import {
|
|
30
|
-
AttributeCompression_default
|
|
31
|
-
} from "./chunk-Z3TIFFGF.js";
|
|
32
|
-
import {
|
|
33
|
-
IndexDatatype_default
|
|
34
|
-
} from "./chunk-LPR3YNP2.js";
|
|
35
|
-
import {
|
|
36
|
-
combine_default
|
|
37
|
-
} from "./chunk-BG4UCVXN.js";
|
|
38
|
-
import {
|
|
39
|
-
Rectangle_default
|
|
40
|
-
} from "./chunk-YJEBABKH.js";
|
|
41
|
-
import "./chunk-PPH7OFP3.js";
|
|
42
|
-
import {
|
|
43
|
-
Cartesian3_default,
|
|
44
|
-
Cartographic_default,
|
|
45
|
-
Ellipsoid_default
|
|
46
|
-
} from "./chunk-OGXZVPPM.js";
|
|
47
|
-
import {
|
|
48
|
-
Math_default
|
|
49
|
-
} from "./chunk-5QULIR53.js";
|
|
50
|
-
import "./chunk-SOWMRMWA.js";
|
|
51
|
-
import "./chunk-STW2DGFI.js";
|
|
52
|
-
import "./chunk-BBWDMCVU.js";
|
|
53
|
-
import "./chunk-XGI5BXZY.js";
|
|
54
|
-
import "./chunk-YWTJ2B4B.js";
|
|
55
|
-
|
|
56
|
-
// packages/engine/Source/Workers/createVectorTileClampedPolylines.js
|
|
57
|
-
var MAX_SHORT = 32767;
|
|
58
|
-
var MITER_BREAK = Math.cos(Math_default.toRadians(150));
|
|
59
|
-
var scratchBVCartographic = new Cartographic_default();
|
|
60
|
-
var scratchEncodedPosition = new Cartesian3_default();
|
|
61
|
-
function decodePositions(uBuffer, vBuffer, heightBuffer, rectangle, minimumHeight, maximumHeight, ellipsoid) {
|
|
62
|
-
const positionsLength = uBuffer.length;
|
|
63
|
-
const decodedPositions = new Float64Array(positionsLength * 3);
|
|
64
|
-
for (let i = 0; i < positionsLength; ++i) {
|
|
65
|
-
const u = uBuffer[i];
|
|
66
|
-
const v = vBuffer[i];
|
|
67
|
-
const h = heightBuffer[i];
|
|
68
|
-
const lon = Math_default.lerp(rectangle.west, rectangle.east, u / MAX_SHORT);
|
|
69
|
-
const lat = Math_default.lerp(
|
|
70
|
-
rectangle.south,
|
|
71
|
-
rectangle.north,
|
|
72
|
-
v / MAX_SHORT
|
|
73
|
-
);
|
|
74
|
-
const alt = Math_default.lerp(minimumHeight, maximumHeight, h / MAX_SHORT);
|
|
75
|
-
const cartographic = Cartographic_default.fromRadians(
|
|
76
|
-
lon,
|
|
77
|
-
lat,
|
|
78
|
-
alt,
|
|
79
|
-
scratchBVCartographic
|
|
80
|
-
);
|
|
81
|
-
const decodedPosition = ellipsoid.cartographicToCartesian(
|
|
82
|
-
cartographic,
|
|
83
|
-
scratchEncodedPosition
|
|
84
|
-
);
|
|
85
|
-
Cartesian3_default.pack(decodedPosition, decodedPositions, i * 3);
|
|
86
|
-
}
|
|
87
|
-
return decodedPositions;
|
|
88
|
-
}
|
|
89
|
-
function getPositionOffsets(counts) {
|
|
90
|
-
const countsLength = counts.length;
|
|
91
|
-
const positionOffsets = new Uint32Array(countsLength + 1);
|
|
92
|
-
let offset = 0;
|
|
93
|
-
for (let i = 0; i < countsLength; ++i) {
|
|
94
|
-
positionOffsets[i] = offset;
|
|
95
|
-
offset += counts[i];
|
|
96
|
-
}
|
|
97
|
-
positionOffsets[countsLength] = offset;
|
|
98
|
-
return positionOffsets;
|
|
99
|
-
}
|
|
100
|
-
var previousCompressedCartographicScratch = new Cartographic_default();
|
|
101
|
-
var currentCompressedCartographicScratch = new Cartographic_default();
|
|
102
|
-
function removeDuplicates(uBuffer, vBuffer, heightBuffer, counts) {
|
|
103
|
-
const countsLength = counts.length;
|
|
104
|
-
const positionsLength = uBuffer.length;
|
|
105
|
-
const markRemoval = new Uint8Array(positionsLength);
|
|
106
|
-
const previous = previousCompressedCartographicScratch;
|
|
107
|
-
const current = currentCompressedCartographicScratch;
|
|
108
|
-
let offset = 0;
|
|
109
|
-
for (let i = 0; i < countsLength; i++) {
|
|
110
|
-
const count = counts[i];
|
|
111
|
-
let updatedCount = count;
|
|
112
|
-
for (let j = 1; j < count; j++) {
|
|
113
|
-
const index = offset + j;
|
|
114
|
-
const previousIndex = index - 1;
|
|
115
|
-
current.longitude = uBuffer[index];
|
|
116
|
-
current.latitude = vBuffer[index];
|
|
117
|
-
previous.longitude = uBuffer[previousIndex];
|
|
118
|
-
previous.latitude = vBuffer[previousIndex];
|
|
119
|
-
if (Cartographic_default.equals(current, previous)) {
|
|
120
|
-
updatedCount--;
|
|
121
|
-
markRemoval[previousIndex] = 1;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
counts[i] = updatedCount;
|
|
125
|
-
offset += count;
|
|
126
|
-
}
|
|
127
|
-
let nextAvailableIndex = 0;
|
|
128
|
-
for (let k = 0; k < positionsLength; k++) {
|
|
129
|
-
if (markRemoval[k] !== 1) {
|
|
130
|
-
uBuffer[nextAvailableIndex] = uBuffer[k];
|
|
131
|
-
vBuffer[nextAvailableIndex] = vBuffer[k];
|
|
132
|
-
heightBuffer[nextAvailableIndex] = heightBuffer[k];
|
|
133
|
-
nextAvailableIndex++;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
function VertexAttributesAndIndices(volumesCount) {
|
|
138
|
-
const vertexCount = volumesCount * 8;
|
|
139
|
-
const vec3Floats = vertexCount * 3;
|
|
140
|
-
const vec4Floats = vertexCount * 4;
|
|
141
|
-
this.startEllipsoidNormals = new Float32Array(vec3Floats);
|
|
142
|
-
this.endEllipsoidNormals = new Float32Array(vec3Floats);
|
|
143
|
-
this.startPositionAndHeights = new Float32Array(vec4Floats);
|
|
144
|
-
this.startFaceNormalAndVertexCornerIds = new Float32Array(vec4Floats);
|
|
145
|
-
this.endPositionAndHeights = new Float32Array(vec4Floats);
|
|
146
|
-
this.endFaceNormalAndHalfWidths = new Float32Array(vec4Floats);
|
|
147
|
-
this.vertexBatchIds = new Uint16Array(vertexCount);
|
|
148
|
-
this.indices = IndexDatatype_default.createTypedArray(vertexCount, 36 * volumesCount);
|
|
149
|
-
this.vec3Offset = 0;
|
|
150
|
-
this.vec4Offset = 0;
|
|
151
|
-
this.batchIdOffset = 0;
|
|
152
|
-
this.indexOffset = 0;
|
|
153
|
-
this.volumeStartIndex = 0;
|
|
154
|
-
}
|
|
155
|
-
var towardCurrScratch = new Cartesian3_default();
|
|
156
|
-
var towardNextScratch = new Cartesian3_default();
|
|
157
|
-
function computeMiteredNormal(previousPosition, position, nextPosition, ellipsoidSurfaceNormal, result) {
|
|
158
|
-
const towardNext = Cartesian3_default.subtract(
|
|
159
|
-
nextPosition,
|
|
160
|
-
position,
|
|
161
|
-
towardNextScratch
|
|
162
|
-
);
|
|
163
|
-
let towardCurr = Cartesian3_default.subtract(
|
|
164
|
-
position,
|
|
165
|
-
previousPosition,
|
|
166
|
-
towardCurrScratch
|
|
167
|
-
);
|
|
168
|
-
Cartesian3_default.normalize(towardNext, towardNext);
|
|
169
|
-
Cartesian3_default.normalize(towardCurr, towardCurr);
|
|
170
|
-
if (Cartesian3_default.dot(towardNext, towardCurr) < MITER_BREAK) {
|
|
171
|
-
towardCurr = Cartesian3_default.multiplyByScalar(
|
|
172
|
-
towardCurr,
|
|
173
|
-
-1,
|
|
174
|
-
towardCurrScratch
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
Cartesian3_default.add(towardNext, towardCurr, result);
|
|
178
|
-
if (Cartesian3_default.equals(result, Cartesian3_default.ZERO)) {
|
|
179
|
-
result = Cartesian3_default.subtract(previousPosition, position);
|
|
180
|
-
}
|
|
181
|
-
Cartesian3_default.cross(result, ellipsoidSurfaceNormal, result);
|
|
182
|
-
Cartesian3_default.cross(ellipsoidSurfaceNormal, result, result);
|
|
183
|
-
Cartesian3_default.normalize(result, result);
|
|
184
|
-
return result;
|
|
185
|
-
}
|
|
186
|
-
var REFERENCE_INDICES = [
|
|
187
|
-
0,
|
|
188
|
-
2,
|
|
189
|
-
6,
|
|
190
|
-
0,
|
|
191
|
-
6,
|
|
192
|
-
4,
|
|
193
|
-
// right
|
|
194
|
-
0,
|
|
195
|
-
1,
|
|
196
|
-
3,
|
|
197
|
-
0,
|
|
198
|
-
3,
|
|
199
|
-
2,
|
|
200
|
-
// start face
|
|
201
|
-
0,
|
|
202
|
-
4,
|
|
203
|
-
5,
|
|
204
|
-
0,
|
|
205
|
-
5,
|
|
206
|
-
1,
|
|
207
|
-
// bottom
|
|
208
|
-
5,
|
|
209
|
-
3,
|
|
210
|
-
1,
|
|
211
|
-
5,
|
|
212
|
-
7,
|
|
213
|
-
3,
|
|
214
|
-
// left
|
|
215
|
-
7,
|
|
216
|
-
5,
|
|
217
|
-
4,
|
|
218
|
-
7,
|
|
219
|
-
4,
|
|
220
|
-
6,
|
|
221
|
-
// end face
|
|
222
|
-
7,
|
|
223
|
-
6,
|
|
224
|
-
2,
|
|
225
|
-
7,
|
|
226
|
-
2,
|
|
227
|
-
3
|
|
228
|
-
// top
|
|
229
|
-
];
|
|
230
|
-
var REFERENCE_INDICES_LENGTH = REFERENCE_INDICES.length;
|
|
231
|
-
var positionScratch = new Cartesian3_default();
|
|
232
|
-
var scratchStartEllipsoidNormal = new Cartesian3_default();
|
|
233
|
-
var scratchStartFaceNormal = new Cartesian3_default();
|
|
234
|
-
var scratchEndEllipsoidNormal = new Cartesian3_default();
|
|
235
|
-
var scratchEndFaceNormal = new Cartesian3_default();
|
|
236
|
-
VertexAttributesAndIndices.prototype.addVolume = function(preStartRTC, startRTC, endRTC, postEndRTC, startHeight, endHeight, halfWidth, batchId, center, ellipsoid) {
|
|
237
|
-
let position = Cartesian3_default.add(startRTC, center, positionScratch);
|
|
238
|
-
const startEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
|
|
239
|
-
position,
|
|
240
|
-
scratchStartEllipsoidNormal
|
|
241
|
-
);
|
|
242
|
-
position = Cartesian3_default.add(endRTC, center, positionScratch);
|
|
243
|
-
const endEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
|
|
244
|
-
position,
|
|
245
|
-
scratchEndEllipsoidNormal
|
|
246
|
-
);
|
|
247
|
-
const startFaceNormal = computeMiteredNormal(
|
|
248
|
-
preStartRTC,
|
|
249
|
-
startRTC,
|
|
250
|
-
endRTC,
|
|
251
|
-
startEllipsoidNormal,
|
|
252
|
-
scratchStartFaceNormal
|
|
253
|
-
);
|
|
254
|
-
const endFaceNormal = computeMiteredNormal(
|
|
255
|
-
postEndRTC,
|
|
256
|
-
endRTC,
|
|
257
|
-
startRTC,
|
|
258
|
-
endEllipsoidNormal,
|
|
259
|
-
scratchEndFaceNormal
|
|
260
|
-
);
|
|
261
|
-
const startEllipsoidNormals = this.startEllipsoidNormals;
|
|
262
|
-
const endEllipsoidNormals = this.endEllipsoidNormals;
|
|
263
|
-
const startPositionAndHeights = this.startPositionAndHeights;
|
|
264
|
-
const startFaceNormalAndVertexCornerIds = this.startFaceNormalAndVertexCornerIds;
|
|
265
|
-
const endPositionAndHeights = this.endPositionAndHeights;
|
|
266
|
-
const endFaceNormalAndHalfWidths = this.endFaceNormalAndHalfWidths;
|
|
267
|
-
const vertexBatchIds = this.vertexBatchIds;
|
|
268
|
-
let batchIdOffset = this.batchIdOffset;
|
|
269
|
-
let vec3Offset = this.vec3Offset;
|
|
270
|
-
let vec4Offset = this.vec4Offset;
|
|
271
|
-
let i;
|
|
272
|
-
for (i = 0; i < 8; i++) {
|
|
273
|
-
Cartesian3_default.pack(startEllipsoidNormal, startEllipsoidNormals, vec3Offset);
|
|
274
|
-
Cartesian3_default.pack(endEllipsoidNormal, endEllipsoidNormals, vec3Offset);
|
|
275
|
-
Cartesian3_default.pack(startRTC, startPositionAndHeights, vec4Offset);
|
|
276
|
-
startPositionAndHeights[vec4Offset + 3] = startHeight;
|
|
277
|
-
Cartesian3_default.pack(endRTC, endPositionAndHeights, vec4Offset);
|
|
278
|
-
endPositionAndHeights[vec4Offset + 3] = endHeight;
|
|
279
|
-
Cartesian3_default.pack(
|
|
280
|
-
startFaceNormal,
|
|
281
|
-
startFaceNormalAndVertexCornerIds,
|
|
282
|
-
vec4Offset
|
|
283
|
-
);
|
|
284
|
-
startFaceNormalAndVertexCornerIds[vec4Offset + 3] = i;
|
|
285
|
-
Cartesian3_default.pack(endFaceNormal, endFaceNormalAndHalfWidths, vec4Offset);
|
|
286
|
-
endFaceNormalAndHalfWidths[vec4Offset + 3] = halfWidth;
|
|
287
|
-
vertexBatchIds[batchIdOffset++] = batchId;
|
|
288
|
-
vec3Offset += 3;
|
|
289
|
-
vec4Offset += 4;
|
|
290
|
-
}
|
|
291
|
-
this.batchIdOffset = batchIdOffset;
|
|
292
|
-
this.vec3Offset = vec3Offset;
|
|
293
|
-
this.vec4Offset = vec4Offset;
|
|
294
|
-
const indices = this.indices;
|
|
295
|
-
const volumeStartIndex = this.volumeStartIndex;
|
|
296
|
-
const indexOffset = this.indexOffset;
|
|
297
|
-
for (i = 0; i < REFERENCE_INDICES_LENGTH; i++) {
|
|
298
|
-
indices[indexOffset + i] = REFERENCE_INDICES[i] + volumeStartIndex;
|
|
299
|
-
}
|
|
300
|
-
this.volumeStartIndex += 8;
|
|
301
|
-
this.indexOffset += REFERENCE_INDICES_LENGTH;
|
|
302
|
-
};
|
|
303
|
-
var scratchRectangle = new Rectangle_default();
|
|
304
|
-
var scratchEllipsoid = new Ellipsoid_default();
|
|
305
|
-
var scratchCenter = new Cartesian3_default();
|
|
306
|
-
var scratchPrev = new Cartesian3_default();
|
|
307
|
-
var scratchP0 = new Cartesian3_default();
|
|
308
|
-
var scratchP1 = new Cartesian3_default();
|
|
309
|
-
var scratchNext = new Cartesian3_default();
|
|
310
|
-
function createVectorTileClampedPolylines(parameters, transferableObjects) {
|
|
311
|
-
const encodedPositions = new Uint16Array(parameters.positions);
|
|
312
|
-
const widths = new Uint16Array(parameters.widths);
|
|
313
|
-
const counts = new Uint32Array(parameters.counts);
|
|
314
|
-
const batchIds = new Uint16Array(parameters.batchIds);
|
|
315
|
-
const rectangle = scratchRectangle;
|
|
316
|
-
const ellipsoid = scratchEllipsoid;
|
|
317
|
-
const center = scratchCenter;
|
|
318
|
-
const packedBuffer = new Float64Array(parameters.packedBuffer);
|
|
319
|
-
let offset = 0;
|
|
320
|
-
const minimumHeight = packedBuffer[offset++];
|
|
321
|
-
const maximumHeight = packedBuffer[offset++];
|
|
322
|
-
Rectangle_default.unpack(packedBuffer, offset, rectangle);
|
|
323
|
-
offset += Rectangle_default.packedLength;
|
|
324
|
-
Ellipsoid_default.unpack(packedBuffer, offset, ellipsoid);
|
|
325
|
-
offset += Ellipsoid_default.packedLength;
|
|
326
|
-
Cartesian3_default.unpack(packedBuffer, offset, center);
|
|
327
|
-
let i;
|
|
328
|
-
let positionsLength = encodedPositions.length / 3;
|
|
329
|
-
const uBuffer = encodedPositions.subarray(0, positionsLength);
|
|
330
|
-
const vBuffer = encodedPositions.subarray(
|
|
331
|
-
positionsLength,
|
|
332
|
-
2 * positionsLength
|
|
333
|
-
);
|
|
334
|
-
const heightBuffer = encodedPositions.subarray(
|
|
335
|
-
2 * positionsLength,
|
|
336
|
-
3 * positionsLength
|
|
337
|
-
);
|
|
338
|
-
AttributeCompression_default.zigZagDeltaDecode(uBuffer, vBuffer, heightBuffer);
|
|
339
|
-
removeDuplicates(uBuffer, vBuffer, heightBuffer, counts);
|
|
340
|
-
const countsLength = counts.length;
|
|
341
|
-
let volumesCount = 0;
|
|
342
|
-
for (i = 0; i < countsLength; i++) {
|
|
343
|
-
const polylinePositionCount = counts[i];
|
|
344
|
-
volumesCount += polylinePositionCount - 1;
|
|
345
|
-
}
|
|
346
|
-
const attribsAndIndices = new VertexAttributesAndIndices(volumesCount);
|
|
347
|
-
const positions = decodePositions(
|
|
348
|
-
uBuffer,
|
|
349
|
-
vBuffer,
|
|
350
|
-
heightBuffer,
|
|
351
|
-
rectangle,
|
|
352
|
-
minimumHeight,
|
|
353
|
-
maximumHeight,
|
|
354
|
-
ellipsoid,
|
|
355
|
-
center
|
|
356
|
-
);
|
|
357
|
-
positionsLength = uBuffer.length;
|
|
358
|
-
const positionsRTC = new Float32Array(positionsLength * 3);
|
|
359
|
-
for (i = 0; i < positionsLength; ++i) {
|
|
360
|
-
positionsRTC[i * 3] = positions[i * 3] - center.x;
|
|
361
|
-
positionsRTC[i * 3 + 1] = positions[i * 3 + 1] - center.y;
|
|
362
|
-
positionsRTC[i * 3 + 2] = positions[i * 3 + 2] - center.z;
|
|
363
|
-
}
|
|
364
|
-
let currentPositionIndex = 0;
|
|
365
|
-
let currentHeightIndex = 0;
|
|
366
|
-
for (i = 0; i < countsLength; i++) {
|
|
367
|
-
const polylineVolumeCount = counts[i] - 1;
|
|
368
|
-
const halfWidth = widths[i] * 0.5;
|
|
369
|
-
const batchId = batchIds[i];
|
|
370
|
-
const volumeFirstPositionIndex = currentPositionIndex;
|
|
371
|
-
for (let j = 0; j < polylineVolumeCount; j++) {
|
|
372
|
-
const volumeStart = Cartesian3_default.unpack(
|
|
373
|
-
positionsRTC,
|
|
374
|
-
currentPositionIndex,
|
|
375
|
-
scratchP0
|
|
376
|
-
);
|
|
377
|
-
const volumeEnd = Cartesian3_default.unpack(
|
|
378
|
-
positionsRTC,
|
|
379
|
-
currentPositionIndex + 3,
|
|
380
|
-
scratchP1
|
|
381
|
-
);
|
|
382
|
-
let startHeight = heightBuffer[currentHeightIndex];
|
|
383
|
-
let endHeight = heightBuffer[currentHeightIndex + 1];
|
|
384
|
-
startHeight = Math_default.lerp(
|
|
385
|
-
minimumHeight,
|
|
386
|
-
maximumHeight,
|
|
387
|
-
startHeight / MAX_SHORT
|
|
388
|
-
);
|
|
389
|
-
endHeight = Math_default.lerp(
|
|
390
|
-
minimumHeight,
|
|
391
|
-
maximumHeight,
|
|
392
|
-
endHeight / MAX_SHORT
|
|
393
|
-
);
|
|
394
|
-
currentHeightIndex++;
|
|
395
|
-
let preStart = scratchPrev;
|
|
396
|
-
let postEnd = scratchNext;
|
|
397
|
-
if (j === 0) {
|
|
398
|
-
const finalPositionIndex = volumeFirstPositionIndex + polylineVolumeCount * 3;
|
|
399
|
-
const finalPosition = Cartesian3_default.unpack(
|
|
400
|
-
positionsRTC,
|
|
401
|
-
finalPositionIndex,
|
|
402
|
-
scratchPrev
|
|
403
|
-
);
|
|
404
|
-
if (Cartesian3_default.equals(finalPosition, volumeStart)) {
|
|
405
|
-
Cartesian3_default.unpack(positionsRTC, finalPositionIndex - 3, preStart);
|
|
406
|
-
} else {
|
|
407
|
-
const offsetPastStart = Cartesian3_default.subtract(
|
|
408
|
-
volumeStart,
|
|
409
|
-
volumeEnd,
|
|
410
|
-
scratchPrev
|
|
411
|
-
);
|
|
412
|
-
preStart = Cartesian3_default.add(offsetPastStart, volumeStart, scratchPrev);
|
|
413
|
-
}
|
|
414
|
-
} else {
|
|
415
|
-
Cartesian3_default.unpack(positionsRTC, currentPositionIndex - 3, preStart);
|
|
416
|
-
}
|
|
417
|
-
if (j === polylineVolumeCount - 1) {
|
|
418
|
-
const firstPosition = Cartesian3_default.unpack(
|
|
419
|
-
positionsRTC,
|
|
420
|
-
volumeFirstPositionIndex,
|
|
421
|
-
scratchNext
|
|
422
|
-
);
|
|
423
|
-
if (Cartesian3_default.equals(firstPosition, volumeEnd)) {
|
|
424
|
-
Cartesian3_default.unpack(
|
|
425
|
-
positionsRTC,
|
|
426
|
-
volumeFirstPositionIndex + 3,
|
|
427
|
-
postEnd
|
|
428
|
-
);
|
|
429
|
-
} else {
|
|
430
|
-
const offsetPastEnd = Cartesian3_default.subtract(
|
|
431
|
-
volumeEnd,
|
|
432
|
-
volumeStart,
|
|
433
|
-
scratchNext
|
|
434
|
-
);
|
|
435
|
-
postEnd = Cartesian3_default.add(offsetPastEnd, volumeEnd, scratchNext);
|
|
436
|
-
}
|
|
437
|
-
} else {
|
|
438
|
-
Cartesian3_default.unpack(positionsRTC, currentPositionIndex + 6, postEnd);
|
|
439
|
-
}
|
|
440
|
-
attribsAndIndices.addVolume(
|
|
441
|
-
preStart,
|
|
442
|
-
volumeStart,
|
|
443
|
-
volumeEnd,
|
|
444
|
-
postEnd,
|
|
445
|
-
startHeight,
|
|
446
|
-
endHeight,
|
|
447
|
-
halfWidth,
|
|
448
|
-
batchId,
|
|
449
|
-
center,
|
|
450
|
-
ellipsoid
|
|
451
|
-
);
|
|
452
|
-
currentPositionIndex += 3;
|
|
453
|
-
}
|
|
454
|
-
currentPositionIndex += 3;
|
|
455
|
-
currentHeightIndex++;
|
|
456
|
-
}
|
|
457
|
-
const indices = attribsAndIndices.indices;
|
|
458
|
-
transferableObjects.push(attribsAndIndices.startEllipsoidNormals.buffer);
|
|
459
|
-
transferableObjects.push(attribsAndIndices.endEllipsoidNormals.buffer);
|
|
460
|
-
transferableObjects.push(attribsAndIndices.startPositionAndHeights.buffer);
|
|
461
|
-
transferableObjects.push(
|
|
462
|
-
attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer
|
|
463
|
-
);
|
|
464
|
-
transferableObjects.push(attribsAndIndices.endPositionAndHeights.buffer);
|
|
465
|
-
transferableObjects.push(attribsAndIndices.endFaceNormalAndHalfWidths.buffer);
|
|
466
|
-
transferableObjects.push(attribsAndIndices.vertexBatchIds.buffer);
|
|
467
|
-
transferableObjects.push(indices.buffer);
|
|
468
|
-
let results = {
|
|
469
|
-
indexDatatype: indices.BYTES_PER_ELEMENT === 2 ? IndexDatatype_default.UNSIGNED_SHORT : IndexDatatype_default.UNSIGNED_INT,
|
|
470
|
-
startEllipsoidNormals: attribsAndIndices.startEllipsoidNormals.buffer,
|
|
471
|
-
endEllipsoidNormals: attribsAndIndices.endEllipsoidNormals.buffer,
|
|
472
|
-
startPositionAndHeights: attribsAndIndices.startPositionAndHeights.buffer,
|
|
473
|
-
startFaceNormalAndVertexCornerIds: attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer,
|
|
474
|
-
endPositionAndHeights: attribsAndIndices.endPositionAndHeights.buffer,
|
|
475
|
-
endFaceNormalAndHalfWidths: attribsAndIndices.endFaceNormalAndHalfWidths.buffer,
|
|
476
|
-
vertexBatchIds: attribsAndIndices.vertexBatchIds.buffer,
|
|
477
|
-
indices: indices.buffer
|
|
478
|
-
};
|
|
479
|
-
if (parameters.keepDecodedPositions) {
|
|
480
|
-
const positionOffsets = getPositionOffsets(counts);
|
|
481
|
-
transferableObjects.push(positions.buffer, positionOffsets.buffer);
|
|
482
|
-
results = combine_default(results, {
|
|
483
|
-
decodedPositions: positions.buffer,
|
|
484
|
-
decodedPositionOffsets: positionOffsets.buffer
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
return results;
|
|
488
|
-
}
|
|
489
|
-
var createVectorTileClampedPolylines_default = createTaskProcessorWorker_default(createVectorTileClampedPolylines);
|
|
490
|
-
export {
|
|
491
|
-
createVectorTileClampedPolylines_default as default
|
|
492
|
-
};
|
|
26
|
+
import{a as J}from"./chunk-WZDE3RYP.js";import{a as Y}from"./chunk-DEPHB2WM.js";import{a as B}from"./chunk-OFUUQVMR.js";import{c as X,h as W}from"./chunk-PSPPBZWI.js";import"./chunk-AU7IKHOH.js";import{a as t,b as k,d as _}from"./chunk-64RSHJUE.js";import{a as v}from"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import"./chunk-LEYMRMBK.js";import"./chunk-VTAIKJXX.js";var V=32767,it=Math.cos(v.toRadians(150)),ct=new k,rt=new t;function at(e,o,c,i,s,A,h){let g=e.length,f=new Float64Array(g*3);for(let d=0;d<g;++d){let l=e[d],r=o[d],E=c[d],n=v.lerp(i.west,i.east,l/V),p=v.lerp(i.south,i.north,r/V),w=v.lerp(s,A,E/V),x=k.fromRadians(n,p,w,ct),P=h.cartographicToCartesian(x,rt);t.pack(P,f,d*3)}return f}function dt(e){let o=e.length,c=new Uint32Array(o+1),i=0;for(let s=0;s<o;++s)c[s]=i,i+=e[s];return c[o]=i,c}var lt=new k,ht=new k;function ft(e,o,c,i){let s=i.length,A=e.length,h=new Uint8Array(A),g=lt,f=ht,d=0;for(let r=0;r<s;r++){let E=i[r],n=E;for(let p=1;p<E;p++){let w=d+p,x=w-1;f.longitude=e[w],f.latitude=o[w],g.longitude=e[x],g.latitude=o[x],k.equals(f,g)&&(n--,h[x]=1)}i[r]=n,d+=E}let l=0;for(let r=0;r<A;r++)h[r]!==1&&(e[l]=e[r],o[l]=o[r],c[l]=c[r],l++)}function ot(e){let o=e*8,c=o*3,i=o*4;this.startEllipsoidNormals=new Float32Array(c),this.endEllipsoidNormals=new Float32Array(c),this.startPositionAndHeights=new Float32Array(i),this.startFaceNormalAndVertexCornerIds=new Float32Array(i),this.endPositionAndHeights=new Float32Array(i),this.endFaceNormalAndHalfWidths=new Float32Array(i),this.vertexBatchIds=new Uint16Array(o),this.indices=B.createTypedArray(o,36*e),this.vec3Offset=0,this.vec4Offset=0,this.batchIdOffset=0,this.indexOffset=0,this.volumeStartIndex=0}var Q=new t,pt=new t;function $(e,o,c,i,s){let A=t.subtract(c,o,pt),h=t.subtract(o,e,Q);return t.normalize(A,A),t.normalize(h,h),t.dot(A,h)<it&&(h=t.multiplyByScalar(h,-1,Q)),t.add(A,h,s),t.equals(s,t.ZERO)&&(s=t.subtract(e,o)),t.cross(s,i,s),t.cross(i,s,s),t.normalize(s,s),s}var st=[0,2,6,0,6,4,0,1,3,0,3,2,0,4,5,0,5,1,5,3,1,5,7,3,7,5,4,7,4,6,7,6,2,7,2,3],j=st.length,tt=new t,ut=new t,mt=new t,At=new t,Nt=new t;ot.prototype.addVolume=function(e,o,c,i,s,A,h,g,f,d){let l=t.add(o,f,tt),r=d.geodeticSurfaceNormal(l,ut);l=t.add(c,f,tt);let E=d.geodeticSurfaceNormal(l,At),n=$(e,o,c,r,mt),p=$(i,c,o,E,Nt),w=this.startEllipsoidNormals,x=this.endEllipsoidNormals,P=this.startPositionAndHeights,H=this.startFaceNormalAndVertexCornerIds,b=this.endPositionAndHeights,a=this.endFaceNormalAndHalfWidths,F=this.vertexBatchIds,m=this.batchIdOffset,I=this.vec3Offset,u=this.vec4Offset,N;for(N=0;N<8;N++)t.pack(r,w,I),t.pack(E,x,I),t.pack(o,P,u),P[u+3]=s,t.pack(c,b,u),b[u+3]=A,t.pack(n,H,u),H[u+3]=N,t.pack(p,a,u),a[u+3]=h,F[m++]=g,I+=3,u+=4;this.batchIdOffset=m,this.vec3Offset=I,this.vec4Offset=u;let C=this.indices,y=this.volumeStartIndex,z=this.indexOffset;for(N=0;N<j;N++)C[z+N]=st[N]+y;this.volumeStartIndex+=8,this.indexOffset+=j};var gt=new W,Et=new _,wt=new t,M=new t,It=new t,xt=new t,T=new t;function Pt(e,o){let c=new Uint16Array(e.positions),i=new Uint16Array(e.widths),s=new Uint32Array(e.counts),A=new Uint16Array(e.batchIds),h=gt,g=Et,f=wt,d=new Float64Array(e.packedBuffer),l=0,r=d[l++],E=d[l++];W.unpack(d,l,h),l+=W.packedLength,_.unpack(d,l,g),l+=_.packedLength,t.unpack(d,l,f);let n,p=c.length/3,w=c.subarray(0,p),x=c.subarray(p,2*p),P=c.subarray(2*p,3*p);Y.zigZagDeltaDecode(w,x,P),ft(w,x,P,s);let H=s.length,b=0;for(n=0;n<H;n++){let y=s[n];b+=y-1}let a=new ot(b),F=at(w,x,P,h,r,E,g,f);p=w.length;let m=new Float32Array(p*3);for(n=0;n<p;++n)m[n*3]=F[n*3]-f.x,m[n*3+1]=F[n*3+1]-f.y,m[n*3+2]=F[n*3+2]-f.z;let I=0,u=0;for(n=0;n<H;n++){let y=s[n]-1,z=i[n]*.5,et=A[n],q=I;for(let D=0;D<y;D++){let S=t.unpack(m,I,It),O=t.unpack(m,I+3,xt),G=P[u],Z=P[u+1];G=v.lerp(r,E,G/V),Z=v.lerp(r,E,Z/V),u++;let L=M,R=T;if(D===0){let U=q+y*3,K=t.unpack(m,U,M);if(t.equals(K,S))t.unpack(m,U-3,L);else{let nt=t.subtract(S,O,M);L=t.add(nt,S,M)}}else t.unpack(m,I-3,L);if(D===y-1){let U=t.unpack(m,q,T);if(t.equals(U,O))t.unpack(m,q+3,R);else{let K=t.subtract(O,S,T);R=t.add(K,O,T)}}else t.unpack(m,I+6,R);a.addVolume(L,S,O,R,G,Z,z,et,f,g),I+=3}I+=3,u++}let N=a.indices;o.push(a.startEllipsoidNormals.buffer),o.push(a.endEllipsoidNormals.buffer),o.push(a.startPositionAndHeights.buffer),o.push(a.startFaceNormalAndVertexCornerIds.buffer),o.push(a.endPositionAndHeights.buffer),o.push(a.endFaceNormalAndHalfWidths.buffer),o.push(a.vertexBatchIds.buffer),o.push(N.buffer);let C={indexDatatype:N.BYTES_PER_ELEMENT===2?B.UNSIGNED_SHORT:B.UNSIGNED_INT,startEllipsoidNormals:a.startEllipsoidNormals.buffer,endEllipsoidNormals:a.endEllipsoidNormals.buffer,startPositionAndHeights:a.startPositionAndHeights.buffer,startFaceNormalAndVertexCornerIds:a.startFaceNormalAndVertexCornerIds.buffer,endPositionAndHeights:a.endPositionAndHeights.buffer,endFaceNormalAndHalfWidths:a.endFaceNormalAndHalfWidths.buffer,vertexBatchIds:a.vertexBatchIds.buffer,indices:N.buffer};if(e.keepDecodedPositions){let y=dt(s);o.push(F.buffer,y.buffer),C=X(C,{decodedPositions:F.buffer,decodedPositionOffsets:y.buffer})}return C}var Vt=J(Pt);export{Vt as default};
|