diff --git a/app/components/ClippingPlanes.vue b/app/components/ClippingPlanes.vue index 87a5af405..9ca9ecd87 100644 --- a/app/components/ClippingPlanes.vue +++ b/app/components/ClippingPlanes.vue @@ -38,14 +38,14 @@ const planes = ref([createPlane(undefined, [1, 0, 0])]); const allItems = dataStore.refRegisteredItems(); const targetIds = computed(() => { if (targetAllVisible.value) { - return allItems.value.map((item) => item.id); + return allItems.value.map((item) => item.data_id); } return selectedDatasetIds.value; }); const availableDatasets = computed<{ title: string; value: string }[]>(() => allItems.value.map((item) => ({ - title: item.name || item.id, - value: item.id, + title: item.name || item.data_id, + value: item.data_id, })), ); const widgetContainer = useTemplateRef("widgetContainer"); @@ -70,7 +70,9 @@ const { }); function getUntargetedIds(): string[] { - return allItems.value.map((item) => item.id).filter((id) => !targetIds.value.includes(id)); + return allItems.value + .map((item) => item.data_id) + .filter((dataId) => !targetIds.value.includes(dataId)); } const { @@ -144,7 +146,7 @@ async function resetClippingPlanes(): Promise { } async function removeClippingPlanes(): Promise { - const allIds = allItems.value.map((item) => item.id); + const allIds = allItems.value.map((item) => item.data_id); await hybridViewerStore.setClippingPlanes(allIds, []); await removeSlices(allIds); } diff --git a/app/components/CrsSelector.vue b/app/components/CrsSelector.vue index 9e4de11ef..63ae0943a 100644 --- a/app/components/CrsSelector.vue +++ b/app/components/CrsSelector.vue @@ -1,9 +1,10 @@ @@ -164,17 +166,17 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs); {{ metaData.geode_object_type }} - {{ isCopied(metaData.id) ? "COPIED!" : formattedId }} + {{ isCopied(metaData.data_id) ? "COPIED!" : formattedId }} @@ -195,7 +197,7 @@ const liveCrs = computed(() => liveItem.value?.crs ?? metaData.crs); size="x-small" color="white" class="ml-1" - @click.stop="crsStore.requestCrsEdit(metaData.id)" + @click.stop="crsStore.requestCrsEdit(metaData.data_id)" /> diff --git a/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue b/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue index bd1220d8f..aabe4a380 100644 --- a/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue +++ b/app/components/Viewer/EdgedCurve/SpecificEdgesColoring.vue @@ -1,9 +1,18 @@