feat: group clear measurements history (#5194)

This commit is contained in:
Pedro Köhler authored and GitHub committed 2025-07-11 11:26:10 -04:00
1 parent 4e99f1ed34
commit 4d3ff5a6cc
4 files changed
+34974 -7220

No files matched your search

@@ -359,6 +359,7 @@ const connectMeasurementServiceToTools = ({
return;
}
commandsManager.run('startRecordingForAnnotationGroup');
for (const measurement of Object.values(measurements)) {
const { uid, source } = measurement;
if (source.name !== CORNERSTONE_3D_TOOLS_SOURCE_NAME) {
@@ -372,6 +373,7 @@ const connectMeasurementServiceToTools = ({
options: { deleting: true },
});
}
commandsManager.run('endRecordingForAnnotationGroup');
// trigger a render
cornerstoneViewportService.getRenderingEngine().render();