Creating timepoint browser

This commit is contained in:
Bruno Alves de Faria committed 2017-10-25 22:18:42 -02:00
1 parent eb372bed03
commit fd9cfed8e9
23 files changed
+204 -132

No files matched your search

+2 -1
View File
@@ -39,6 +39,7 @@ ohif:core
ohif:header
ohif:cornerstone
ohif:viewerbase
ohif:studies
ohif:study-list
ohif:dicom-services
ohif:hanging-protocols
@@ -63,4 +64,4 @@ zuuk:stale-session
dangrossman:bootstrap-daterangepicker
johdirr:meteor-git-rev
u2622:persistent-session@0.4.4
shell-server@0.2.3
shell-server@0.2.3
+1
View File
@@ -100,6 +100,7 @@ ohif:metadata@0.0.1
ohif:polyfill@0.0.1
ohif:select-tree@0.0.1
ohif:servers@0.0.1
ohif:studies@0.0.1
ohif:study-list@0.0.1
ohif:themes@0.0.1
ohif:themes-common@0.0.1
+3
View File
@@ -0,0 +1,3 @@
<body>
<div id="notificationArea" class="notification-area"></div>
</body>
@@ -1,6 +1,8 @@
<template name="viewerSection">
<div class="viewerSection">
<div class="sidebarMenu sidebar-left {{#if leftSidebarOpen}}sidebar-open{{/if}}">
{{>timepointBrowserList (extend timepointBrowserData scrollableClass='p-a-1')}}
<hr>
{{>studyTimepointBrowser (clone this)}}
</div>
<div class="mainContent {{#if leftSidebarOpen}}sidebar-left-open{{/if}} {{#if rightSidebarOpen}}sidebar-right-open{{/if}}">
@@ -1,19 +1,31 @@
import { Template } from 'meteor/templating';
Template.viewerSection.events({
'transitionend .sidebarMenu'(event) {
if (!event.target.classList.contains('sidebarMenu')) {
return;
}
window.ResizeViewportManager.handleResize();
}
});
'transitionend .sidebarMenu'(event) {
if (!event.target.classList.contains('sidebarMenu')) {
return;
}
window.ResizeViewportManager.handleResize();
}
});
Template.viewerSection.helpers({
leftSidebarOpen() {
return Template.instance().data.state.get('leftSidebar');
return Template.instance().data.state.get('leftSidebar');
},
rightSidebarOpen() {
return Template.instance().data.state.get('rightSidebar');
return Template.instance().data.state.get('rightSidebar');
},
timepointBrowserData() {
const instance = Template.instance();
const { timepointApi } = instance.data;
const timepoints = timepointApi.all();
return {
timepointApi,
timepoints
};
}
});
});