wip on react transition 9
This commit is contained in:
1 parent
71b49e6766
commit
33fad2f317
23 files changed
+367
-227
No files matched your search
@@ -307,3 +307,5 @@ if (Meteor.settings &&
|
||||
HP.ProtocolStore.setStrategy(defaultStrategy);
|
||||
}
|
||||
|
||||
HP.clientOnlyStrategy = clientOnlyStrategy;
|
||||
|
||||
@@ -49,12 +49,12 @@ class ViewerMain extends Component {
|
||||
|
||||
const { studies } = this.props;
|
||||
this.studyPrefetcher = StudyPrefetcher.getInstance();
|
||||
this.studyPrefetcher.setStudies(studies);
|
||||
this.studyLoadingListener = StudyLoadingListener.getInstance();
|
||||
this.studyLoadingListener.clear();
|
||||
this.studyLoadingListener.addStudies(studies);
|
||||
|
||||
OHIF.viewerbase.layoutManager = new LayoutManager(this.setContents, studies);
|
||||
this.studyPrefetcher.setStudies(studies);
|
||||
|
||||
Session.set('OHIFViewerMainRendered', Math.random());
|
||||
}
|
||||
@@ -116,6 +116,6 @@ class ViewerMain extends Component {
|
||||
|
||||
ViewerMain.propTypes = {
|
||||
studies: PropTypes.array.isRequired
|
||||
}
|
||||
};
|
||||
|
||||
export default ViewerMain;
|
||||
+4
@@ -62,6 +62,10 @@ class ViewportOrientationMarkers extends Component {
|
||||
render() {
|
||||
const { imageId, viewport } = this.props;
|
||||
const markers = getOrientationMarkers(imageId, viewport);
|
||||
if (!markers) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="ViewportOrientationMarkers noselect">
|
||||
<div className="top-mid orientation-marker">
|
||||
|
||||
@@ -14,7 +14,7 @@ const PLUGIN_CORNERSTONE = 'cornerstone';
|
||||
|
||||
let isInteractingWithViewport = false;
|
||||
Meteor.startup(() => {
|
||||
const setInteracting = flag => {
|
||||
const setInteracting = (flag) => {
|
||||
isInteractingWithViewport = flag;
|
||||
};
|
||||
|
||||
@@ -102,7 +102,7 @@ export class LayoutManager {
|
||||
|
||||
// Get all the display sets for the viewer studies
|
||||
let displaySets = [];
|
||||
this.studies.forEach(study => {
|
||||
this.studies.forEach((study) => {
|
||||
study.displaySets.forEach(dSet => dSet.images.length && displaySets.push(dSet));
|
||||
});
|
||||
|
||||
@@ -174,14 +174,14 @@ export class LayoutManager {
|
||||
viewportData: []
|
||||
}, layoutProps);
|
||||
|
||||
this.viewportData.forEach(viewportData => {
|
||||
this.viewportData.forEach((viewportData) => {
|
||||
const viewportDataAndLayoutProps = $.extend(viewportData, layoutProps);
|
||||
|
||||
data.viewportData.push(viewportDataAndLayoutProps);
|
||||
});
|
||||
|
||||
const component = viewerComponents.GridLayout;
|
||||
this.setContents(component, data)
|
||||
this.setContents(component, data);
|
||||
|
||||
this.updateSession();
|
||||
|
||||
@@ -227,7 +227,7 @@ export class LayoutManager {
|
||||
...this.layoutProps
|
||||
};
|
||||
|
||||
this.setContents(component, data)
|
||||
this.setContents(component, data);
|
||||
|
||||
this.updateSession();
|
||||
}
|
||||
@@ -259,7 +259,7 @@ export class LayoutManager {
|
||||
};
|
||||
|
||||
const component = viewerComponents.GridLayout;
|
||||
this.setContents(component, data)
|
||||
this.setContents(component, data);
|
||||
|
||||
this.isZoomed = true;
|
||||
this.zoomedViewportIndex = viewportIndex;
|
||||
@@ -673,5 +673,4 @@ export class LayoutManager {
|
||||
isMultipleLayout() {
|
||||
return this.layoutProps.row !== 1 && this.layoutProps.columns !== 1;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user