Add profile 3D preferences and adapt DICOM preview resolution to memory budget

This commit is contained in:
SantaSpeen committed 2026-10-22 22:29:28 +03:00
1 parent 705762d57c
commit 7fd7ae6733
22 files changed
+500 -68

No files matched your search

@@ -74,6 +74,7 @@ import {
watch,
} from "vue";
import { useI18n } from "vue-i18n";
import { useAuthStore } from "@/stores/auth";
import DicomWorker from "@/utils/dicom.worker?worker";
import { readDicomFile } from "@/utils/dicom-file";
import { findDicomSeries } from "@/utils/dicom-context";
@@ -88,6 +89,7 @@ const DicomVolumeViewer = defineAsyncComponent({
});
const props = defineProps<{ source: string; resource?: Resource }>();
const { t } = useI18n();
const auth = useAuthStore();
const series = shallowRef<DicomSource[]>([]),
volume = shallowRef<DicomVolume>();
const volumeLoading = ref(false),
@@ -124,7 +126,8 @@ async function openVolume() {
request.signal,
(count) => {
loaded.value = count;
}
},
auth.user?.dicom3D
);
if (!request.signal.aborted) volume.value = result;
} catch (e) {