cornerstonejs / cornerstoneTools

A framework for tools built on top of Cornerstone.
https://tools.cornerstonejs.org/
MIT License
574 stars 456 forks source link

cornerstoneTools.BidirectionalTool could not add #1552

Open sellarajathangaramaiya opened 10 months ago

sellarajathangaramaiya commented 10 months 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 10 months 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