@3cr/viewer-browser 0.0.138 → 0.0.140
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 +12 -12
- package/dist/Viewer3CR.mjs +1462 -1455
- package/dist/Viewer3CR.umd.js +12 -12
- package/index.ts +9 -9
- package/package.json +1 -1
- package/src/components/modal/MftpWebGL3DRModal.vue +7 -6
- package/src/dataLayer/payloadHandler.ts +12 -0
- package/src/demo/licence/DemoLicenceSendToPartyModal.vue +1 -1
- package/src/demo/options.ts +8 -2
- package/src/demo/patient/DemoPatientSendToPartyModal.vue +1 -1
package/index.ts
CHANGED
|
@@ -12,15 +12,15 @@ import { injectedStyleId } from "./config";
|
|
|
12
12
|
|
|
13
13
|
let mountedApp: ComponentPublicInstance | undefined = undefined;
|
|
14
14
|
|
|
15
|
-
let modalId = `
|
|
16
|
-
function uuidv4() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
15
|
+
let modalId = `__modal_set__`;
|
|
16
|
+
// function uuidv4() {
|
|
17
|
+
// return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) =>
|
|
18
|
+
// (
|
|
19
|
+
// +c ^
|
|
20
|
+
// (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (+c / 4)))
|
|
21
|
+
// ).toString(16)
|
|
22
|
+
// );
|
|
23
|
+
// }
|
|
24
24
|
export async function registerViewer(
|
|
25
25
|
version: string,
|
|
26
26
|
options = {
|
package/package.json
CHANGED
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
width="600"
|
|
29
29
|
theme="dark"
|
|
30
30
|
>
|
|
31
|
-
<v-card-title>Close Viewer?</v-card-title>
|
|
32
|
-
<v-card-text
|
|
31
|
+
<v-card-title class="text-center">Close Viewer?</v-card-title>
|
|
32
|
+
<v-card-text class="text-center mb-2"
|
|
33
33
|
>Are you sure you want to close the Online Viewer?</v-card-text
|
|
34
34
|
>
|
|
35
35
|
<v-card-actions>
|
|
36
36
|
<v-btn
|
|
37
|
-
variant="
|
|
37
|
+
variant="flat"
|
|
38
38
|
color="secondary"
|
|
39
39
|
@click="m_closeDialog = false"
|
|
40
40
|
>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<v-spacer />
|
|
44
44
|
<v-btn
|
|
45
45
|
color="red"
|
|
46
|
-
variant="
|
|
46
|
+
variant="flat"
|
|
47
47
|
@click="closeModal"
|
|
48
48
|
v-if="showOption('OnSaveSession')"
|
|
49
49
|
>
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
</v-btn>
|
|
52
52
|
<v-btn
|
|
53
53
|
color="primary"
|
|
54
|
-
variant="
|
|
54
|
+
variant="flat"
|
|
55
55
|
@click="closeModalSave"
|
|
56
56
|
v-if="showOption('OnSaveSession')"
|
|
57
57
|
>
|
|
58
58
|
Save Session
|
|
59
59
|
</v-btn>
|
|
60
|
-
<v-btn color="
|
|
60
|
+
<v-btn color="flat" variant="tonal" @click="closeModal" v-else>
|
|
61
61
|
Close Viewer
|
|
62
62
|
</v-btn>
|
|
63
63
|
</v-card-actions>
|
|
@@ -1053,6 +1053,7 @@ async function i_fileManagement(action: string, message: string) {
|
|
|
1053
1053
|
scanLoading.value = false;
|
|
1054
1054
|
drawerCollapsed.value = false;
|
|
1055
1055
|
await payloadHandler.hoverOverCanvas(false);
|
|
1056
|
+
await payloadHandler.setNavCubeVisibility(false);
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
1058
1059
|
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
FrontEndInterfaces,
|
|
5
5
|
InteractivityActions,
|
|
6
6
|
LayoutActions,
|
|
7
|
+
NavigationCubeActions,
|
|
7
8
|
PresetsActions,
|
|
8
9
|
ScanMovementActions,
|
|
9
10
|
ScanOrientationActions,
|
|
@@ -76,6 +77,17 @@ export class PayloadHandler {
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
80
|
+
async setNavCubeVisibility(visibility: any) {
|
|
81
|
+
await this.sendPayload(
|
|
82
|
+
FrontEndInterfaces.navigation_cube,
|
|
83
|
+
NavigationCubeActions.nc02,
|
|
84
|
+
{
|
|
85
|
+
Version: "0.0.1",
|
|
86
|
+
Value: visibility,
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
async hoverOverCanvas(isHovering: boolean) {
|
|
80
92
|
await this.sendPayload(
|
|
81
93
|
FrontEndInterfaces.interactivity,
|
package/src/demo/options.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, ref, unref } from "vue";
|
|
1
|
+
import { computed, ref, unref, watch } from "vue";
|
|
2
2
|
import { LoadViewerOptions } from "@/models/LoadViewerOptions";
|
|
3
3
|
import { LoadViewerPayload } from "@/models/LoadViewerPayload";
|
|
4
4
|
import { ViewerAsyncCallback, ViewerCallback } from "@/models/Callbacks";
|
|
@@ -81,6 +81,11 @@ export const demoPatientOptions: LoadViewerOptions = {
|
|
|
81
81
|
"Should you have any further questions or enquiries, please get in touch by emailing support@singular.health",
|
|
82
82
|
];
|
|
83
83
|
m_demoPatient.value = true;
|
|
84
|
+
watch(m_demoPatient, () => {
|
|
85
|
+
if (!m_demoPatient) {
|
|
86
|
+
window.close();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
84
89
|
},
|
|
85
90
|
OnLoadNewDicomSeries: () => {
|
|
86
91
|
demoPatientTitle.value =
|
|
@@ -95,7 +100,8 @@ export const demoPatientOptions: LoadViewerOptions = {
|
|
|
95
100
|
demoPatientTitle.value =
|
|
96
101
|
"3Dicom Patient enables on-demand download of DICOM series";
|
|
97
102
|
demoPatientSubtitles.value = [
|
|
98
|
-
"3Dicom Patient enables you to store your medical imaging and related files / reports online or share them temporarily between devices.
|
|
103
|
+
"3Dicom Patient enables you to store your medical imaging and related files / reports online or share them temporarily between devices. ",
|
|
104
|
+
"DICOM files can be downloaded to your device for local storage and providing to 3rd parties via CD/USB.",
|
|
99
105
|
"Purchase 3Dicom Patient to gain control over your DICOM file storage.",
|
|
100
106
|
];
|
|
101
107
|
m_demoPatient.value = true;
|