cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
600 stars 311 forks source link

[Feature Request] Expose more utility functions #1490

Open LadislavBohm opened 2 months ago

LadislavBohm commented 2 months ago

What feature or change would you like to see made?

I'm trying to implement my own annotation tool that is based on LengthTool. When looking at it's source code it uses some very useful utility functions that are not exposed publicly. For example these functions I'm not able to import and use in my own project:

  1. triggerAnnotationCompleted
  2. triggerAnnotationModified

Is it by design or is it ok to export those as well?

Why should we prioritize this feature?

It helps people correctly implement annotation tools. It ensures same behavior as already existing tools.

sedghi commented 1 month ago

You can create a PR and I will merge it