@3cr/viewer-browser 0.0.35 → 0.0.37
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 +545 -541
- package/dist/Viewer3CR.umd.js +8 -8
- package/package.json +1 -1
- package/src/components/MftpWebGL3DRModal.vue +28 -9
package/package.json
CHANGED
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
class="ma-1 mr-0 pa-1"
|
|
133
133
|
height="36"
|
|
134
134
|
style="min-width: 36px !important"
|
|
135
|
-
:color="
|
|
135
|
+
:color="isLayout2x2 ? 'secondary' : 'primary'"
|
|
136
136
|
@click="layouts('lo_02')"
|
|
137
137
|
><v-icon>grid_view</v-icon></v-btn
|
|
138
138
|
>
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
class="ma-1 mr-0 pa-1"
|
|
141
141
|
height="36"
|
|
142
142
|
style="min-width: 36px !important"
|
|
143
|
-
:color="
|
|
143
|
+
:color="isLayout1x3 ? 'secondary' : 'primary'"
|
|
144
144
|
@click="layouts('lo_03')"
|
|
145
145
|
><v-icon style="rotate: -90deg">view_comfy</v-icon></v-btn
|
|
146
146
|
>
|
|
@@ -374,10 +374,10 @@
|
|
|
374
374
|
<div v-if="scanState.Layout.PositionData.length !== 1">
|
|
375
375
|
<v-btn
|
|
376
376
|
class="transparent icon"
|
|
377
|
-
icon="fullscreen"
|
|
378
377
|
color="transparent"
|
|
379
378
|
@click="fullscreenLayout(layout.DefaultView)"
|
|
380
379
|
>
|
|
380
|
+
<v-icon color="white">fullscreen</v-icon>
|
|
381
381
|
|
|
382
382
|
</v-btn>
|
|
383
383
|
<v-tooltip target="cursor" location="top" activator="parent">
|
|
@@ -917,24 +917,42 @@ async function i_notifications(action: string, message: string) {
|
|
|
917
917
|
// }
|
|
918
918
|
// }
|
|
919
919
|
}
|
|
920
|
-
|
|
920
|
+
const isLayout2x2 = computed(() => {
|
|
921
921
|
return (
|
|
922
922
|
unref(scanState).Layout.PositionData.length > 1 &&
|
|
923
923
|
unref(scanState).Layout.PositionData[0].Anchor === AnchorPoint.TOP_LEFT &&
|
|
924
924
|
unref(scanState).Layout.PositionData[1].Anchor === AnchorPoint.TOP_RIGHT &&
|
|
925
925
|
unref(scanState).Layout.PositionData[2].Anchor === AnchorPoint.BOTTOM_LEFT &&
|
|
926
926
|
unref(scanState).Layout.PositionData[3].Anchor === AnchorPoint.BOTTOM_RIGHT
|
|
927
|
-
)
|
|
928
|
-
}
|
|
929
|
-
|
|
927
|
+
)
|
|
928
|
+
})
|
|
929
|
+
const isLayout1x3 = computed(() => {
|
|
930
930
|
return (
|
|
931
931
|
unref(scanState).Layout.PositionData.length > 1 &&
|
|
932
932
|
unref(scanState).Layout.PositionData[0].Anchor === AnchorPoint.CENTER &&
|
|
933
933
|
unref(scanState).Layout.PositionData[1].Anchor === AnchorPoint.TOP_RIGHT &&
|
|
934
934
|
unref(scanState).Layout.PositionData[2].Anchor === AnchorPoint.RIGHT &&
|
|
935
935
|
unref(scanState).Layout.PositionData[3].Anchor === AnchorPoint.BOTTOM_RIGHT
|
|
936
|
-
)
|
|
937
|
-
}
|
|
936
|
+
)
|
|
937
|
+
})
|
|
938
|
+
// function layoutIs2x2() {
|
|
939
|
+
// return (
|
|
940
|
+
// unref(scanState).Layout.PositionData.length > 1 &&
|
|
941
|
+
// unref(scanState).Layout.PositionData[0].Anchor === AnchorPoint.TOP_LEFT &&
|
|
942
|
+
// unref(scanState).Layout.PositionData[1].Anchor === AnchorPoint.TOP_RIGHT &&
|
|
943
|
+
// unref(scanState).Layout.PositionData[2].Anchor === AnchorPoint.BOTTOM_LEFT &&
|
|
944
|
+
// unref(scanState).Layout.PositionData[3].Anchor === AnchorPoint.BOTTOM_RIGHT
|
|
945
|
+
// );
|
|
946
|
+
// }
|
|
947
|
+
// function layoutIs1x3() {
|
|
948
|
+
// return (
|
|
949
|
+
// unref(scanState).Layout.PositionData.length > 1 &&
|
|
950
|
+
// unref(scanState).Layout.PositionData[0].Anchor === AnchorPoint.CENTER &&
|
|
951
|
+
// unref(scanState).Layout.PositionData[1].Anchor === AnchorPoint.TOP_RIGHT &&
|
|
952
|
+
// unref(scanState).Layout.PositionData[2].Anchor === AnchorPoint.RIGHT &&
|
|
953
|
+
// unref(scanState).Layout.PositionData[3].Anchor === AnchorPoint.BOTTOM_RIGHT
|
|
954
|
+
// );
|
|
955
|
+
// }
|
|
938
956
|
|
|
939
957
|
function getCurrentGreyscalePreset() {
|
|
940
958
|
for (const preset of unref(initialScanState).GreyscalePresets) {
|
|
@@ -953,6 +971,7 @@ function getCurrentGreyscalePreset() {
|
|
|
953
971
|
}
|
|
954
972
|
function setScanState(message: string) {
|
|
955
973
|
scanState.value = JSON.parse(message) as CurrentScanState;
|
|
974
|
+
console.log(scanState.value);
|
|
956
975
|
}
|
|
957
976
|
|
|
958
977
|
function handleOnPayload(interfaceSet: string | FrontEndInterfaces, actionSet: string, message: string) {
|