feat(actions): simplify action corner api through the toolbarService (#5033)

This commit is contained in:
Alireza authored and GitHub committed 2025-05-15 12:08:12 -04:00
1 parent f71b88e639
commit 7c15bb8901
246 files changed
+7930 -4270

No files matched your search

@@ -79,6 +79,9 @@ import OrientationSwitch from './Sources/OrientationSwitch';
import LayerBackground from './Sources/LayerBackground';
import LayerForeground from './Sources/LayerForeground';
import LayerSegmentation from './Sources/LayerSegmentation';
import WindowLevelAdvanced from './Sources/WindowLevelAdvanced';
import Opacity from './Sources/Opacity';
import Threshold from './Sources/Threshold';
import {
Tool3DRotate,
ToolAngle,
@@ -583,6 +586,9 @@ export const Icons = {
OHIFLogoColorDarkBackground,
Magnifier,
Pencil,
WindowLevelAdvanced,
Opacity,
Threshold,
//
//
//
@@ -3,16 +3,24 @@ import type { IconProps } from '../types';
export const Close = (props: IconProps) => (
<svg
width="12"
height="12"
viewBox="0 0 12 12"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M12 1.05 10.95 0 6 4.95 1.05 0 0 1.05 4.95 6 0 10.95 1.05 12 6 7.05 10.95 12 12 10.95 7.05 6z"
fill="currentColor"
fillRule="evenodd"
d="M8 8L16.19 16.19"
stroke="currentColor"
strokeWidth="1.25"
strokeLinecap="round"
/>
<path
d="M16.1904 8L8.00043 16.19"
stroke="currentColor"
strokeWidth="1.25"
strokeLinecap="round"
/>
</svg>
);
@@ -0,0 +1,106 @@
import React from 'react';
import type { IconProps } from '../types';
export const Opacity = (props: IconProps) => (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<rect
x="5.5"
y="6"
width="13"
height="13"
rx="2.5"
stroke="currentColor"
/>
<g opacity="0.6">
<rect
x="15.5"
y="15.5"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="12.75"
y="15.5"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="10"
y="15.5"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="7.25"
y="15.5"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="15.5"
y="13"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="12.75"
y="13"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="10"
y="13"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="15.5"
y="10.5"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="12.75"
y="10.5"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
<rect
x="15.5"
y="8"
width="1.5"
height="1.5"
rx="0.75"
fill="currentColor"
/>
</g>
</svg>
);
export default Opacity;
@@ -0,0 +1,38 @@
import React from 'react';
import type { IconProps } from '../types';
export const Threshold = (props: IconProps) => (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M18 17L15 17"
stroke="currentColor"
strokeWidth="1.25"
strokeLinecap="round"
/>
<path
d="M13 17H6"
stroke="currentColor"
strokeWidth="1.25"
strokeLinecap="round"
/>
<path
d="M13 19L13 15"
stroke="currentColor"
strokeWidth="1.25"
strokeLinecap="round"
/>
<path
d="M8.49512 13.0464C8.10547 13.0464 7.8689 12.7959 7.8689 12.3784V7.72119H6.52832C6.21753 7.72119 5.99023 7.49854 5.99023 7.19702C5.99023 6.89087 6.21753 6.66821 6.52832 6.66821H10.4666C10.782 6.66821 11.0046 6.88623 11.0046 7.19702C11.0046 7.50317 10.782 7.72119 10.4666 7.72119H9.12134V12.3784C9.12134 12.7913 8.88013 13.0464 8.49512 13.0464Z"
fill="currentColor"
/>
</svg>
);
export default Threshold;
@@ -0,0 +1,30 @@
import React from 'react';
import type { IconProps } from '../types';
export const WindowLevelAdvanced = (props: IconProps) => (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M16.8555 8.05566L7.85547 17.0557"
stroke="currentColor"
strokeWidth="1.25"
strokeLinecap="round"
/>
<path
d="M6.30518 10.4448L5.06152 5.99316C5.02197 5.84375 5 5.68115 5 5.58447C5 5.2417 5.24609 5 5.59766 5C5.91846 5 6.11621 5.21533 6.21729 5.66797L7.07422 9.41211H7.13135L8.04541 5.66357C8.15527 5.20215 8.34863 5 8.7002 5C9.05615 5 9.25391 5.21094 9.36377 5.66357L10.2778 9.41211H10.335L11.1699 5.66797C11.2666 5.22412 11.4731 5 11.7983 5C12.1455 5 12.3872 5.2373 12.3872 5.57568C12.3872 5.67676 12.3696 5.83496 12.3433 5.93604L11.0996 10.4448C10.9722 10.9019 10.77 11.082 10.4053 11.082C10.0229 11.082 9.79004 10.8887 9.66699 10.4185L8.72656 6.86328H8.67822L7.73779 10.4448C7.62354 10.8755 7.38623 11.082 7.02148 11.082C6.66113 11.082 6.44141 10.9282 6.30518 10.4448Z"
fill="currentColor"
/>
<path
d="M18.2935 18.5503C18.2935 18.8535 18.0737 19.0557 17.7617 19.0557H15.2832C14.7515 19.0557 14.4922 18.8052 14.4922 18.2954V13.6548C14.4922 13.2505 14.7075 13.0132 15.0854 13.0132C15.459 13.0132 15.6787 13.2505 15.6787 13.6548V18.0449H17.7617C18.0737 18.0449 18.2935 18.2515 18.2935 18.5503Z"
fill="currentColor"
/>
</svg>
);
export default WindowLevelAdvanced;