feat(PDF):Add PDF viewer (#2730)

Display DICOM encapsulated PDF documents in a PDF viewer.
Addressed the remaining PR comments, and am merging this.
This commit is contained in:
Bill Wallace authored and GitHub committed 2022-04-04 09:48:14 -04:00
1 parent f3822f98a3
commit 82df3eac03
23 files changed
+376 -71

No files matched your search

-5
View File
@@ -17,7 +17,6 @@ import {
errorHandler
// utils,
} from '@ohif/core';
import ConfigPoint from 'config-point';
/**
* @param {object|func} appConfigOrFunc - application configuration, or a function that returns application configuration
@@ -50,10 +49,6 @@ function appInit(appConfigOrFunc, defaultExtensions) {
appConfig,
});
// Load the default theme settings
const defaultTheme = config && config.defaultTheme || 'theme';
ConfigPoint.load(defaultTheme, '/theme', 'theme');
servicesManager.registerServices([
UINotificationService,
UIModalService,
+2 -1
View File
@@ -24,6 +24,7 @@ import OHIFCornerstoneExtension from '@ohif/extension-cornerstone';
import OHIFMeasurementTrackingExtension from '@ohif/extension-measurement-tracking';
import OHIFDICOMSRExtension from '@ohif/extension-dicom-sr';
import OHIFDICOMVIDEOExtension from '@ohif/extension-dicom-video';
import OHIFDICOMPDFExtension from '@ohif/extension-dicom-pdf';
/** Combine our appConfiguration and "baked-in" extensions */
const appProps = {
@@ -34,11 +35,11 @@ const appProps = {
OHIFMeasurementTrackingExtension,
OHIFDICOMSRExtension,
OHIFDICOMVIDEOExtension,
OHIFDICOMPDFExtension,
],
};
/** Create App */
const app = React.createElement(App, appProps, null);
/** Render */
ReactDOM.render(app, document.getElementById('root'));