@rtzh/engine 0.0.3 → 0.0.4
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/Build/ThirdParty/Workers/zip-web-worker.js +640 -0
- package/Build/Workers/chunk-245NZYCR.js +124 -0
- package/Build/Workers/chunk-25BA4527.js +837 -0
- package/Build/Workers/chunk-2APW7KRS.js +101 -0
- package/Build/Workers/chunk-2BLQ3B4Q.js +299 -0
- package/Build/Workers/chunk-2CAIFJD5.js +387 -0
- package/Build/Workers/chunk-3K2PK2OU.js +1045 -0
- package/Build/Workers/chunk-3M5CRHSG.js +288 -0
- package/Build/Workers/chunk-4HXPSZRC.js +1483 -0
- package/Build/Workers/chunk-4Z26IS65.js +3514 -0
- package/Build/Workers/chunk-55IROWAX.js +139 -0
- package/Build/Workers/chunk-56XTN5NJ.js +1800 -0
- package/Build/Workers/chunk-5BIQOSBV.js +55 -0
- package/Build/Workers/chunk-5CSRWY7L.js +280 -0
- package/Build/Workers/chunk-5QTPACZQ.js +455 -0
- package/Build/Workers/chunk-5VZISKJF.js +629 -0
- package/Build/Workers/chunk-5WAG5YKS.js +368 -0
- package/Build/Workers/chunk-64W2RXA4.js +219 -0
- package/Build/Workers/chunk-66YGZWBI.js +1317 -0
- package/Build/Workers/chunk-6H33B6OL.js +37 -0
- package/Build/Workers/chunk-6LZBBEA7.js +439 -0
- package/Build/Workers/chunk-6QVMKRJ4.js +3514 -0
- package/Build/Workers/chunk-6XJO625E.js +497 -0
- package/Build/Workers/chunk-75UGCVME.js +102 -0
- package/Build/Workers/chunk-7B23DD46.js +1054 -0
- package/Build/Workers/chunk-7NCJH26L.js +352 -0
- package/Build/Workers/chunk-ACH67MPW.js +1483 -0
- package/Build/Workers/chunk-AIW5F22O.js +352 -0
- package/Build/Workers/chunk-AL22JVIA.js +256 -0
- package/Build/Workers/chunk-AVSQILVI.js +75 -0
- package/Build/Workers/chunk-B2VFNYD7.js +280 -0
- package/Build/Workers/chunk-BJ6WXQOW.js +305 -0
- package/Build/Workers/chunk-BN4WA7LX.js +75 -0
- package/Build/Workers/chunk-BOV6T7FO.js +44 -0
- package/Build/Workers/chunk-BXBGWQ3Z.js +171 -0
- package/Build/Workers/chunk-D7TGILR3.js +1054 -0
- package/Build/Workers/chunk-DBKYAGM6.js +1800 -0
- package/Build/Workers/chunk-DEIMB3B5.js +629 -0
- package/Build/Workers/chunk-DP76S3IQ.js +1067 -0
- package/Build/Workers/chunk-DSBEWMOQ.js +1067 -0
- package/Build/Workers/chunk-E2CARZA7.js +73 -0
- package/Build/Workers/chunk-EDIUN7V3.js +219 -0
- package/Build/Workers/chunk-EISI2CR2.js +2058 -0
- package/Build/Workers/chunk-EKMWNF4U.js +55 -0
- package/Build/Workers/chunk-ELXGXAYS.js +682 -0
- package/Build/Workers/chunk-F5LAPCFC.js +1460 -0
- package/Build/Workers/chunk-FJREGHFG.js +138 -0
- package/Build/Workers/chunk-FVYRV2T6.js +455 -0
- package/Build/Workers/chunk-GDIBU55R.js +778 -0
- package/Build/Workers/chunk-HAWJ7FMN.js +8366 -0
- package/Build/Workers/chunk-HAY6YE7M.js +97 -0
- package/Build/Workers/chunk-HGIGANIQ.js +163 -0
- package/Build/Workers/chunk-HI6X33GO.js +58 -0
- package/Build/Workers/chunk-HU5P7PMU.js +1317 -0
- package/Build/Workers/chunk-I76SRIKN.js +138 -0
- package/Build/Workers/chunk-IDVURFRN.js +241 -0
- package/Build/Workers/chunk-IELTSYPZ.js +241 -0
- package/Build/Workers/chunk-J3FBVUY4.js +37 -0
- package/Build/Workers/chunk-J4MIJCN5.js +171 -0
- package/Build/Workers/chunk-JFO3ELF3.js +642 -0
- package/Build/Workers/chunk-JH27ZGLN.js +352 -0
- package/Build/Workers/chunk-JURLMTV2.js +398 -0
- package/Build/Workers/chunk-K4IMD7KH.js +162 -0
- package/Build/Workers/chunk-KBAGFNQ4.js +139 -0
- package/Build/Workers/chunk-KFMCOG26.js +692 -0
- package/Build/Workers/chunk-KH2OWUUA.js +163 -0
- package/Build/Workers/chunk-KHKSE4WQ.js +778 -0
- package/Build/Workers/chunk-KKYQRQ57.js +368 -0
- package/Build/Workers/chunk-KQIZ7AFF.js +8366 -0
- package/Build/Workers/chunk-KUAWPGSB.js +511 -0
- package/Build/Workers/chunk-KVDSJXRK.js +114 -0
- package/Build/Workers/chunk-KVE5EAPO.js +398 -0
- package/Build/Workers/chunk-KXB3AARU.js +162 -0
- package/Build/Workers/chunk-LN4NMLYY.js +55 -0
- package/Build/Workers/chunk-LPM2FVDN.js +642 -0
- package/Build/Workers/chunk-MLFVICFZ.js +102 -0
- package/Build/Workers/chunk-MQ62ZE2U.js +124 -0
- package/Build/Workers/chunk-NOH3R3YY.js +198 -0
- package/Build/Workers/chunk-OAOREOSO.js +940 -0
- package/Build/Workers/chunk-OFJRMGNX.js +788 -0
- package/Build/Workers/chunk-OOB2KZC6.js +476 -0
- package/Build/Workers/chunk-OVPPHDU7.js +97 -0
- package/Build/Workers/chunk-P7M4VYFT.js +788 -0
- package/Build/Workers/chunk-PHB5MRHM.js +439 -0
- package/Build/Workers/chunk-PLLZB3R4.js +198 -0
- package/Build/Workers/chunk-POY6ZE32.js +2058 -0
- package/Build/Workers/chunk-PV5B2YNB.js +2719 -0
- package/Build/Workers/chunk-Q2DXNFYW.js +414 -0
- package/Build/Workers/chunk-QWV2DM66.js +1443 -0
- package/Build/Workers/chunk-R73BHGGI.js +305 -0
- package/Build/Workers/chunk-S3AE3MZZ.js +511 -0
- package/Build/Workers/chunk-SBFTVHRW.js +57 -0
- package/Build/Workers/chunk-SOR7PD4V.js +114 -0
- package/Build/Workers/chunk-TDI7UQBO.js +57 -0
- package/Build/Workers/chunk-TO7TWUET.js +476 -0
- package/Build/Workers/chunk-TSAJNE4K.js +101 -0
- package/Build/Workers/chunk-TWF4XRZ6.js +73 -0
- package/Build/Workers/chunk-U364CIW4.js +682 -0
- package/Build/Workers/chunk-UOD5YNH3.js +940 -0
- package/Build/Workers/chunk-UTWLMOPM.js +387 -0
- package/Build/Workers/chunk-UUJXSLQ2.js +2719 -0
- package/Build/Workers/chunk-UYT2PBMV.js +58 -0
- package/Build/Workers/chunk-VIYQ56Z7.js +837 -0
- package/Build/Workers/chunk-VR2L2Y4Z.js +1443 -0
- package/Build/Workers/chunk-WAS3IHIQ.js +288 -0
- package/Build/Workers/chunk-WLREXLZ7.js +414 -0
- package/Build/Workers/chunk-WMGESUDW.js +497 -0
- package/Build/Workers/chunk-WO5ZNC7S.js +1045 -0
- package/Build/Workers/chunk-X65Y2JSA.js +55 -0
- package/Build/Workers/chunk-XJKMLTSH.js +692 -0
- package/Build/Workers/chunk-XOVHLPKW.js +299 -0
- package/Build/Workers/chunk-YBVMSCW4.js +352 -0
- package/Build/Workers/chunk-YPGJSFOO.js +1460 -0
- package/Build/Workers/chunk-Z356SW7E.js +256 -0
- package/Build/Workers/chunk-ZV42SJKS.js +44 -0
- package/Build/Workers/combineGeometry.js +66 -0
- package/Build/Workers/createBoxGeometry.js +58 -0
- package/Build/Workers/createBoxOutlineGeometry.js +231 -0
- package/Build/Workers/createCircleGeometry.js +201 -0
- package/Build/Workers/createCircleOutlineGeometry.js +147 -0
- package/Build/Workers/createCoplanarPolygonGeometry.js +505 -0
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +225 -0
- package/Build/Workers/createCorridorGeometry.js +1258 -0
- package/Build/Workers/createCorridorOutlineGeometry.js +563 -0
- package/Build/Workers/createCylinderGeometry.js +60 -0
- package/Build/Workers/createCylinderOutlineGeometry.js +231 -0
- package/Build/Workers/createEllipseGeometry.js +72 -0
- package/Build/Workers/createEllipseOutlineGeometry.js +65 -0
- package/Build/Workers/createEllipsoidGeometry.js +59 -0
- package/Build/Workers/createEllipsoidOutlineGeometry.js +61 -0
- package/Build/Workers/createFrustumGeometry.js +58 -0
- package/Build/Workers/createFrustumOutlineGeometry.js +234 -0
- package/Build/Workers/createGeometry.js +173 -0
- package/Build/Workers/createGroundPolylineGeometry.js +1602 -0
- package/Build/Workers/createPlaneGeometry.js +223 -0
- package/Build/Workers/createPlaneOutlineGeometry.js +124 -0
- package/Build/Workers/createPolygonGeometry.js +1404 -0
- package/Build/Workers/createPolygonOutlineGeometry.js +532 -0
- package/Build/Workers/createPolylineGeometry.js +491 -0
- package/Build/Workers/createPolylineVolumeGeometry.js +374 -0
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +272 -0
- package/Build/Workers/createRectangleGeometry.js +1264 -0
- package/Build/Workers/createRectangleOutlineGeometry.js +476 -0
- package/Build/Workers/createSimplePolylineGeometry.js +397 -0
- package/Build/Workers/createSphereGeometry.js +116 -0
- package/Build/Workers/createSphereOutlineGeometry.js +116 -0
- package/Build/Workers/createTaskProcessorWorker.js +32 -0
- package/Build/Workers/createVectorTileClampedPolylines.js +492 -0
- package/Build/Workers/createVectorTileGeometries.js +387 -0
- package/Build/Workers/createVectorTilePoints.js +114 -0
- package/Build/Workers/createVectorTilePolygons.js +386 -0
- package/Build/Workers/createVectorTilePolylines.js +262 -0
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +91 -0
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +565 -0
- package/Build/Workers/createVerticesFromHeightmap.js +2254 -0
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +499 -0
- package/Build/Workers/createWallGeometry.js +487 -0
- package/Build/Workers/createWallOutlineGeometry.js +335 -0
- package/Build/Workers/decodeDraco.js +369 -0
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +2680 -0
- package/Build/Workers/decodeI3S.js +1339 -0
- package/Build/Workers/gaussianSplatSorter.js +62 -0
- package/Build/Workers/gaussianSplatTextureGenerator.js +68 -0
- package/Build/Workers/incrementallyBuildTerrainPicker.js +121 -0
- package/Build/Workers/transcodeKTX2.js +3463 -0
- package/Build/Workers/transferTypedArrayTest.js +41 -0
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +820 -0
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +95 -0
- package/Source/Scene/GltfLoader.js +2 -2
- package/Source/Scene/Model/I3dmLoader.js +2 -2
- package/index.js +110 -110
- package/package.json +1 -1
|
@@ -0,0 +1,280 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.4
|
|
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
|
+
Quaternion_default
|
|
28
|
+
} from "./chunk-HAWJ7FMN.js";
|
|
29
|
+
import {
|
|
30
|
+
Cartesian3_default,
|
|
31
|
+
Matrix3_default
|
|
32
|
+
} from "./chunk-VR2L2Y4Z.js";
|
|
33
|
+
import {
|
|
34
|
+
Math_default
|
|
35
|
+
} from "./chunk-WMGESUDW.js";
|
|
36
|
+
|
|
37
|
+
// packages/engine/Source/Core/EllipseGeometryLibrary.js
|
|
38
|
+
var EllipseGeometryLibrary = {};
|
|
39
|
+
var rotAxis = new Cartesian3_default();
|
|
40
|
+
var tempVec = new Cartesian3_default();
|
|
41
|
+
var unitQuat = new Quaternion_default();
|
|
42
|
+
var rotMtx = new Matrix3_default();
|
|
43
|
+
function pointOnEllipsoid(theta, rotation, northVec, eastVec, aSqr, ab, bSqr, mag, unitPos, result) {
|
|
44
|
+
const azimuth = theta + rotation;
|
|
45
|
+
Cartesian3_default.multiplyByScalar(eastVec, Math.cos(azimuth), rotAxis);
|
|
46
|
+
Cartesian3_default.multiplyByScalar(northVec, Math.sin(azimuth), tempVec);
|
|
47
|
+
Cartesian3_default.add(rotAxis, tempVec, rotAxis);
|
|
48
|
+
let cosThetaSquared = Math.cos(theta);
|
|
49
|
+
cosThetaSquared = cosThetaSquared * cosThetaSquared;
|
|
50
|
+
let sinThetaSquared = Math.sin(theta);
|
|
51
|
+
sinThetaSquared = sinThetaSquared * sinThetaSquared;
|
|
52
|
+
const radius = ab / Math.sqrt(bSqr * cosThetaSquared + aSqr * sinThetaSquared);
|
|
53
|
+
const angle = radius / mag;
|
|
54
|
+
Quaternion_default.fromAxisAngle(rotAxis, angle, unitQuat);
|
|
55
|
+
Matrix3_default.fromQuaternion(unitQuat, rotMtx);
|
|
56
|
+
Matrix3_default.multiplyByVector(rotMtx, unitPos, result);
|
|
57
|
+
Cartesian3_default.normalize(result, result);
|
|
58
|
+
Cartesian3_default.multiplyByScalar(result, mag, result);
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
var scratchCartesian1 = new Cartesian3_default();
|
|
62
|
+
var scratchCartesian2 = new Cartesian3_default();
|
|
63
|
+
var scratchCartesian3 = new Cartesian3_default();
|
|
64
|
+
var scratchNormal = new Cartesian3_default();
|
|
65
|
+
EllipseGeometryLibrary.raisePositionsToHeight = function(positions, options, extrude) {
|
|
66
|
+
const ellipsoid = options.ellipsoid;
|
|
67
|
+
const height = options.height;
|
|
68
|
+
const extrudedHeight = options.extrudedHeight;
|
|
69
|
+
const size = extrude ? positions.length / 3 * 2 : positions.length / 3;
|
|
70
|
+
const finalPositions = new Float64Array(size * 3);
|
|
71
|
+
const length = positions.length;
|
|
72
|
+
const bottomOffset = extrude ? length : 0;
|
|
73
|
+
for (let i = 0; i < length; i += 3) {
|
|
74
|
+
const i1 = i + 1;
|
|
75
|
+
const i2 = i + 2;
|
|
76
|
+
const position = Cartesian3_default.fromArray(positions, i, scratchCartesian1);
|
|
77
|
+
ellipsoid.scaleToGeodeticSurface(position, position);
|
|
78
|
+
const extrudedPosition = Cartesian3_default.clone(position, scratchCartesian2);
|
|
79
|
+
const normal = ellipsoid.geodeticSurfaceNormal(position, scratchNormal);
|
|
80
|
+
const scaledNormal = Cartesian3_default.multiplyByScalar(
|
|
81
|
+
normal,
|
|
82
|
+
height,
|
|
83
|
+
scratchCartesian3
|
|
84
|
+
);
|
|
85
|
+
Cartesian3_default.add(position, scaledNormal, position);
|
|
86
|
+
if (extrude) {
|
|
87
|
+
Cartesian3_default.multiplyByScalar(normal, extrudedHeight, scaledNormal);
|
|
88
|
+
Cartesian3_default.add(extrudedPosition, scaledNormal, extrudedPosition);
|
|
89
|
+
finalPositions[i + bottomOffset] = extrudedPosition.x;
|
|
90
|
+
finalPositions[i1 + bottomOffset] = extrudedPosition.y;
|
|
91
|
+
finalPositions[i2 + bottomOffset] = extrudedPosition.z;
|
|
92
|
+
}
|
|
93
|
+
finalPositions[i] = position.x;
|
|
94
|
+
finalPositions[i1] = position.y;
|
|
95
|
+
finalPositions[i2] = position.z;
|
|
96
|
+
}
|
|
97
|
+
return finalPositions;
|
|
98
|
+
};
|
|
99
|
+
var unitPosScratch = new Cartesian3_default();
|
|
100
|
+
var eastVecScratch = new Cartesian3_default();
|
|
101
|
+
var northVecScratch = new Cartesian3_default();
|
|
102
|
+
EllipseGeometryLibrary.computeEllipsePositions = function(options, addFillPositions, addEdgePositions) {
|
|
103
|
+
const semiMinorAxis = options.semiMinorAxis;
|
|
104
|
+
const semiMajorAxis = options.semiMajorAxis;
|
|
105
|
+
const rotation = options.rotation;
|
|
106
|
+
const center = options.center;
|
|
107
|
+
const granularity = options.granularity * 8;
|
|
108
|
+
const aSqr = semiMinorAxis * semiMinorAxis;
|
|
109
|
+
const bSqr = semiMajorAxis * semiMajorAxis;
|
|
110
|
+
const ab = semiMajorAxis * semiMinorAxis;
|
|
111
|
+
const mag = Cartesian3_default.magnitude(center);
|
|
112
|
+
const unitPos = Cartesian3_default.normalize(center, unitPosScratch);
|
|
113
|
+
let eastVec = Cartesian3_default.cross(Cartesian3_default.UNIT_Z, center, eastVecScratch);
|
|
114
|
+
eastVec = Cartesian3_default.normalize(eastVec, eastVec);
|
|
115
|
+
const northVec = Cartesian3_default.cross(unitPos, eastVec, northVecScratch);
|
|
116
|
+
let numPts = 1 + Math.ceil(Math_default.PI_OVER_TWO / granularity);
|
|
117
|
+
const deltaTheta = Math_default.PI_OVER_TWO / (numPts - 1);
|
|
118
|
+
let theta = Math_default.PI_OVER_TWO - numPts * deltaTheta;
|
|
119
|
+
if (theta < 0) {
|
|
120
|
+
numPts -= Math.ceil(Math.abs(theta) / deltaTheta);
|
|
121
|
+
}
|
|
122
|
+
const size = 2 * (numPts * (numPts + 2));
|
|
123
|
+
const positions = addFillPositions ? new Array(size * 3) : void 0;
|
|
124
|
+
let positionIndex = 0;
|
|
125
|
+
let position = scratchCartesian1;
|
|
126
|
+
let reflectedPosition = scratchCartesian2;
|
|
127
|
+
const outerPositionsLength = numPts * 4 * 3;
|
|
128
|
+
let outerRightIndex = outerPositionsLength - 1;
|
|
129
|
+
let outerLeftIndex = 0;
|
|
130
|
+
const outerPositions = addEdgePositions ? new Array(outerPositionsLength) : void 0;
|
|
131
|
+
let i;
|
|
132
|
+
let j;
|
|
133
|
+
let numInterior;
|
|
134
|
+
let t;
|
|
135
|
+
let interiorPosition;
|
|
136
|
+
theta = Math_default.PI_OVER_TWO;
|
|
137
|
+
position = pointOnEllipsoid(
|
|
138
|
+
theta,
|
|
139
|
+
rotation,
|
|
140
|
+
northVec,
|
|
141
|
+
eastVec,
|
|
142
|
+
aSqr,
|
|
143
|
+
ab,
|
|
144
|
+
bSqr,
|
|
145
|
+
mag,
|
|
146
|
+
unitPos,
|
|
147
|
+
position
|
|
148
|
+
);
|
|
149
|
+
if (addFillPositions) {
|
|
150
|
+
positions[positionIndex++] = position.x;
|
|
151
|
+
positions[positionIndex++] = position.y;
|
|
152
|
+
positions[positionIndex++] = position.z;
|
|
153
|
+
}
|
|
154
|
+
if (addEdgePositions) {
|
|
155
|
+
outerPositions[outerRightIndex--] = position.z;
|
|
156
|
+
outerPositions[outerRightIndex--] = position.y;
|
|
157
|
+
outerPositions[outerRightIndex--] = position.x;
|
|
158
|
+
}
|
|
159
|
+
theta = Math_default.PI_OVER_TWO - deltaTheta;
|
|
160
|
+
for (i = 1; i < numPts + 1; ++i) {
|
|
161
|
+
position = pointOnEllipsoid(
|
|
162
|
+
theta,
|
|
163
|
+
rotation,
|
|
164
|
+
northVec,
|
|
165
|
+
eastVec,
|
|
166
|
+
aSqr,
|
|
167
|
+
ab,
|
|
168
|
+
bSqr,
|
|
169
|
+
mag,
|
|
170
|
+
unitPos,
|
|
171
|
+
position
|
|
172
|
+
);
|
|
173
|
+
reflectedPosition = pointOnEllipsoid(
|
|
174
|
+
Math.PI - theta,
|
|
175
|
+
rotation,
|
|
176
|
+
northVec,
|
|
177
|
+
eastVec,
|
|
178
|
+
aSqr,
|
|
179
|
+
ab,
|
|
180
|
+
bSqr,
|
|
181
|
+
mag,
|
|
182
|
+
unitPos,
|
|
183
|
+
reflectedPosition
|
|
184
|
+
);
|
|
185
|
+
if (addFillPositions) {
|
|
186
|
+
positions[positionIndex++] = position.x;
|
|
187
|
+
positions[positionIndex++] = position.y;
|
|
188
|
+
positions[positionIndex++] = position.z;
|
|
189
|
+
numInterior = 2 * i + 2;
|
|
190
|
+
for (j = 1; j < numInterior - 1; ++j) {
|
|
191
|
+
t = j / (numInterior - 1);
|
|
192
|
+
interiorPosition = Cartesian3_default.lerp(
|
|
193
|
+
position,
|
|
194
|
+
reflectedPosition,
|
|
195
|
+
t,
|
|
196
|
+
scratchCartesian3
|
|
197
|
+
);
|
|
198
|
+
positions[positionIndex++] = interiorPosition.x;
|
|
199
|
+
positions[positionIndex++] = interiorPosition.y;
|
|
200
|
+
positions[positionIndex++] = interiorPosition.z;
|
|
201
|
+
}
|
|
202
|
+
positions[positionIndex++] = reflectedPosition.x;
|
|
203
|
+
positions[positionIndex++] = reflectedPosition.y;
|
|
204
|
+
positions[positionIndex++] = reflectedPosition.z;
|
|
205
|
+
}
|
|
206
|
+
if (addEdgePositions) {
|
|
207
|
+
outerPositions[outerRightIndex--] = position.z;
|
|
208
|
+
outerPositions[outerRightIndex--] = position.y;
|
|
209
|
+
outerPositions[outerRightIndex--] = position.x;
|
|
210
|
+
outerPositions[outerLeftIndex++] = reflectedPosition.x;
|
|
211
|
+
outerPositions[outerLeftIndex++] = reflectedPosition.y;
|
|
212
|
+
outerPositions[outerLeftIndex++] = reflectedPosition.z;
|
|
213
|
+
}
|
|
214
|
+
theta = Math_default.PI_OVER_TWO - (i + 1) * deltaTheta;
|
|
215
|
+
}
|
|
216
|
+
for (i = numPts; i > 1; --i) {
|
|
217
|
+
theta = Math_default.PI_OVER_TWO - (i - 1) * deltaTheta;
|
|
218
|
+
position = pointOnEllipsoid(
|
|
219
|
+
-theta,
|
|
220
|
+
rotation,
|
|
221
|
+
northVec,
|
|
222
|
+
eastVec,
|
|
223
|
+
aSqr,
|
|
224
|
+
ab,
|
|
225
|
+
bSqr,
|
|
226
|
+
mag,
|
|
227
|
+
unitPos,
|
|
228
|
+
position
|
|
229
|
+
);
|
|
230
|
+
reflectedPosition = pointOnEllipsoid(
|
|
231
|
+
theta + Math.PI,
|
|
232
|
+
rotation,
|
|
233
|
+
northVec,
|
|
234
|
+
eastVec,
|
|
235
|
+
aSqr,
|
|
236
|
+
ab,
|
|
237
|
+
bSqr,
|
|
238
|
+
mag,
|
|
239
|
+
unitPos,
|
|
240
|
+
reflectedPosition
|
|
241
|
+
);
|
|
242
|
+
if (addFillPositions) {
|
|
243
|
+
positions[positionIndex++] = position.x;
|
|
244
|
+
positions[positionIndex++] = position.y;
|
|
245
|
+
positions[positionIndex++] = position.z;
|
|
246
|
+
numInterior = 2 * (i - 1) + 2;
|
|
247
|
+
for (j = 1; j < numInterior - 1; ++j) {
|
|
248
|
+
t = j / (numInterior - 1);
|
|
249
|
+
interiorPosition = Cartesian3_default.lerp(
|
|
250
|
+
position,
|
|
251
|
+
reflectedPosition,
|
|
252
|
+
t,
|
|
253
|
+
scratchCartesian3
|
|
254
|
+
);
|
|
255
|
+
positions[positionIndex++] = interiorPosition.x;
|
|
256
|
+
positions[positionIndex++] = interiorPosition.y;
|
|
257
|
+
positions[positionIndex++] = interiorPosition.z;
|
|
258
|
+
}
|
|
259
|
+
positions[positionIndex++] = reflectedPosition.x;
|
|
260
|
+
positions[positionIndex++] = reflectedPosition.y;
|
|
261
|
+
positions[positionIndex++] = reflectedPosition.z;
|
|
262
|
+
}
|
|
263
|
+
if (addEdgePositions) {
|
|
264
|
+
outerPositions[outerRightIndex--] = position.z;
|
|
265
|
+
outerPositions[outerRightIndex--] = position.y;
|
|
266
|
+
outerPositions[outerRightIndex--] = position.x;
|
|
267
|
+
outerPositions[outerLeftIndex++] = reflectedPosition.x;
|
|
268
|
+
outerPositions[outerLeftIndex++] = reflectedPosition.y;
|
|
269
|
+
outerPositions[outerLeftIndex++] = reflectedPosition.z;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
theta = Math_default.PI_OVER_TWO;
|
|
273
|
+
position = pointOnEllipsoid(
|
|
274
|
+
-theta,
|
|
275
|
+
rotation,
|
|
276
|
+
northVec,
|
|
277
|
+
eastVec,
|
|
278
|
+
aSqr,
|
|
279
|
+
ab,
|
|
280
|
+
bSqr,
|
|
281
|
+
mag,
|
|
282
|
+
unitPos,
|
|
283
|
+
position
|
|
284
|
+
);
|
|
285
|
+
const r = {};
|
|
286
|
+
if (addFillPositions) {
|
|
287
|
+
positions[positionIndex++] = position.x;
|
|
288
|
+
positions[positionIndex++] = position.y;
|
|
289
|
+
positions[positionIndex++] = position.z;
|
|
290
|
+
r.positions = positions;
|
|
291
|
+
r.numPts = numPts;
|
|
292
|
+
}
|
|
293
|
+
if (addEdgePositions) {
|
|
294
|
+
outerPositions[outerRightIndex--] = position.z;
|
|
295
|
+
outerPositions[outerRightIndex--] = position.y;
|
|
296
|
+
outerPositions[outerRightIndex--] = position.x;
|
|
297
|
+
r.outerPositions = outerPositions;
|
|
298
|
+
}
|
|
299
|
+
return r;
|
|
300
|
+
};
|
|
301
|
+
var EllipseGeometryLibrary_default = EllipseGeometryLibrary;
|
|
302
|
+
|
|
303
|
+
export {
|
|
304
|
+
EllipseGeometryLibrary_default
|
|
305
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.4
|
|
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
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
};
|