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:
Erik Ziegler authored and GitHub committed 2018-08-08 18:00:53 +02:00
1 parent ced47c765f
commit 53cd12a16a
18 files changed
+708 -562

No files matched your search

@@ -65,8 +65,8 @@ Template.imageControls.events({
// Using the slider in an inactive viewport
// should cause that viewport to become active
const $slider = $(event.currentTarget);
const newActiveElement = $slider.parents('.viewportContainer').find('.imageViewerViewport');
setActiveViewport(newActiveElement);
const viewportContainer = $slider.parents('.viewportContainer');
setActiveViewport(viewportContainer);
// Subtract 1 here since the slider goes from 1 to N images
// But the stack indexing starts at 0