Most JS files, all helpers and simple reconciliations
This commit is contained in:
1 parent
21400c5836
commit
9e69c43dda
58 files changed
+776
-1025
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { Session } from 'meteor/session';
|
||||
import { Viewerbase } from 'meteor/ohif:viewerbase';
|
||||
|
||||
Template.toolbarSection.helpers({
|
||||
// Returns true if the view shall be split in two viewports
|
||||
@@ -141,7 +142,7 @@ Template.toolbarSection.helpers({
|
||||
title: 'CINE',
|
||||
classes: 'imageViewerCommand',
|
||||
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-cineplay-toggle',
|
||||
disableFunction: hasMultipleFrames
|
||||
disableFunction: Viewerbase.viewportUtils.hasMultipleFrames
|
||||
});
|
||||
|
||||
const buttonData = [];
|
||||
@@ -168,11 +169,11 @@ Template.toolbarSection.helpers({
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
id: 'link',
|
||||
id: 'linkStackScroll',
|
||||
title: 'Link',
|
||||
classes: 'imageViewerCommand toolbarSectionButton nonAutoDisableState',
|
||||
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-link',
|
||||
disableFunction: isStackScrollLinkingDisabled
|
||||
disableFunction: Viewerbase.viewportUtils.isStackScrollLinkingDisabled
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Template } from 'meteor/templating';
|
||||
import { Session } from 'meteor/session';
|
||||
import { ReactiveDict } from 'meteor/reactive-dict';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import 'meteor/ohif:viewerbase';
|
||||
import { _ } from 'meteor/underscore';
|
||||
|
||||
Session.set('ViewerMainReady', false);
|
||||
@@ -32,15 +33,15 @@ Template.viewer.onCreated(() => {
|
||||
toolManager.setActiveTool('nonTarget');
|
||||
},
|
||||
// Viewport functions
|
||||
toggleCineDialog,
|
||||
clearTools,
|
||||
resetViewport,
|
||||
invert,
|
||||
flipV,
|
||||
flipH,
|
||||
rotateL,
|
||||
rotateR,
|
||||
link
|
||||
toggleCineDialog: OHIF.viewerbase.viewportUtils.toggleCineDialog,
|
||||
clearTools: OHIF.viewerbase.viewportUtils.clearTools,
|
||||
resetViewport: OHIF.viewerbase.viewportUtils.resetViewport,
|
||||
invert: OHIF.viewerbase.viewportUtils.invert,
|
||||
flipV: OHIF.viewerbase.viewportUtils.flipV,
|
||||
flipH: OHIF.viewerbase.viewportUtils.flipH,
|
||||
rotateL: OHIF.viewerbase.viewportUtils.rotateL,
|
||||
rotateR: OHIF.viewerbase.viewportUtils.rotateR,
|
||||
linkStackScroll: OHIF.viewerbase.viewportUtils.linkStackScroll
|
||||
});
|
||||
|
||||
if (ViewerData[contentId].loadedSeriesData) {
|
||||
|
||||
Reference in new issue
Block a user