Merge pull request #2676 from bennlich/patch-1

Update viewer.addOverlay doc
This commit is contained in:
Ian Gilman 2025-01-31 09:38:38 -08:00 committed by GitHub
commit b22b689dae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2222,8 +2222,9 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
/**
* Adds an html element as an overlay to the current viewport. Useful for
* highlighting words or areas of interest on an image or other zoomable
* interface. The overlays added via this method are removed when the viewport
* is closed which include when changing page.
* interface. Unless the viewer has been configured with the preserveOverlays
* option, overlays added via this method are removed when the viewport
* is closed (including in sequence mode when changing page).
* @method
* @param {Element|String|Object} element - A reference to an element or an id for
* the element which will be overlaid. Or an Object specifying the configuration for the overlay.