@3cr/viewer-browser 0.0.38 → 0.0.40

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.38",
3
+ "version": "0.0.40",
4
4
  "main": "./dist/Viewer3CR.umd.js",
5
5
  "module": "dist/Viewer3CR.umd.js",
6
6
  "homepage": "https://docs.3cr.singular.health",
@@ -360,7 +360,7 @@
360
360
  <div
361
361
  class="bordered-event-window"
362
362
  v-for="layout in scanState.Layout.PositionData"
363
- :key="componentKey"
363
+ :key="layout.Anchor"
364
364
  :style="{
365
365
  ...generateDivStyleForLayout(layout),
366
366
  cursor: getCurrentActiveView(layout) === ScanView.Volume ? 'grab !important' : 'default',
@@ -373,7 +373,6 @@
373
373
 
374
374
  <div v-if="scanState.Layout.PositionData.length !== 1">
375
375
  <v-btn
376
- class="transparent icon"
377
376
  color="transparent"
378
377
  @click="fullscreenLayout(layout.DefaultView)"
379
378
  >
@@ -385,33 +384,26 @@
385
384
  </v-tooltip>
386
385
  </div>
387
386
  <div v-if="scanState.Layout.PositionData.length === 1">
388
- <v-tooltip top>
389
- <template #activator="{ props }">
390
- <v-btn
391
- v-bind="props"
392
- icon
393
- class="transparent icon"
394
- @click="layouts(previousLayout)"
395
- ><v-icon color="white">fullscreen_exit</v-icon></v-btn
396
- >
397
- </template>
387
+ <v-btn
388
+ color="transparent"
389
+ @click="layouts(previousLayout)"
390
+ >
391
+ <v-icon color="white">fullscreen_exit</v-icon>
392
+ </v-btn>
393
+ <v-tooltip target="cursor" location="top" activator="parent">
398
394
  Exit Fullscreen View
399
395
  </v-tooltip>
400
396
  </div>
401
397
  <div v-if="getCurrentActiveView(layout) === ScanView.Volume">
402
- <v-tooltip top>
403
- <template #activator="{ props }">
404
- <v-btn
405
- v-bind="props"
406
- icon
407
- class="transparent icon"
408
- @click="
409
- viewSelection('vs_05');
410
- viewSelection('vs_06');
411
- "
412
- ><v-icon color="white">home</v-icon></v-btn
413
- >
414
- </template>
398
+ <v-btn
399
+ color="transparent"
400
+ @click="
401
+ viewSelection('vs_05');
402
+ viewSelection('vs_06');
403
+ "
404
+ ><v-icon color="white">home</v-icon></v-btn
405
+ >
406
+ <v-tooltip target="cursor" location="top" activator="parent">
415
407
  Reset volume to default view
416
408
  </v-tooltip>
417
409
  </div>
@@ -935,24 +927,7 @@ const isLayout1x3 = computed(() => {
935
927
  unref(scanState).Layout.PositionData[3].Anchor === AnchorPoint.BOTTOM_RIGHT
936
928
  )
937
929
  })
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
- // }
930
+
956
931
 
957
932
  function getCurrentGreyscalePreset() {
958
933
  for (const preset of unref(initialScanState).GreyscalePresets) {
@@ -978,9 +953,6 @@ function handleOnPayload(interfaceSet: string | FrontEndInterfaces, actionSet: s
978
953
  if (interfaceSet === FrontEndInterfaces.scan_loading || interfaceSet === 'scan_state') {
979
954
  i_scanState(actionSet, message)
980
955
  }
981
- // if (interfaceSet === 'scan_state') {
982
- // i_scanState(actionSet, message)
983
- // }
984
956
  if (interfaceSet === FrontEndInterfaces.file_management) {
985
957
  i_fileManagement(actionSet, message)
986
958
  }