@3cr/viewer-browser 0.0.29 → 0.0.31

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.31",
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',
@@ -571,6 +571,7 @@ defineExpose({
571
571
  export interface Props {
572
572
  payload: LoadViewerPayload;
573
573
  }
574
+ const componentKey = ref(0);
574
575
 
575
576
  const props = withDefaults(defineProps<Props>(), {
576
577
  payload: () => ({
@@ -769,6 +770,9 @@ watch(() => scanState.value.InteractionSettings.RotateSensitivity, async (value:
769
770
  watch(() => scanState.value.InteractionSettings.CameraRotateSensitivity, async (value: number) => {
770
771
  await scanMovementHandler(ScanMovementActions.sm12, value);
771
772
  })
773
+ watch( () => scanState.value.Layout.PositionData, () => {
774
+ componentKey.value += 1
775
+ })
772
776
 
773
777
  function getIconForPreset(presetName: string): string | undefined {
774
778
  // if (presetName === 'Bone') return 'fa-solid fa-bone';