Skip to content

Commit

Permalink
cornerstonejs#190 - update comments of the EllipticalROITool
Browse files Browse the repository at this point in the history
  • Loading branch information
md-prog committed Aug 30, 2022
1 parent 861752f commit b6e3ca4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/tools/src/tools/annotation/EllipticalROITool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ const { transformWorldToIndex } = csUtils;
* ToolState manager and can be accessed from the ToolState by calling getAnnotations
* or similar methods.
*
* Changing tool configuration (see below) you can make the tool to draw the center
* point circle with a given radius.
*
* ```js
* cornerstoneTools.addTool(EllipticalROITool)
*
Expand All @@ -95,6 +98,11 @@ const { transformWorldToIndex } = csUtils;
* },
* ],
* })
*
* // draw a circle at the center point with 4px radius.
* toolGroup.setToolConfiguration(EllipticalROITool.toolName, {
* centerPointRadius: 4,
* });
* ```
*
* Read more in the Docs section of the website.
Expand Down

0 comments on commit b6e3ca4

Please sign in to comment.