@xviewer.js/core 1.0.4-alpha.2 → 1.0.4-alpha.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/dist/main.cjs +2 -6
- package/dist/main.cjs.map +1 -1
- package/dist/module.js +2 -6
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/asset/ResourceManager.d.ts +2 -1
package/dist/main.cjs
CHANGED
|
@@ -4411,19 +4411,15 @@ class ResourceManager {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
return loader;
|
|
4413
4413
|
}
|
|
4414
|
-
loadAsset({ url,
|
|
4414
|
+
loadAsset({ url, ext, onProgress, ...props }) {
|
|
4415
4415
|
return new Promise((resolve, reject)=>{
|
|
4416
4416
|
const sel = ext || url && ResourceManager.extension(url) || "";
|
|
4417
4417
|
const texSettings = ResourceManager._splitTextureSettings(props);
|
|
4418
4418
|
if (this._loaders.has(sel)) {
|
|
4419
4419
|
this._loaders.get(sel).load({
|
|
4420
4420
|
url,
|
|
4421
|
-
buffer,
|
|
4422
4421
|
texSettings,
|
|
4423
|
-
|
|
4424
|
-
resourcePath,
|
|
4425
|
-
dracoPath,
|
|
4426
|
-
manager,
|
|
4422
|
+
...props,
|
|
4427
4423
|
onProgress,
|
|
4428
4424
|
onLoad: resolve,
|
|
4429
4425
|
onError: (err)=>{
|