feat(plugins): Add initial version of ViewportPlugin class (#242)
* Add initial version of ViewportPlugin class * Move entrypoints from OHIFPlugin to OHIF.plugins * Add URL route to DICOMWeb server for Standalone Viewer
This commit is contained in:
1 parent
ced47c765f
commit
53cd12a16a
18 files changed
+708
-562
No files matched your search
@@ -30,7 +30,7 @@ Template.gridLayout.helpers({
|
||||
}
|
||||
|
||||
const actualRow = Math.floor(index / columns);
|
||||
|
||||
|
||||
if ( actualRow === 0 ) {
|
||||
return TOP_CLASS;
|
||||
}
|
||||
@@ -40,7 +40,13 @@ Template.gridLayout.helpers({
|
||||
|
||||
return MIDDLE_CLASS;
|
||||
},
|
||||
|
||||
|
||||
activeClass(index) {
|
||||
if (Session.get('activeViewport') === index) {
|
||||
return 'active';
|
||||
};
|
||||
},
|
||||
|
||||
// Return the viewports list
|
||||
viewports() {
|
||||
const instance = Template.instance();
|
||||
|
||||
Reference in new issue
Block a user