Access to measurements API

I am trying to access the internal measurement objects (MeasurementService and MeasurementAPI) so as to integrate / embed the viewer in another application.

Looking at the documents and github comments, none of the approaches seem to work using 3.7.1 and 4.12.9.

For example, I looked at the approach mentioned here (Best way to save and load measurements from external data store · Issue #1800 · OHIF/Viewers · GitHub)

but the OHIF object does not exist.

Any help on this would be appreciated.

in OHIF v3, check out Measurement Tracking | OHIF