-
Notifications
You must be signed in to change notification settings - Fork 456
ToolHowTo
Danny Brown edited this page Feb 5, 2019
·
2 revisions
This documentation is for a much older version of
cornerstone-tools
. While it may still loosely apply, more recent information can be found at https://tools.cornerstonejs.org
How to implement a custom tool:
- Register for the CornerstoneImageRendered event so you can draw your tool. Read more about Drawing geometry with tools and Drawing text with tools
- Figure out which events your tool needs to listen for (e.g. left mouse click)
- Store image specific tool data or stack scoped tool data using getElementData API