LT-322: Change of Dashed Line to Target and Non-Target tools in order to not obscure the text

This commit is contained in:
Eloízio Salgado authored and Erik Ziegler committed 2016-11-15 08:29:46 +01:00
1 parent 5d8a99dc5f
commit 135760659c
3 files changed
+96 -21

No files matched your search

+8 -1
View File
@@ -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,