@mml-io/mml-web-client 0.0.0-experimental-23450b2-20250302 → 0.0.0-experimental-a5e55cf-20250302
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/index.js +19 -3
- package/build/index.js.map +2 -2
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -65087,6 +65087,7 @@ ${DracoWorker.toString()}
|
|
|
65087
65087
|
this.updateDebugVisualisation();
|
|
65088
65088
|
}
|
|
65089
65089
|
if (!src) {
|
|
65090
|
+
this.latestSrcModelPromise = null;
|
|
65090
65091
|
this.srcLoadingInstanceManager.abortIfLoading();
|
|
65091
65092
|
this.socketChildrenByBone.forEach((children) => {
|
|
65092
65093
|
children.forEach((child) => {
|
|
@@ -65098,10 +65099,13 @@ ${DracoWorker.toString()}
|
|
|
65098
65099
|
return;
|
|
65099
65100
|
}
|
|
65100
65101
|
const contentSrc = this.model.contentSrcToContentAddress(src);
|
|
65102
|
+
this.srcLoadingInstanceManager.start(this.model.getLoadingProgressManager(), contentSrc);
|
|
65101
65103
|
const srcModelPromise = this.asyncLoadSourceAsset(contentSrc, (loaded, total) => {
|
|
65104
|
+
if (this.latestSrcModelPromise !== srcModelPromise) {
|
|
65105
|
+
return;
|
|
65106
|
+
}
|
|
65102
65107
|
this.srcLoadingInstanceManager.setProgress(loaded / total);
|
|
65103
65108
|
});
|
|
65104
|
-
this.srcLoadingInstanceManager.start(this.model.getLoadingProgressManager(), contentSrc);
|
|
65105
65109
|
this.latestSrcModelPromise = srcModelPromise;
|
|
65106
65110
|
srcModelPromise.then((asset2) => {
|
|
65107
65111
|
if (this.latestSrcModelPromise !== srcModelPromise || !this.model.isConnected) {
|
|
@@ -65247,6 +65251,8 @@ ${DracoWorker.toString()}
|
|
|
65247
65251
|
this.loadedState = null;
|
|
65248
65252
|
}
|
|
65249
65253
|
this.clearDebugVisualisation();
|
|
65254
|
+
this.latestSrcModelPromise = null;
|
|
65255
|
+
this.latestAnimPromise = null;
|
|
65250
65256
|
this.animLoadingInstanceManager.dispose();
|
|
65251
65257
|
this.srcLoadingInstanceManager.dispose();
|
|
65252
65258
|
}
|
|
@@ -97870,10 +97876,13 @@ void main() {
|
|
|
97870
97876
|
this.registeredParentAttachment = null;
|
|
97871
97877
|
}
|
|
97872
97878
|
const animSrc = this.model.contentSrcToContentAddress(anim2);
|
|
97879
|
+
this.animLoadingInstanceManager.start(this.model.getLoadingProgressManager(), animSrc);
|
|
97873
97880
|
const animPromise = this.asyncLoadSourceAsset(animSrc, (loaded, total) => {
|
|
97881
|
+
if (this.latestAnimPromise !== animPromise) {
|
|
97882
|
+
return;
|
|
97883
|
+
}
|
|
97874
97884
|
this.animLoadingInstanceManager.setProgress(loaded / total);
|
|
97875
97885
|
});
|
|
97876
|
-
this.animLoadingInstanceManager.start(this.model.getLoadingProgressManager(), animSrc);
|
|
97877
97886
|
this.latestAnimPromise = animPromise;
|
|
97878
97887
|
animPromise.then((result) => {
|
|
97879
97888
|
if (this.latestAnimPromise !== animPromise || !this.model.isConnected) {
|
|
@@ -97916,6 +97925,7 @@ void main() {
|
|
|
97916
97925
|
this.updateDebugVisualisation();
|
|
97917
97926
|
}
|
|
97918
97927
|
if (!src) {
|
|
97928
|
+
this.latestSrcModelPromise = null;
|
|
97919
97929
|
this.srcLoadingInstanceManager.abortIfLoading();
|
|
97920
97930
|
this.socketChildrenByBone.forEach((children) => {
|
|
97921
97931
|
children.forEach((child) => {
|
|
@@ -97927,10 +97937,13 @@ void main() {
|
|
|
97927
97937
|
return;
|
|
97928
97938
|
}
|
|
97929
97939
|
const contentSrc = this.model.contentSrcToContentAddress(src);
|
|
97940
|
+
this.srcLoadingInstanceManager.start(this.model.getLoadingProgressManager(), contentSrc);
|
|
97930
97941
|
const srcModelPromise = this.asyncLoadSourceAsset(contentSrc, (loaded, total) => {
|
|
97942
|
+
if (this.latestSrcModelPromise !== srcModelPromise) {
|
|
97943
|
+
return;
|
|
97944
|
+
}
|
|
97931
97945
|
this.srcLoadingInstanceManager.setProgress(loaded / total);
|
|
97932
97946
|
});
|
|
97933
|
-
this.srcLoadingInstanceManager.start(this.model.getLoadingProgressManager(), contentSrc);
|
|
97934
97947
|
this.latestSrcModelPromise = srcModelPromise;
|
|
97935
97948
|
srcModelPromise.then((result) => {
|
|
97936
97949
|
if (this.latestSrcModelPromise !== srcModelPromise || !this.model.isConnected) {
|
|
@@ -97982,6 +97995,7 @@ void main() {
|
|
|
97982
97995
|
if (this.animState) {
|
|
97983
97996
|
this.playAnimation(this.animState.currentAnimationClip);
|
|
97984
97997
|
}
|
|
97998
|
+
console.log("Loaded model", this.loadedState);
|
|
97985
97999
|
this.srcLoadingInstanceManager.finish();
|
|
97986
98000
|
this.updateDebugVisualisation();
|
|
97987
98001
|
}).catch((err2) => {
|
|
@@ -98183,6 +98197,8 @@ void main() {
|
|
|
98183
98197
|
this.loadedState = null;
|
|
98184
98198
|
}
|
|
98185
98199
|
this.clearDebugVisualisation();
|
|
98200
|
+
this.latestSrcModelPromise = null;
|
|
98201
|
+
this.latestAnimPromise = null;
|
|
98186
98202
|
this.animLoadingInstanceManager.dispose();
|
|
98187
98203
|
this.srcLoadingInstanceManager.dispose();
|
|
98188
98204
|
}
|