@rtzh/engine 0.0.1 → 0.0.3
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/Source/Scene/GltfLoader.js +2 -2
- package/Source/Scene/Model/CustomShader.js +2 -2
- package/index.js +504 -504
- package/package.json +1 -1
- package/Build/ThirdParty/Workers/zip-web-worker.js +0 -640
- package/Build/Workers/chunk-245NZYCR.js +0 -124
- package/Build/Workers/chunk-25BA4527.js +0 -837
- package/Build/Workers/chunk-4HXPSZRC.js +0 -1483
- package/Build/Workers/chunk-4Z26IS65.js +0 -3514
- package/Build/Workers/chunk-55IROWAX.js +0 -139
- package/Build/Workers/chunk-56XTN5NJ.js +0 -1800
- package/Build/Workers/chunk-5VZISKJF.js +0 -629
- package/Build/Workers/chunk-5WAG5YKS.js +0 -368
- package/Build/Workers/chunk-66YGZWBI.js +0 -1317
- package/Build/Workers/chunk-6H33B6OL.js +0 -37
- package/Build/Workers/chunk-6LZBBEA7.js +0 -439
- package/Build/Workers/chunk-6XJO625E.js +0 -497
- package/Build/Workers/chunk-75UGCVME.js +0 -102
- package/Build/Workers/chunk-7B23DD46.js +0 -1054
- package/Build/Workers/chunk-7NCJH26L.js +0 -352
- package/Build/Workers/chunk-AIW5F22O.js +0 -352
- package/Build/Workers/chunk-AL22JVIA.js +0 -256
- package/Build/Workers/chunk-AVSQILVI.js +0 -75
- package/Build/Workers/chunk-B2VFNYD7.js +0 -280
- package/Build/Workers/chunk-BOV6T7FO.js +0 -44
- package/Build/Workers/chunk-DP76S3IQ.js +0 -1067
- package/Build/Workers/chunk-EDIUN7V3.js +0 -219
- package/Build/Workers/chunk-EKMWNF4U.js +0 -55
- package/Build/Workers/chunk-ELXGXAYS.js +0 -682
- package/Build/Workers/chunk-FVYRV2T6.js +0 -455
- package/Build/Workers/chunk-GDIBU55R.js +0 -778
- package/Build/Workers/chunk-HAY6YE7M.js +0 -97
- package/Build/Workers/chunk-I76SRIKN.js +0 -138
- package/Build/Workers/chunk-IELTSYPZ.js +0 -241
- package/Build/Workers/chunk-J4MIJCN5.js +0 -171
- package/Build/Workers/chunk-JFO3ELF3.js +0 -642
- package/Build/Workers/chunk-K4IMD7KH.js +0 -162
- package/Build/Workers/chunk-KFMCOG26.js +0 -692
- package/Build/Workers/chunk-KH2OWUUA.js +0 -163
- package/Build/Workers/chunk-KQIZ7AFF.js +0 -8366
- package/Build/Workers/chunk-KVE5EAPO.js +0 -398
- package/Build/Workers/chunk-OAOREOSO.js +0 -940
- package/Build/Workers/chunk-OFJRMGNX.js +0 -788
- package/Build/Workers/chunk-PLLZB3R4.js +0 -198
- package/Build/Workers/chunk-POY6ZE32.js +0 -2058
- package/Build/Workers/chunk-PV5B2YNB.js +0 -2719
- package/Build/Workers/chunk-Q2DXNFYW.js +0 -414
- package/Build/Workers/chunk-QWV2DM66.js +0 -1443
- package/Build/Workers/chunk-R73BHGGI.js +0 -305
- package/Build/Workers/chunk-S3AE3MZZ.js +0 -511
- package/Build/Workers/chunk-SBFTVHRW.js +0 -57
- package/Build/Workers/chunk-SOR7PD4V.js +0 -114
- package/Build/Workers/chunk-TO7TWUET.js +0 -476
- package/Build/Workers/chunk-TSAJNE4K.js +0 -101
- package/Build/Workers/chunk-TWF4XRZ6.js +0 -73
- package/Build/Workers/chunk-UTWLMOPM.js +0 -387
- package/Build/Workers/chunk-UYT2PBMV.js +0 -58
- package/Build/Workers/chunk-WAS3IHIQ.js +0 -288
- package/Build/Workers/chunk-WO5ZNC7S.js +0 -1045
- package/Build/Workers/chunk-X65Y2JSA.js +0 -55
- package/Build/Workers/chunk-XOVHLPKW.js +0 -299
- package/Build/Workers/chunk-YPGJSFOO.js +0 -1460
- package/Build/Workers/combineGeometry.js +0 -66
- package/Build/Workers/createBoxGeometry.js +0 -58
- package/Build/Workers/createBoxOutlineGeometry.js +0 -231
- package/Build/Workers/createCircleGeometry.js +0 -201
- package/Build/Workers/createCircleOutlineGeometry.js +0 -147
- package/Build/Workers/createCoplanarPolygonGeometry.js +0 -505
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +0 -225
- package/Build/Workers/createCorridorGeometry.js +0 -1258
- package/Build/Workers/createCorridorOutlineGeometry.js +0 -563
- package/Build/Workers/createCylinderGeometry.js +0 -60
- package/Build/Workers/createCylinderOutlineGeometry.js +0 -231
- package/Build/Workers/createEllipseGeometry.js +0 -72
- package/Build/Workers/createEllipseOutlineGeometry.js +0 -65
- package/Build/Workers/createEllipsoidGeometry.js +0 -59
- package/Build/Workers/createEllipsoidOutlineGeometry.js +0 -61
- package/Build/Workers/createFrustumGeometry.js +0 -58
- package/Build/Workers/createFrustumOutlineGeometry.js +0 -234
- package/Build/Workers/createGeometry.js +0 -173
- package/Build/Workers/createGroundPolylineGeometry.js +0 -1602
- package/Build/Workers/createPlaneGeometry.js +0 -223
- package/Build/Workers/createPlaneOutlineGeometry.js +0 -124
- package/Build/Workers/createPolygonGeometry.js +0 -1404
- package/Build/Workers/createPolygonOutlineGeometry.js +0 -532
- package/Build/Workers/createPolylineGeometry.js +0 -491
- package/Build/Workers/createPolylineVolumeGeometry.js +0 -374
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +0 -272
- package/Build/Workers/createRectangleGeometry.js +0 -1264
- package/Build/Workers/createRectangleOutlineGeometry.js +0 -476
- package/Build/Workers/createSimplePolylineGeometry.js +0 -397
- package/Build/Workers/createSphereGeometry.js +0 -116
- package/Build/Workers/createSphereOutlineGeometry.js +0 -116
- package/Build/Workers/createTaskProcessorWorker.js +0 -32
- package/Build/Workers/createVectorTileClampedPolylines.js +0 -492
- package/Build/Workers/createVectorTileGeometries.js +0 -387
- package/Build/Workers/createVectorTilePoints.js +0 -114
- package/Build/Workers/createVectorTilePolygons.js +0 -386
- package/Build/Workers/createVectorTilePolylines.js +0 -262
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +0 -91
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -565
- package/Build/Workers/createVerticesFromHeightmap.js +0 -2254
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -499
- package/Build/Workers/createWallGeometry.js +0 -487
- package/Build/Workers/createWallOutlineGeometry.js +0 -335
- package/Build/Workers/decodeDraco.js +0 -369
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +0 -2680
- package/Build/Workers/decodeI3S.js +0 -1339
- package/Build/Workers/gaussianSplatSorter.js +0 -62
- package/Build/Workers/gaussianSplatTextureGenerator.js +0 -68
- package/Build/Workers/incrementallyBuildTerrainPicker.js +0 -121
- package/Build/Workers/transcodeKTX2.js +0 -3463
- package/Build/Workers/transferTypedArrayTest.js +0 -41
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +0 -820
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +0 -95
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.1
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
* Columbus View (Pat. Pend.)
|
|
21
|
-
*
|
|
22
|
-
* Portions licensed separately.
|
|
23
|
-
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
WebGLConstants_default
|
|
28
|
-
} from "./chunk-5VZISKJF.js";
|
|
29
|
-
import {
|
|
30
|
-
DeveloperError_default
|
|
31
|
-
} from "./chunk-KH2OWUUA.js";
|
|
32
|
-
import {
|
|
33
|
-
defined_default
|
|
34
|
-
} from "./chunk-AVSQILVI.js";
|
|
35
|
-
|
|
36
|
-
// packages/engine/Source/Core/ComponentDatatype.js
|
|
37
|
-
var ComponentDatatype = {
|
|
38
|
-
/**
|
|
39
|
-
* 8-bit signed byte corresponding to <code>gl.BYTE</code> and the type
|
|
40
|
-
* of an element in <code>Int8Array</code>.
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @constant
|
|
44
|
-
*/
|
|
45
|
-
BYTE: WebGLConstants_default.BYTE,
|
|
46
|
-
/**
|
|
47
|
-
* 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
|
|
48
|
-
* of an element in <code>Uint8Array</code>.
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @constant
|
|
52
|
-
*/
|
|
53
|
-
UNSIGNED_BYTE: WebGLConstants_default.UNSIGNED_BYTE,
|
|
54
|
-
/**
|
|
55
|
-
* 16-bit signed short corresponding to <code>SHORT</code> and the type
|
|
56
|
-
* of an element in <code>Int16Array</code>.
|
|
57
|
-
*
|
|
58
|
-
* @type {number}
|
|
59
|
-
* @constant
|
|
60
|
-
*/
|
|
61
|
-
SHORT: WebGLConstants_default.SHORT,
|
|
62
|
-
/**
|
|
63
|
-
* 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
|
|
64
|
-
* of an element in <code>Uint16Array</code>.
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @constant
|
|
68
|
-
*/
|
|
69
|
-
UNSIGNED_SHORT: WebGLConstants_default.UNSIGNED_SHORT,
|
|
70
|
-
/**
|
|
71
|
-
* 32-bit signed int corresponding to <code>INT</code> and the type
|
|
72
|
-
* of an element in <code>Int32Array</code>.
|
|
73
|
-
*
|
|
74
|
-
* @memberOf ComponentDatatype
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @constant
|
|
78
|
-
*/
|
|
79
|
-
INT: WebGLConstants_default.INT,
|
|
80
|
-
/**
|
|
81
|
-
* 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
|
|
82
|
-
* of an element in <code>Uint32Array</code>.
|
|
83
|
-
*
|
|
84
|
-
* @memberOf ComponentDatatype
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @constant
|
|
88
|
-
*/
|
|
89
|
-
UNSIGNED_INT: WebGLConstants_default.UNSIGNED_INT,
|
|
90
|
-
/**
|
|
91
|
-
* 32-bit floating-point corresponding to <code>FLOAT</code> and the type
|
|
92
|
-
* of an element in <code>Float32Array</code>.
|
|
93
|
-
*
|
|
94
|
-
* @type {number}
|
|
95
|
-
* @constant
|
|
96
|
-
*/
|
|
97
|
-
FLOAT: WebGLConstants_default.FLOAT,
|
|
98
|
-
/**
|
|
99
|
-
* 64-bit floating-point corresponding to <code>gl.DOUBLE</code> (in Desktop OpenGL;
|
|
100
|
-
* this is not supported in WebGL, and is emulated in Cesium via {@link GeometryPipeline.encodeAttribute})
|
|
101
|
-
* and the type of an element in <code>Float64Array</code>.
|
|
102
|
-
*
|
|
103
|
-
* @memberOf ComponentDatatype
|
|
104
|
-
*
|
|
105
|
-
* @type {number}
|
|
106
|
-
* @constant
|
|
107
|
-
* @default 0x140A
|
|
108
|
-
*/
|
|
109
|
-
DOUBLE: WebGLConstants_default.DOUBLE
|
|
110
|
-
};
|
|
111
|
-
ComponentDatatype.getSizeInBytes = function(componentDatatype) {
|
|
112
|
-
if (!defined_default(componentDatatype)) {
|
|
113
|
-
throw new DeveloperError_default("value is required.");
|
|
114
|
-
}
|
|
115
|
-
switch (componentDatatype) {
|
|
116
|
-
case ComponentDatatype.BYTE:
|
|
117
|
-
return Int8Array.BYTES_PER_ELEMENT;
|
|
118
|
-
case ComponentDatatype.UNSIGNED_BYTE:
|
|
119
|
-
return Uint8Array.BYTES_PER_ELEMENT;
|
|
120
|
-
case ComponentDatatype.SHORT:
|
|
121
|
-
return Int16Array.BYTES_PER_ELEMENT;
|
|
122
|
-
case ComponentDatatype.UNSIGNED_SHORT:
|
|
123
|
-
return Uint16Array.BYTES_PER_ELEMENT;
|
|
124
|
-
case ComponentDatatype.INT:
|
|
125
|
-
return Int32Array.BYTES_PER_ELEMENT;
|
|
126
|
-
case ComponentDatatype.UNSIGNED_INT:
|
|
127
|
-
return Uint32Array.BYTES_PER_ELEMENT;
|
|
128
|
-
case ComponentDatatype.FLOAT:
|
|
129
|
-
return Float32Array.BYTES_PER_ELEMENT;
|
|
130
|
-
case ComponentDatatype.DOUBLE:
|
|
131
|
-
return Float64Array.BYTES_PER_ELEMENT;
|
|
132
|
-
//>>includeStart('debug', pragmas.debug);
|
|
133
|
-
default:
|
|
134
|
-
throw new DeveloperError_default("componentDatatype is not a valid value.");
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
ComponentDatatype.fromTypedArray = function(array) {
|
|
138
|
-
if (array instanceof Int8Array) {
|
|
139
|
-
return ComponentDatatype.BYTE;
|
|
140
|
-
}
|
|
141
|
-
if (array instanceof Uint8Array) {
|
|
142
|
-
return ComponentDatatype.UNSIGNED_BYTE;
|
|
143
|
-
}
|
|
144
|
-
if (array instanceof Int16Array) {
|
|
145
|
-
return ComponentDatatype.SHORT;
|
|
146
|
-
}
|
|
147
|
-
if (array instanceof Uint16Array) {
|
|
148
|
-
return ComponentDatatype.UNSIGNED_SHORT;
|
|
149
|
-
}
|
|
150
|
-
if (array instanceof Int32Array) {
|
|
151
|
-
return ComponentDatatype.INT;
|
|
152
|
-
}
|
|
153
|
-
if (array instanceof Uint32Array) {
|
|
154
|
-
return ComponentDatatype.UNSIGNED_INT;
|
|
155
|
-
}
|
|
156
|
-
if (array instanceof Float32Array) {
|
|
157
|
-
return ComponentDatatype.FLOAT;
|
|
158
|
-
}
|
|
159
|
-
if (array instanceof Float64Array) {
|
|
160
|
-
return ComponentDatatype.DOUBLE;
|
|
161
|
-
}
|
|
162
|
-
throw new DeveloperError_default(
|
|
163
|
-
"array must be an Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, or Float64Array."
|
|
164
|
-
);
|
|
165
|
-
};
|
|
166
|
-
ComponentDatatype.validate = function(componentDatatype) {
|
|
167
|
-
return defined_default(componentDatatype) && (componentDatatype === ComponentDatatype.BYTE || componentDatatype === ComponentDatatype.UNSIGNED_BYTE || componentDatatype === ComponentDatatype.SHORT || componentDatatype === ComponentDatatype.UNSIGNED_SHORT || componentDatatype === ComponentDatatype.INT || componentDatatype === ComponentDatatype.UNSIGNED_INT || componentDatatype === ComponentDatatype.FLOAT || componentDatatype === ComponentDatatype.DOUBLE);
|
|
168
|
-
};
|
|
169
|
-
ComponentDatatype.createTypedArray = function(componentDatatype, valuesOrLength) {
|
|
170
|
-
if (!defined_default(componentDatatype)) {
|
|
171
|
-
throw new DeveloperError_default("componentDatatype is required.");
|
|
172
|
-
}
|
|
173
|
-
if (!defined_default(valuesOrLength)) {
|
|
174
|
-
throw new DeveloperError_default("valuesOrLength is required.");
|
|
175
|
-
}
|
|
176
|
-
switch (componentDatatype) {
|
|
177
|
-
case ComponentDatatype.BYTE:
|
|
178
|
-
return new Int8Array(valuesOrLength);
|
|
179
|
-
case ComponentDatatype.UNSIGNED_BYTE:
|
|
180
|
-
return new Uint8Array(valuesOrLength);
|
|
181
|
-
case ComponentDatatype.SHORT:
|
|
182
|
-
return new Int16Array(valuesOrLength);
|
|
183
|
-
case ComponentDatatype.UNSIGNED_SHORT:
|
|
184
|
-
return new Uint16Array(valuesOrLength);
|
|
185
|
-
case ComponentDatatype.INT:
|
|
186
|
-
return new Int32Array(valuesOrLength);
|
|
187
|
-
case ComponentDatatype.UNSIGNED_INT:
|
|
188
|
-
return new Uint32Array(valuesOrLength);
|
|
189
|
-
case ComponentDatatype.FLOAT:
|
|
190
|
-
return new Float32Array(valuesOrLength);
|
|
191
|
-
case ComponentDatatype.DOUBLE:
|
|
192
|
-
return new Float64Array(valuesOrLength);
|
|
193
|
-
//>>includeStart('debug', pragmas.debug);
|
|
194
|
-
default:
|
|
195
|
-
throw new DeveloperError_default("componentDatatype is not a valid value.");
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
ComponentDatatype.createArrayBufferView = function(componentDatatype, buffer, byteOffset, length) {
|
|
199
|
-
if (!defined_default(componentDatatype)) {
|
|
200
|
-
throw new DeveloperError_default("componentDatatype is required.");
|
|
201
|
-
}
|
|
202
|
-
if (!defined_default(buffer)) {
|
|
203
|
-
throw new DeveloperError_default("buffer is required.");
|
|
204
|
-
}
|
|
205
|
-
byteOffset = byteOffset ?? 0;
|
|
206
|
-
length = length ?? (buffer.byteLength - byteOffset) / ComponentDatatype.getSizeInBytes(componentDatatype);
|
|
207
|
-
switch (componentDatatype) {
|
|
208
|
-
case ComponentDatatype.BYTE:
|
|
209
|
-
return new Int8Array(buffer, byteOffset, length);
|
|
210
|
-
case ComponentDatatype.UNSIGNED_BYTE:
|
|
211
|
-
return new Uint8Array(buffer, byteOffset, length);
|
|
212
|
-
case ComponentDatatype.SHORT:
|
|
213
|
-
return new Int16Array(buffer, byteOffset, length);
|
|
214
|
-
case ComponentDatatype.UNSIGNED_SHORT:
|
|
215
|
-
return new Uint16Array(buffer, byteOffset, length);
|
|
216
|
-
case ComponentDatatype.INT:
|
|
217
|
-
return new Int32Array(buffer, byteOffset, length);
|
|
218
|
-
case ComponentDatatype.UNSIGNED_INT:
|
|
219
|
-
return new Uint32Array(buffer, byteOffset, length);
|
|
220
|
-
case ComponentDatatype.FLOAT:
|
|
221
|
-
return new Float32Array(buffer, byteOffset, length);
|
|
222
|
-
case ComponentDatatype.DOUBLE:
|
|
223
|
-
return new Float64Array(buffer, byteOffset, length);
|
|
224
|
-
//>>includeStart('debug', pragmas.debug);
|
|
225
|
-
default:
|
|
226
|
-
throw new DeveloperError_default("componentDatatype is not a valid value.");
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
ComponentDatatype.fromName = function(name) {
|
|
230
|
-
switch (name) {
|
|
231
|
-
case "BYTE":
|
|
232
|
-
return ComponentDatatype.BYTE;
|
|
233
|
-
case "UNSIGNED_BYTE":
|
|
234
|
-
return ComponentDatatype.UNSIGNED_BYTE;
|
|
235
|
-
case "SHORT":
|
|
236
|
-
return ComponentDatatype.SHORT;
|
|
237
|
-
case "UNSIGNED_SHORT":
|
|
238
|
-
return ComponentDatatype.UNSIGNED_SHORT;
|
|
239
|
-
case "INT":
|
|
240
|
-
return ComponentDatatype.INT;
|
|
241
|
-
case "UNSIGNED_INT":
|
|
242
|
-
return ComponentDatatype.UNSIGNED_INT;
|
|
243
|
-
case "FLOAT":
|
|
244
|
-
return ComponentDatatype.FLOAT;
|
|
245
|
-
case "DOUBLE":
|
|
246
|
-
return ComponentDatatype.DOUBLE;
|
|
247
|
-
//>>includeStart('debug', pragmas.debug);
|
|
248
|
-
default:
|
|
249
|
-
throw new DeveloperError_default("name is not a valid value.");
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
var ComponentDatatype_default = Object.freeze(ComponentDatatype);
|
|
253
|
-
|
|
254
|
-
export {
|
|
255
|
-
ComponentDatatype_default
|
|
256
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.1
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
* Columbus View (Pat. Pend.)
|
|
21
|
-
*
|
|
22
|
-
* Portions licensed separately.
|
|
23
|
-
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
var __create = Object.create;
|
|
27
|
-
var __defProp = Object.defineProperty;
|
|
28
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
29
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
30
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
31
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
32
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
33
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
34
|
-
}) : x)(function(x) {
|
|
35
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
36
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
37
|
-
});
|
|
38
|
-
var __glob = (map) => (path) => {
|
|
39
|
-
var fn = map[path];
|
|
40
|
-
if (fn) return fn();
|
|
41
|
-
throw new Error("Module not found in bundle: " + path);
|
|
42
|
-
};
|
|
43
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
44
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
45
|
-
};
|
|
46
|
-
var __copyProps = (to, from, except, desc) => {
|
|
47
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
48
|
-
for (let key of __getOwnPropNames(from))
|
|
49
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
50
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
51
|
-
}
|
|
52
|
-
return to;
|
|
53
|
-
};
|
|
54
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
55
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
56
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
57
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
58
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
59
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
60
|
-
mod
|
|
61
|
-
));
|
|
62
|
-
|
|
63
|
-
// packages/engine/Source/Core/defined.js
|
|
64
|
-
function defined(value) {
|
|
65
|
-
return value !== void 0 && value !== null;
|
|
66
|
-
}
|
|
67
|
-
var defined_default = defined;
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
__require,
|
|
71
|
-
__glob,
|
|
72
|
-
__commonJS,
|
|
73
|
-
__toESM,
|
|
74
|
-
defined_default
|
|
75
|
-
};
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.1
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
* Columbus View (Pat. Pend.)
|
|
21
|
-
*
|
|
22
|
-
* Portions licensed separately.
|
|
23
|
-
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// node_modules/@cesium/wasm-splats/wasm_splats.js
|
|
28
|
-
var wasm;
|
|
29
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
|
30
|
-
throw Error("TextDecoder not available");
|
|
31
|
-
} };
|
|
32
|
-
if (typeof TextDecoder !== "undefined") {
|
|
33
|
-
cachedTextDecoder.decode();
|
|
34
|
-
}
|
|
35
|
-
var cachedUint8ArrayMemory0 = null;
|
|
36
|
-
function getUint8ArrayMemory0() {
|
|
37
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
38
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
39
|
-
}
|
|
40
|
-
return cachedUint8ArrayMemory0;
|
|
41
|
-
}
|
|
42
|
-
function getStringFromWasm0(ptr, len) {
|
|
43
|
-
ptr = ptr >>> 0;
|
|
44
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
45
|
-
}
|
|
46
|
-
var cachedUint32ArrayMemory0 = null;
|
|
47
|
-
function getUint32ArrayMemory0() {
|
|
48
|
-
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
49
|
-
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
50
|
-
}
|
|
51
|
-
return cachedUint32ArrayMemory0;
|
|
52
|
-
}
|
|
53
|
-
function getArrayU32FromWasm0(ptr, len) {
|
|
54
|
-
ptr = ptr >>> 0;
|
|
55
|
-
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
56
|
-
}
|
|
57
|
-
var WASM_VECTOR_LEN = 0;
|
|
58
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
59
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
60
|
-
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
61
|
-
WASM_VECTOR_LEN = arg.length;
|
|
62
|
-
return ptr;
|
|
63
|
-
}
|
|
64
|
-
function takeFromExternrefTable0(idx) {
|
|
65
|
-
const value = wasm.__wbindgen_export_0.get(idx);
|
|
66
|
-
wasm.__externref_table_dealloc(idx);
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
function generate_splat_texture(positions, scales, rotations, colors, count) {
|
|
70
|
-
const ret = wasm.generate_splat_texture(positions, scales, rotations, colors, count);
|
|
71
|
-
if (ret[2]) {
|
|
72
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
73
|
-
}
|
|
74
|
-
return TextureData.__wrap(ret[0]);
|
|
75
|
-
}
|
|
76
|
-
function radix_sort_gaussians_indexes(positions_arr, model_view_arr, count) {
|
|
77
|
-
const ret = wasm.radix_sort_gaussians_indexes(positions_arr, model_view_arr, count);
|
|
78
|
-
if (ret[2]) {
|
|
79
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
80
|
-
}
|
|
81
|
-
return takeFromExternrefTable0(ret[0]);
|
|
82
|
-
}
|
|
83
|
-
var TextureDataFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
84
|
-
}, unregister: () => {
|
|
85
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_texturedata_free(ptr >>> 0, 1));
|
|
86
|
-
var TextureData = class _TextureData {
|
|
87
|
-
static __wrap(ptr) {
|
|
88
|
-
ptr = ptr >>> 0;
|
|
89
|
-
const obj = Object.create(_TextureData.prototype);
|
|
90
|
-
obj.__wbg_ptr = ptr;
|
|
91
|
-
TextureDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
92
|
-
return obj;
|
|
93
|
-
}
|
|
94
|
-
__destroy_into_raw() {
|
|
95
|
-
const ptr = this.__wbg_ptr;
|
|
96
|
-
this.__wbg_ptr = 0;
|
|
97
|
-
TextureDataFinalization.unregister(this);
|
|
98
|
-
return ptr;
|
|
99
|
-
}
|
|
100
|
-
free() {
|
|
101
|
-
const ptr = this.__destroy_into_raw();
|
|
102
|
-
wasm.__wbg_texturedata_free(ptr, 0);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Getter for the underlying texture data. Always returns a copy.
|
|
106
|
-
* @returns {Uint32Array}
|
|
107
|
-
*/
|
|
108
|
-
get data() {
|
|
109
|
-
const ret = wasm.texturedata_data(this.__wbg_ptr);
|
|
110
|
-
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
111
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
112
|
-
return v1;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Getter for the width of the texture in pixels.
|
|
116
|
-
* @returns {number}
|
|
117
|
-
*/
|
|
118
|
-
get width() {
|
|
119
|
-
const ret = wasm.texturedata_width(this.__wbg_ptr);
|
|
120
|
-
return ret >>> 0;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Getter for the height of the texture in pixels.
|
|
124
|
-
* @returns {number}
|
|
125
|
-
*/
|
|
126
|
-
get height() {
|
|
127
|
-
const ret = wasm.texturedata_height(this.__wbg_ptr);
|
|
128
|
-
return ret >>> 0;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Creates a new texture data object with the underlying data, width, and height.
|
|
132
|
-
* @param {Uint32Array} data
|
|
133
|
-
* @param {number} width
|
|
134
|
-
* @param {number} height
|
|
135
|
-
* @returns {TextureData}
|
|
136
|
-
*/
|
|
137
|
-
static new(data, width, height) {
|
|
138
|
-
const ptr0 = passArray32ToWasm0(data, wasm.__wbindgen_malloc);
|
|
139
|
-
const len0 = WASM_VECTOR_LEN;
|
|
140
|
-
const ret = wasm.texturedata_new(ptr0, len0, width, height);
|
|
141
|
-
return _TextureData.__wrap(ret);
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
async function __wbg_load(module, imports) {
|
|
145
|
-
if (typeof Response === "function" && module instanceof Response) {
|
|
146
|
-
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
147
|
-
try {
|
|
148
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
149
|
-
} catch (e) {
|
|
150
|
-
if (module.headers.get("Content-Type") != "application/wasm") {
|
|
151
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
152
|
-
} else {
|
|
153
|
-
throw e;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
const bytes = await module.arrayBuffer();
|
|
158
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
159
|
-
} else {
|
|
160
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
161
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
162
|
-
return { instance, module };
|
|
163
|
-
} else {
|
|
164
|
-
return instance;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
function __wbg_get_imports() {
|
|
169
|
-
const imports = {};
|
|
170
|
-
imports.wbg = {};
|
|
171
|
-
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
172
|
-
const ret = arg0.buffer;
|
|
173
|
-
return ret;
|
|
174
|
-
};
|
|
175
|
-
imports.wbg.__wbg_length_3b4f022188ae8db6 = function(arg0) {
|
|
176
|
-
const ret = arg0.length;
|
|
177
|
-
return ret;
|
|
178
|
-
};
|
|
179
|
-
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
180
|
-
const ret = arg0.length;
|
|
181
|
-
return ret;
|
|
182
|
-
};
|
|
183
|
-
imports.wbg.__wbg_new_780abee5c1739fd7 = function(arg0) {
|
|
184
|
-
const ret = new Float32Array(arg0);
|
|
185
|
-
return ret;
|
|
186
|
-
};
|
|
187
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
188
|
-
const ret = new Uint8Array(arg0);
|
|
189
|
-
return ret;
|
|
190
|
-
};
|
|
191
|
-
imports.wbg.__wbg_new_e3b321dcfef89fc7 = function(arg0) {
|
|
192
|
-
const ret = new Uint32Array(arg0);
|
|
193
|
-
return ret;
|
|
194
|
-
};
|
|
195
|
-
imports.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212 = function(arg0, arg1, arg2) {
|
|
196
|
-
const ret = new Uint32Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
197
|
-
return ret;
|
|
198
|
-
};
|
|
199
|
-
imports.wbg.__wbg_set_10bad9bee0e9c58b = function(arg0, arg1, arg2) {
|
|
200
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
201
|
-
};
|
|
202
|
-
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
203
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
204
|
-
};
|
|
205
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
206
|
-
const table = wasm.__wbindgen_export_0;
|
|
207
|
-
const offset = table.grow(4);
|
|
208
|
-
table.set(0, void 0);
|
|
209
|
-
table.set(offset + 0, void 0);
|
|
210
|
-
table.set(offset + 1, null);
|
|
211
|
-
table.set(offset + 2, true);
|
|
212
|
-
table.set(offset + 3, false);
|
|
213
|
-
;
|
|
214
|
-
};
|
|
215
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
216
|
-
const ret = wasm.memory;
|
|
217
|
-
return ret;
|
|
218
|
-
};
|
|
219
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
220
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
221
|
-
return ret;
|
|
222
|
-
};
|
|
223
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
224
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
225
|
-
};
|
|
226
|
-
return imports;
|
|
227
|
-
}
|
|
228
|
-
function __wbg_init_memory(imports, memory) {
|
|
229
|
-
}
|
|
230
|
-
function __wbg_finalize_init(instance, module) {
|
|
231
|
-
wasm = instance.exports;
|
|
232
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
233
|
-
cachedUint32ArrayMemory0 = null;
|
|
234
|
-
cachedUint8ArrayMemory0 = null;
|
|
235
|
-
wasm.__wbindgen_start();
|
|
236
|
-
return wasm;
|
|
237
|
-
}
|
|
238
|
-
function initSync(module) {
|
|
239
|
-
if (wasm !== void 0) return wasm;
|
|
240
|
-
if (typeof module !== "undefined") {
|
|
241
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
242
|
-
({ module } = module);
|
|
243
|
-
} else {
|
|
244
|
-
console.warn("using deprecated parameters for `initSync()`; pass a single object instead");
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
const imports = __wbg_get_imports();
|
|
248
|
-
__wbg_init_memory(imports);
|
|
249
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
250
|
-
module = new WebAssembly.Module(module);
|
|
251
|
-
}
|
|
252
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
253
|
-
return __wbg_finalize_init(instance, module);
|
|
254
|
-
}
|
|
255
|
-
async function __wbg_init(module_or_path) {
|
|
256
|
-
if (wasm !== void 0) return wasm;
|
|
257
|
-
if (typeof module_or_path !== "undefined") {
|
|
258
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
259
|
-
({ module_or_path } = module_or_path);
|
|
260
|
-
} else {
|
|
261
|
-
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
if (typeof module_or_path === "undefined") {
|
|
265
|
-
module_or_path = new URL("wasm_splats_bg.wasm", import.meta.url);
|
|
266
|
-
}
|
|
267
|
-
const imports = __wbg_get_imports();
|
|
268
|
-
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
269
|
-
module_or_path = fetch(module_or_path);
|
|
270
|
-
}
|
|
271
|
-
__wbg_init_memory(imports);
|
|
272
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
273
|
-
return __wbg_finalize_init(instance, module);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export {
|
|
277
|
-
generate_splat_texture,
|
|
278
|
-
radix_sort_gaussians_indexes,
|
|
279
|
-
initSync
|
|
280
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.1
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
* Columbus View (Pat. Pend.)
|
|
21
|
-
*
|
|
22
|
-
* Portions licensed separately.
|
|
23
|
-
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
Frozen_default
|
|
28
|
-
} from "./chunk-QWV2DM66.js";
|
|
29
|
-
|
|
30
|
-
// packages/engine/Source/Core/GeometryAttributes.js
|
|
31
|
-
function GeometryAttributes(options) {
|
|
32
|
-
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
33
|
-
this.position = options.position;
|
|
34
|
-
this.normal = options.normal;
|
|
35
|
-
this.st = options.st;
|
|
36
|
-
this.bitangent = options.bitangent;
|
|
37
|
-
this.tangent = options.tangent;
|
|
38
|
-
this.color = options.color;
|
|
39
|
-
}
|
|
40
|
-
var GeometryAttributes_default = GeometryAttributes;
|
|
41
|
-
|
|
42
|
-
export {
|
|
43
|
-
GeometryAttributes_default
|
|
44
|
-
};
|