Hi! I'd love to be able to hook into a IIIFEvents.DOWNLOAD event when clicking on a download link on the openseadragon download dialogue. Inspecting the code, it looks like it would be implemented pretty simply as a callback similar to:
|
onDownloadSelection: () => { |
|
this.closeActiveDialogue(); |
|
this.extensionHost.publish(IIIFEvents.SHOW_MULTISELECT_DIALOGUE); |
|
}, |
Then, we'd just need to add the callback in this button's onclick:
|
<button |
|
onClick={() => { |
|
window.open(rendering.id, "_blank"); |
|
}} |
|
> |
Would this make sense? Happy to implement it myself, but wanted to open this up to see if this is a sensible approach.
Hi! I'd love to be able to hook into a
IIIFEvents.DOWNLOADevent when clicking on a download link on the openseadragon download dialogue. Inspecting the code, it looks like it would be implemented pretty simply as a callback similar to:universalviewer/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts
Lines 698 to 701 in 3a3ed4e
Then, we'd just need to add the callback in this button's onclick:
universalviewer/src/content-handlers/iiif/extensions/uv-openseadragon-extension/DownloadDialogue.tsx
Lines 505 to 509 in 3b0c13c
Would this make sense? Happy to implement it myself, but wanted to open this up to see if this is a sensible approach.