You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the way, the long term goal is to write my own annotation tools (more simplistic than the currently provided ones), I hope I'm on the right track with the above.
Moved the tool adding part to the Viewports onElementEnabled event and now everything works. Code in the sandbox is updated. I guess this also answers the question for the thread author.
Hi @dannyrb ,
Am trying to create a custom tool using cornerstone base tool. Got the code from https://tools.cornerstonejs.org/custom-tools/#creating-your-tool.
But am stuck on how to consume this, as just using the below is giving me an exception. the variable is undefined...
const MyTool = cornerstoneTools.MyTool; //is coming undefined and hence exception
cornerstoneTools.addTool(MyTool);
cornerstoneTools.setToolActive('myTool', { mouseButtonMask: 1 });
Any guidance will be very helpful.
thanks,
Sreevani
The text was updated successfully, but these errors were encountered: