@3cr/viewer-browser 0.0.36 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3cr/viewer-browser",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "main": "./dist/Viewer3CR.umd.js",
5
5
  "module": "dist/Viewer3CR.umd.js",
6
6
  "homepage": "https://docs.3cr.singular.health",
@@ -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="layoutIs2x2() ? 'secondary' : 'primary'"
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="layoutIs1x3() ? 'secondary' : 'primary'"
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
  >
@@ -917,24 +917,42 @@ async function i_notifications(action: string, message: string) {
917
917
  // }
918
918
  // }
919
919
  }
920
- function layoutIs2x2() {
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
- function layoutIs1x3() {
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) {