How to render the annotation on OHIF programmatically?

I’m a beginner with OHIF and have successfully deployed it following the documentation. I’m working on a specific use case and need some guidance.

My scenario:

  1. I have a backend service that provides a set of coordinates for a line annotation.
  2. When it loads, I want to pre-draw this line on the OHIF viewer.

What I’ve tried:

  • Successfully deployed OHIF
  • Retrieved the coordinates from my backend service

How can I programmatically draw a line annotation on the OHIF viewer using the coordinates I’ve fetched from my backend service? Are there specific OHIF APIs or methods I should use to achieve this?

Any code examples or pointers to relevant documentation would be greatly appreciated.