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
@@ -6,6 +6,12 @@ import getViewportModule from './getViewportModule';
|
||||
import { id } from './id.js';
|
||||
import { ViewportActionButton } from '@ohif/ui';
|
||||
import i18n from '@ohif/i18n';
|
||||
import { measurementTrackingMode } from './contexts/TrackedMeasurementsContext/promptBeginTracking';
|
||||
import getCustomizationModule from './getCustomizationModule';
|
||||
import {
|
||||
onDoubleClickHandler,
|
||||
customOnDropHandlerCallback,
|
||||
} from './customizations/studyBrowserCustomization';
|
||||
|
||||
const measurementTrackingExtension = {
|
||||
/**
|
||||
@@ -18,8 +24,15 @@ const measurementTrackingExtension = {
|
||||
getViewportModule,
|
||||
|
||||
onModeEnter({ servicesManager }) {
|
||||
const { toolbarService } = servicesManager.services;
|
||||
|
||||
const { toolbarService, customizationService } = servicesManager.services;
|
||||
customizationService.setCustomizations({
|
||||
'studyBrowser.thumbnailDoubleClickCallback': {
|
||||
$set: onDoubleClickHandler,
|
||||
},
|
||||
customOnDropHandler: {
|
||||
$set: customOnDropHandlerCallback,
|
||||
},
|
||||
});
|
||||
toolbarService.addButtons(
|
||||
[
|
||||
{
|
||||
@@ -38,6 +51,9 @@ const measurementTrackingExtension = {
|
||||
true // replace the button if it is already defined
|
||||
);
|
||||
},
|
||||
getCustomizationModule,
|
||||
};
|
||||
|
||||
export default measurementTrackingExtension;
|
||||
|
||||
export { measurementTrackingMode };
|
||||
Reference in new issue
Block a user