Using OpenSeadragon Plugins in Angular
问题 I'm trying to use a plugin for OpenSeadragon library in Angular. Plugin is OpenSeadragonSelection. However, it is pure JS and this causes some problems. I tried to integrate it in my project exactly as described. However, when I try var selection = viewer.selection(options); I get the following error: Property 'selection' does not exist on type 'Viewer' In the browser console I get: Uncaught ReferenceError: require is not defined at openseadragonselection.js:1 Even though I added the script