LT-322: Change of Dashed Line to Target and Non-Target tools in order to not obscure the text
This commit is contained in:
1 parent
5d8a99dc5f
commit
135760659c
3 files changed
+96
-21
No files matched your search
@@ -19,7 +19,7 @@ function configureTools() {
|
||||
|
||||
// Get Cornerstone Tools
|
||||
const { panMultiTouch, textStyle, toolStyle, toolColors, length,
|
||||
bidirectional, arrowAnnotate, zoom, ellipticalRoi } = cornerstoneTools;
|
||||
bidirectional, arrowAnnotate, zoom, ellipticalRoi, nonTarget } = cornerstoneTools;
|
||||
|
||||
// Set the configuration for the multitouch pan tool
|
||||
const multiTouchPanConfig = {
|
||||
@@ -53,6 +53,7 @@ function configureTools() {
|
||||
const lengthConfig = length.getConfiguration();
|
||||
const bidirectionalConfig = bidirectional.getConfiguration();
|
||||
const ellipticalRoiConfig = ellipticalRoi.getConfiguration();
|
||||
const nonTargetConfig = nonTarget.getConfiguration();
|
||||
|
||||
// Add shadow to length tool
|
||||
length.setConfiguration({
|
||||
@@ -72,6 +73,12 @@ function configureTools() {
|
||||
...shadowConfig
|
||||
});
|
||||
|
||||
// Add shadow to non target tool
|
||||
nonTarget.setConfiguration({
|
||||
...nonTargetConfig,
|
||||
...shadowConfig
|
||||
});
|
||||
|
||||
// Set the configuration values for the text annotation (Arrow) tool
|
||||
const annotateConfig = {
|
||||
getTextCallback: getAnnotationTextCallback,
|
||||
|
||||
Reference in new issue
Block a user