update cornerstoen tools

This commit is contained in:
Ross
2020-12-06 08:56:59 +00:00
parent 09239f98fa
commit 05cb4f0ad2
2 changed files with 15 additions and 2 deletions
+13
View File
@@ -10,6 +10,7 @@ export function loadMainImage(image, stack) {
const WwwcTool = cornerstoneTools.WwwcTool;
const RotateTool = cornerstoneTools.RotateTool;
const StackScrollTool = cornerstoneTools.StackScrollTool;
const ArrowAnnotateTool = cornerstoneTools.ArrowAnnotateTool;
const element = document.getElementById("dicom-image");
cornerstone.enable(element);
@@ -29,7 +30,19 @@ export function loadMainImage(image, stack) {
cornerstoneTools.addTool(RotateTool);
cornerstoneTools.addTool(StackScrollTool);
cornerstoneTools.addTool(ArrowAnnotateTool, {
configuration: {
getTextCallback: () => {},
changeTextCallback: () => {},
allowEmptyLabel: true,
renderDashed: false,
drawHandles: false,
drawHandlesOnHover: true,
},
});
cornerstoneTools.setToolActive("Pan", { mouseButtonMask: 1 });
cornerstoneTools.setToolEnabled("ArrowAnnotate");
element.addEventListener("cornerstoneimagerendered", onImageRendered);
+2 -2
View File
File diff suppressed because one or more lines are too long