LT-332: Fixed tool color and shadow for target tool. Moved client-only utilities to client-folder in viewerbase to speed up reloading
This commit is contained in:
1 parent
c04c70b325
commit
8cf6666bb1
46 files changed
+67
-57
No files matched your search
+10
-1
@@ -50,13 +50,22 @@ Template.measurementLocationDialog.onCreated(() => {
|
||||
});
|
||||
};
|
||||
|
||||
const config = {
|
||||
const callbackConfig = {
|
||||
setMeasurementNumberCallback: getSetMeasurementNumberCallbackFunction(measurementTypeId, measurementApi, timepointApi),
|
||||
// TODO: Check the position for these, the Add Label button position seems very awkward
|
||||
getMeasurementLocationCallback: toggleLabel,
|
||||
changeMeasurementLocationCallback: toggleLabel,
|
||||
};
|
||||
|
||||
|
||||
// TODO: Reconcile this with the configuration in toolManager
|
||||
// it would be better to have this all in one place.
|
||||
const bidirectionalConfig = cornerstoneTools.bidirectional.getConfiguration();
|
||||
const config = {
|
||||
...bidirectionalConfig,
|
||||
...callbackConfig
|
||||
};
|
||||
|
||||
cornerstoneTools.bidirectional.setConfiguration(config);
|
||||
|
||||
// Set CR-Tool, UN-Tool, EX-Tool configurations
|
||||
|
||||
Reference in new issue
Block a user