LT-301: Replace Rotate functionality to Rotate Left and Rotate Right
This commit is contained in:
parent
3c831c5d5a
commit
debc294f33
@ -129,10 +129,17 @@ Template.toolbarSection.helpers({
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
id: 'rotate',
|
||||
title: 'Rotate',
|
||||
classes: 'imageViewerTool toolbarSectionButton',
|
||||
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate'
|
||||
id: 'rotateL',
|
||||
title: 'Rotate Left',
|
||||
classes: 'imageViewerCommand toolbarSectionButton',
|
||||
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate-left'
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
id: 'rotateR',
|
||||
title: 'Rotate Right',
|
||||
classes: 'imageViewerCommand toolbarSectionButton',
|
||||
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate-right'
|
||||
});
|
||||
|
||||
buttonData.push({
|
||||
|
||||
@ -34,7 +34,9 @@ Template.viewer.onCreated(() => {
|
||||
resetViewport,
|
||||
invert,
|
||||
flipV,
|
||||
flipH
|
||||
flipH,
|
||||
rotateL,
|
||||
rotateR
|
||||
});
|
||||
|
||||
if (ViewerData[contentId].loadedSeriesData) {
|
||||
|
||||
@ -155,6 +155,14 @@
|
||||
<title>Rotate</title>
|
||||
<path d="M24 4v7c0 0.547-0.453 1-1 1h-7c-0.406 0-0.766-0.25-0.922-0.625-0.156-0.359-0.078-0.797 0.219-1.078l2.156-2.156c-1.469-1.359-3.406-2.141-5.453-2.141-4.406 0-8 3.594-8 8s3.594 8 8 8c2.484 0 4.781-1.125 6.312-3.109 0.078-0.109 0.219-0.172 0.359-0.187 0.141 0 0.281 0.047 0.391 0.141l2.141 2.156c0.187 0.172 0.187 0.469 0.031 0.672-2.281 2.75-5.656 4.328-9.234 4.328-6.609 0-12-5.391-12-12s5.391-12 12-12c3.078 0 6.062 1.234 8.266 3.313l2.031-2.016c0.281-0.297 0.719-0.375 1.094-0.219 0.359 0.156 0.609 0.516 0.609 0.922z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-tools-rotate-right" width="24" height="24" viewBox="0 0 24 24">
|
||||
<title>Rotate Right</title>
|
||||
<path d="M16.875 15.469c0.563-0.75 0.891-1.594 1.031-2.484h2.016c-0.188 1.406-0.703 2.719-1.594 3.891zM12.984 17.906c0.891-0.141 1.734-0.469 2.484-1.031l1.453 1.453c-1.172 0.891-2.531 1.406-3.938 1.594v-2.016zM19.922 11.016h-2.016c-0.141-0.891-0.469-1.734-1.031-2.484l1.453-1.406c0.891 1.172 1.406 2.484 1.594 3.891zM15.563 5.531l-4.547 4.453v-3.891c-2.859 0.469-5.016 2.953-5.016 5.906s2.156 5.438 5.016 5.906v2.016c-3.938-0.469-7.031-3.844-7.031-7.922s3.094-7.453 7.031-7.922v-3.094z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-tools-rotate-left" width="24" height="24" viewBox="0 0 24 24">
|
||||
<title>Rotate left</title>
|
||||
<path d="M12.984 4.078c3.938 0.469 7.031 3.844 7.031 7.922s-3.094 7.453-7.031 7.922v-2.016c2.859-0.469 5.016-2.953 5.016-5.906s-2.156-5.438-5.016-5.906v3.891l-4.547-4.453 4.547-4.547v3.094zM7.078 18.328l1.453-1.453c0.75 0.563 1.594 0.891 2.484 1.031v2.016c-1.406-0.188-2.766-0.703-3.938-1.594zM6.094 12.984c0.141 0.891 0.469 1.734 0.984 2.484l-1.406 1.406c-0.891-1.172-1.406-2.484-1.594-3.891h2.016zM7.125 8.531c-0.516 0.75-0.891 1.594-1.031 2.484h-2.016c0.188-1.406 0.75-2.719 1.641-3.891z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-tools-cineplay-toggle" width="28" height="28" viewBox="0 0 28 28">
|
||||
<title>Cineplay Toggle</title>
|
||||
<path d="M11.109 17.625l7.562-3.906-7.562-3.953v7.859zM14 4.156c5.891 0 9.797 0.281 9.797 0.281 0.547 0.063 1.75 0.063 2.812 1.188 0 0 0.859 0.844 1.109 2.781 0.297 2.266 0.281 4.531 0.281 4.531v2.125s0.016 2.266-0.281 4.531c-0.25 1.922-1.109 2.781-1.109 2.781-1.062 1.109-2.266 1.109-2.812 1.172 0 0-3.906 0.297-9.797 0.297v0c-7.281-0.063-9.516-0.281-9.516-0.281-0.625-0.109-2.031-0.078-3.094-1.188 0 0-0.859-0.859-1.109-2.781-0.297-2.266-0.281-4.531-0.281-4.531v-2.125s-0.016-2.266 0.281-4.531c0.25-1.937 1.109-2.781 1.109-2.781 1.062-1.125 2.266-1.125 2.812-1.188 0 0 3.906-0.281 9.797-0.281v0z"></path>
|
||||
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
@ -234,4 +234,6 @@ Package.onUse(function(api) {
|
||||
api.export('invert', 'client');
|
||||
api.export('flipV', 'client');
|
||||
api.export('flipH', 'client');
|
||||
api.export('rotateR', 'client');
|
||||
api.export('rotateL', 'client');
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user