Methods
Screenshot
captureScreenshot
takes a screenshot of the viewer in png format example usage const options = { width 1024, height 768, }; const imagedatapromise = viewer2d capturescreenshot(options); parameters options options for the screenshot type required object yes properties name type required description height number yes height of the screenshot in pixels width number yes width of the screenshot in pixels return value promise that resolves to the base64 encoded string of the png image type promise => string