@3cr/viewer-browser 0.0.135 → 0.0.137
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 +9 -9
- package/dist/Viewer3CR.mjs +2644 -2624
- package/dist/Viewer3CR.umd.js +9 -9
- package/package.json +1 -1
- package/src/components/modal/MftpWebGL3DRModal.vue +42 -10
package/package.json
CHANGED
|
@@ -41,12 +41,25 @@
|
|
|
41
41
|
Cancel
|
|
42
42
|
</v-btn>
|
|
43
43
|
<v-spacer />
|
|
44
|
-
<v-btn
|
|
44
|
+
<v-btn
|
|
45
|
+
color="red"
|
|
46
|
+
variant="tonal"
|
|
47
|
+
@click="closeModal"
|
|
48
|
+
v-if="showOption('OnSaveSession')"
|
|
49
|
+
>
|
|
45
50
|
Close without saving
|
|
46
51
|
</v-btn>
|
|
47
|
-
<v-btn
|
|
52
|
+
<v-btn
|
|
53
|
+
color="primary"
|
|
54
|
+
variant="tonal"
|
|
55
|
+
@click="closeModalSave"
|
|
56
|
+
v-if="showOption('OnSaveSession')"
|
|
57
|
+
>
|
|
48
58
|
Save Session
|
|
49
59
|
</v-btn>
|
|
60
|
+
<v-btn color="primary" variant="tonal" @click="closeModal" v-else>
|
|
61
|
+
Close Viewer
|
|
62
|
+
</v-btn>
|
|
50
63
|
</v-card-actions>
|
|
51
64
|
</v-card>
|
|
52
65
|
</v-dialog>
|
|
@@ -77,31 +90,46 @@
|
|
|
77
90
|
</template>
|
|
78
91
|
<v-card class="">
|
|
79
92
|
<v-list>
|
|
80
|
-
<v-list-item
|
|
93
|
+
<v-list-item
|
|
94
|
+
v-if="showOption('OnLoadNewDicomSeries')"
|
|
95
|
+
@click="executeOption('OnLoadNewDicomSeries')"
|
|
96
|
+
>
|
|
81
97
|
<template v-slot:prepend>
|
|
82
98
|
<v-icon> upload </v-icon>
|
|
83
99
|
</template>
|
|
84
100
|
<v-list-item-title>Load New DICOM Series</v-list-item-title>
|
|
85
101
|
</v-list-item>
|
|
86
|
-
<v-list-item
|
|
102
|
+
<v-list-item
|
|
103
|
+
v-if="showOption('OnDownloadDicomSeries')"
|
|
104
|
+
@click="executeOption('OnDownloadDicomSeries')"
|
|
105
|
+
>
|
|
87
106
|
<template v-slot:prepend>
|
|
88
107
|
<v-icon> download </v-icon>
|
|
89
108
|
</template>
|
|
90
109
|
<v-list-item-title>Download DICOM Series</v-list-item-title>
|
|
91
110
|
</v-list-item>
|
|
92
|
-
<v-list-item
|
|
111
|
+
<v-list-item
|
|
112
|
+
v-if="showOption('OnLoadSavedSession')"
|
|
113
|
+
@click="executeOption('OnLoadSavedSession')"
|
|
114
|
+
>
|
|
93
115
|
<template v-slot:prepend>
|
|
94
116
|
<v-icon> sync </v-icon>
|
|
95
117
|
</template>
|
|
96
118
|
<v-list-item-title> Load Saved Session </v-list-item-title>
|
|
97
119
|
</v-list-item>
|
|
98
|
-
<v-list-item
|
|
120
|
+
<v-list-item
|
|
121
|
+
v-if="showOption('OnSendTo3rdParty')"
|
|
122
|
+
@click="executeOption('OnSendTo3rdParty')"
|
|
123
|
+
>
|
|
99
124
|
<template v-slot:prepend>
|
|
100
125
|
<v-icon> send </v-icon>
|
|
101
126
|
</template>
|
|
102
127
|
<v-list-item-title>Send to 3rd Party</v-list-item-title>
|
|
103
128
|
</v-list-item>
|
|
104
|
-
<v-list-item
|
|
129
|
+
<v-list-item
|
|
130
|
+
v-if="showOption('OnShareToMobile')"
|
|
131
|
+
@click="executeOption('OnShareToMobile')"
|
|
132
|
+
>
|
|
105
133
|
<template v-slot:prepend>
|
|
106
134
|
<v-icon> share </v-icon>
|
|
107
135
|
</template>
|
|
@@ -865,7 +893,7 @@ const footerItems = ref([
|
|
|
865
893
|
icon: "send",
|
|
866
894
|
color: "blue",
|
|
867
895
|
click: async () => executeOption("OnSendTo3rdParty"),
|
|
868
|
-
conditional: () =>
|
|
896
|
+
conditional: () => showOption("OnSendTo3rdParty"),
|
|
869
897
|
},
|
|
870
898
|
{
|
|
871
899
|
text: "Share to Mobile / VR",
|
|
@@ -874,14 +902,14 @@ const footerItems = ref([
|
|
|
874
902
|
icon: "share",
|
|
875
903
|
color: "yellow",
|
|
876
904
|
click: async () => executeOption("OnShareToMobile"),
|
|
877
|
-
conditional: () =>
|
|
905
|
+
conditional: () => showOption("OnShareToMobile"),
|
|
878
906
|
},
|
|
879
907
|
{
|
|
880
908
|
text: "Screenshot View",
|
|
881
909
|
icon: "screenshot_region",
|
|
882
910
|
color: "green",
|
|
883
911
|
click: async () => executeOption("OnScreenshot"),
|
|
884
|
-
conditional: () =>
|
|
912
|
+
conditional: () => showOption("OnScreenshot"),
|
|
885
913
|
},
|
|
886
914
|
]);
|
|
887
915
|
const miniMenu = ref([
|
|
@@ -896,6 +924,10 @@ const rotationDeg = ref<number>(0);
|
|
|
896
924
|
const stateOverlay = ref<boolean>(false);
|
|
897
925
|
const m_closeDialog = ref<boolean>(false);
|
|
898
926
|
|
|
927
|
+
function showOption(key: keyof LoadViewerOptions): boolean {
|
|
928
|
+
return getOption(key) !== undefined;
|
|
929
|
+
}
|
|
930
|
+
|
|
899
931
|
function getOption(
|
|
900
932
|
key: keyof LoadViewerOptions
|
|
901
933
|
): ViewerCallback | ViewerAsyncCallback | undefined {
|