feat(ViewportActionMenu): window level per viewport / new patient info / colorbars/ 3D presets and 3D volume rendering (#3963)
Co-authored-by: Joe Boccanfuso <109477394+jbocce@users.noreply.github.com>
This commit is contained in:
1 parent
07301fc020
commit
b7f90e3951
164 files changed
+5887
-932
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import React from 'react';
|
||||
import Icon from '../Icon';
|
||||
import classNames from 'classnames';
|
||||
|
||||
const arrowClasses =
|
||||
'cursor-pointer flex items-center justify-center shrink-0 text-primary-light active:text-white hover:bg-secondary-light/60 rounded';
|
||||
|
||||
type ViewportActionArrowsProps = {
|
||||
onArrowsClick: (direction: number) => void;
|
||||
className: string;
|
||||
};
|
||||
|
||||
function ViewportActionArrows({ onArrowsClick, className }: ViewportActionArrowsProps) {
|
||||
return (
|
||||
// The arrows are only visible when hover over the viewport.
|
||||
<div className={classNames(className, 'flex')}>
|
||||
<div className={arrowClasses}>
|
||||
<Icon
|
||||
name="prev-arrow"
|
||||
onClick={() => onArrowsClick(-1)}
|
||||
/>
|
||||
</div>
|
||||
<div className={arrowClasses}>
|
||||
<Icon
|
||||
name="next-arrow"
|
||||
onClick={() => onArrowsClick(1)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default ViewportActionArrows;
|
||||
@@ -0,0 +1,2 @@
|
||||
import ViewportActionArrows from './ViewportActionArrows';
|
||||
export default ViewportActionArrows;
|
||||
Reference in new issue
Block a user