cornerstonejs / cornerstoneTools

[Deprecated] Use Cornerstone3D Instead https://cornerstonejs.org/
MIT License
579 stars 456 forks source link

cornerstoneTools.BidirectionalTool could not add #1552

Open sellarajathangaramaiya opened 1 year ago

sellarajathangaramaiya commented 1 year ago

Prerequisites

Description

Steps to Reproduce the issue

  1. When I do X
  2. Then Y
  3. I see behavior Z

Expected behavior: (What you expected to happen)

Actual behavior: (What actually happened)

CodeSandbox With Reproduction of Issue:

sellarajathangaramaiya commented 1 year ago

// Init cornerstone tools cornerstoneTools.init();

// Enable any elements, and display images // ...

// Add our tool, and set it's mode const BidirectionalTool = cornerstoneTools.BidirectionalTool;

cornerstoneTools.addTool(BidirectionalTool) cornerstoneTools.setToolActive('Bidirectional', { mouseButtonMask: 1 }) other tool i can able to add but Bidirectional alone i could not add . i am using version 5.1.4