feat: Automate tracking prompts for a less disruptive annotation workflow (#4822)
Co-authored-by: Devu Jayalekshmi <devu.jayalekshmi@trenser.com>
This commit is contained in:
1 parent
c0391cea1b
commit
54fded554e
42 files changed
+948
-70
No files matched your search
@@ -47,6 +47,7 @@ async function appInit(appConfigOrFunc, defaultExtensions, defaultModes) {
|
||||
};
|
||||
// Default the peer import function
|
||||
appConfig.peerImport ||= peerImport;
|
||||
appConfig.measurementTrackingMode ||= 'standard';
|
||||
|
||||
const extensionManager = new ExtensionManager({
|
||||
commandsManager,
|
||||
|
||||
@@ -257,6 +257,7 @@ function ViewerViewportGrid(props: withAppTypes) {
|
||||
}, [viewports, _getUpdatedViewports]);
|
||||
|
||||
const onDropHandler = (viewportId, { displaySetInstanceUID }) => {
|
||||
const { viewportGridService } = servicesManager.services;
|
||||
const customOnDropHandler = customizationService.getCustomization('customOnDropHandler');
|
||||
const dropHandlerPromise = customOnDropHandler({
|
||||
...props,
|
||||
@@ -264,13 +265,13 @@ function ViewerViewportGrid(props: withAppTypes) {
|
||||
displaySetInstanceUID,
|
||||
appConfig,
|
||||
});
|
||||
|
||||
dropHandlerPromise.then(({ handled }) => {
|
||||
if (!handled) {
|
||||
const updatedViewports = _getUpdatedViewports(viewportId, displaySetInstanceUID);
|
||||
viewportGridService.setDisplaySetsForViewports(updatedViewports);
|
||||
}
|
||||
});
|
||||
viewportGridService.publishViewportOnDropHandled({ displaySetInstanceUID });
|
||||
};
|
||||
|
||||
// Store previous isReferenceViewable values to avoid infinite loops
|
||||
|
||||
Reference in new issue
Block a user