* fix: 🐛 Update ohif pdf extension to optionally use pdfjs Update ohif pdf extension of optionally use pdfjs Closes: #1049 * Update branch and fix scrolling * Dynamically import component * Fix wrong file change * Fix import * Add multi opened pdf configuration * Refactor connected component * Specify worker explicitly * Specify worker explicitly * CR Update: Remove dead code * CR Update: Refactor state * CR Update: use refs * CR Update: use refs
22 lines
559 B
JavaScript
22 lines
559 B
JavaScript
import asyncComponent from './asyncComponent.js';
|
|
import OHIFDicomPDFSopClassHandler from './OHIFDicomPDFSopClassHandler.js';
|
|
|
|
const ConnectedOHIFDicomPDFViewer = asyncComponent(() =>
|
|
import(
|
|
/* webpackChunkName: "ConnectedOHIFDicomPDFViewer" */ './ConnectedOHIFDicomPDFViewer'
|
|
)
|
|
);
|
|
|
|
export default {
|
|
/**
|
|
* Only required property. Should be a unique value across all extensions.
|
|
*/
|
|
id: 'pdf',
|
|
getViewportModule() {
|
|
return ConnectedOHIFDicomPDFViewer;
|
|
},
|
|
getSopClassHandlerModule() {
|
|
return OHIFDicomPDFSopClassHandler;
|
|
},
|
|
};
|