@3cr/viewer-browser 0.0.29 → 0.0.32

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.29",
3
+ "version": "0.0.32",
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="layoutIs1x3() ? '123' : '234'"
363
+ :key="componentKey"
364
364
  :style="{
365
365
  ...generateDivStyleForLayout(layout),
366
366
  cursor: getCurrentActiveView(layout) === ScanView.Volume ? 'grab !important' : 'default',
@@ -371,16 +371,15 @@
371
371
  <div style="width: 100%; height: 100%">
372
372
  <div class="buttons-in-view" v-show="isHovering">
373
373
  <div v-if="scanState.Layout.PositionData.length !== 1">
374
- <v-tooltip top>
375
- <template #activator="{ props }">
376
- <v-btn
377
- class="transparent icon"
378
- v-bind="props"
379
- icon
380
- @click="fullscreenLayout(layout.DefaultView)"
381
- ><v-icon color="white">fullscreen</v-icon></v-btn
382
- >
383
- </template>
374
+ <v-btn
375
+ class="transparent icon"
376
+ icon="fullscreen"
377
+ color="white"
378
+ @click="fullscreenLayout(layout.DefaultView)"
379
+ >
380
+
381
+ </v-btn>
382
+ <v-tooltip target="cursor" location="top" activator="parent">
384
383
  Make {{ getViewName(getCurrentActiveView(layout)) }} fullscreen
385
384
  </v-tooltip>
386
385
  </div>
@@ -571,6 +570,7 @@ defineExpose({
571
570
  export interface Props {
572
571
  payload: LoadViewerPayload;
573
572
  }
573
+ const componentKey = ref(0);
574
574
 
575
575
  const props = withDefaults(defineProps<Props>(), {
576
576
  payload: () => ({
@@ -769,6 +769,9 @@ watch(() => scanState.value.InteractionSettings.RotateSensitivity, async (value:
769
769
  watch(() => scanState.value.InteractionSettings.CameraRotateSensitivity, async (value: number) => {
770
770
  await scanMovementHandler(ScanMovementActions.sm12, value);
771
771
  })
772
+ watch( () => scanState.value.Layout.PositionData, () => {
773
+ componentKey.value += 1
774
+ })
772
775
 
773
776
  function getIconForPreset(presetName: string): string | undefined {
774
777
  // if (presetName === 'Bone') return 'fa-solid fa-bone';