Skip to content
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:

  1. Register for the CornerstoneImageRendered event so you can draw your tool. Read more about Drawing geometry with tools and Drawing text with tools
  2. Figure out which events your tool needs to listen for (e.g. left mouse click)
  3. Store image specific tool data or stack scoped tool data using getElementData API
Clone this wiki locally