Using the Ruler.Back to Contents First, make sure you have:
(as of June 2020) This isn't a true tutorial, just pointers: Look in scripts/ruler.jsfor a simple 2D ruler. Call rulerStart( consoleID, start, optional widthInInches) where:
You will need to add rulerClick() to your window.viewerListenerInput
so that the ruler knows when to place a marker.
You can check whether the ruler is active at any time with rulerInactive() .
make sure to turn the ruler off ( rulerStart(consoleID, false); ) when you leave a page, otherwise the ruler stays active.
|