@3cr/viewer-browser 0.0.130 → 0.0.132
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/Viewer3CR.js +7 -7
- package/dist/Viewer3CR.mjs +251 -250
- package/dist/Viewer3CR.umd.js +7 -7
- package/index.ts +1 -0
- package/package.json +1 -1
- package/src/components/modal/MftpWebGL3DRModal.vue +7 -8
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -905,10 +905,10 @@ function getOption(
|
|
|
905
905
|
return unref(props.options)[key];
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
function executeOption(key: keyof LoadViewerOptions) {
|
|
908
|
+
async function executeOption(key: keyof LoadViewerOptions) {
|
|
909
909
|
const functionToExecute = getOption(key);
|
|
910
910
|
if (functionToExecute !== undefined) {
|
|
911
|
-
functionToExecute();
|
|
911
|
+
await functionToExecute();
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
|
|
@@ -987,15 +987,14 @@ async function fullscreenLayout(view: ScanView) {
|
|
|
987
987
|
await payloadHandler.viewSelection(`vs_0${view + 1}` as ViewSelectionActions);
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
function closeModal() {
|
|
990
|
+
async function closeModal() {
|
|
991
|
+
await executeOption("OnExitViewer");
|
|
991
992
|
m_closeDialog.value = false;
|
|
992
993
|
value.value = false;
|
|
993
|
-
executeOption("OnExitViewer");
|
|
994
994
|
}
|
|
995
|
-
function closeModalSave() {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
executeOption("OnSaveSession");
|
|
995
|
+
async function closeModalSave() {
|
|
996
|
+
await executeOption("OnSaveSession");
|
|
997
|
+
await closeModal();
|
|
999
998
|
}
|
|
1000
999
|
function alterValue(val: boolean) {
|
|
1001
1000
|
if (!val) {
|