feat(EraserTool): add eraserTool to @ohif/extension-cornerstone (#912)
This includes `ui` changes in the same commit, so it will see a feature bump as well
This commit is contained in:
parent
c221dd86d2
commit
698d274c64
@ -186,6 +186,15 @@ const definitions = [
|
|||||||
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
||||||
commandName: 'clearAnnotations',
|
commandName: 'clearAnnotations',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'Eraser',
|
||||||
|
label: 'Eraser',
|
||||||
|
icon: 'eraser',
|
||||||
|
//
|
||||||
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
||||||
|
commandName: 'setToolActive',
|
||||||
|
commandOptions: { toolName: 'Eraser' },
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -30,6 +30,7 @@ import edit from './icons/edit.svg';
|
|||||||
import ellipseCircle from './icons/ellipse-circle.svg';
|
import ellipseCircle from './icons/ellipse-circle.svg';
|
||||||
import ellipseH from './icons/ellipse-h.svg';
|
import ellipseH from './icons/ellipse-h.svg';
|
||||||
import ellipseV from './icons/ellipse-v.svg';
|
import ellipseV from './icons/ellipse-v.svg';
|
||||||
|
import eraser from './icons/eraser.svg';
|
||||||
import exclamationCircle from './icons/exclamation-circle.svg';
|
import exclamationCircle from './icons/exclamation-circle.svg';
|
||||||
import exclamationTriangle from './icons/exclamation-triangle.svg';
|
import exclamationTriangle from './icons/exclamation-triangle.svg';
|
||||||
import fastBackward from './icons/fast-backward.svg';
|
import fastBackward from './icons/fast-backward.svg';
|
||||||
@ -110,6 +111,7 @@ const ICONS = {
|
|||||||
'create-comment': createComment,
|
'create-comment': createComment,
|
||||||
'create-screen-capture': createScreenCapture,
|
'create-screen-capture': createScreenCapture,
|
||||||
edit,
|
edit,
|
||||||
|
eraser,
|
||||||
'fast-backward': fastBackward,
|
'fast-backward': fastBackward,
|
||||||
'fast-forward': fastForward,
|
'fast-forward': fastForward,
|
||||||
'object-group': objectGroup,
|
'object-group': objectGroup,
|
||||||
|
|||||||
15
platform/ui/src/elements/Icon/icons/eraser.svg
Normal file
15
platform/ui/src/elements/Icon/icons/eraser.svg
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 2048 1792"
|
||||||
|
aria-labelledby="eraser"
|
||||||
|
width="1em"
|
||||||
|
height="1em"
|
||||||
|
fill="currentColor"
|
||||||
|
>
|
||||||
|
<title id="title">Eraser</title>
|
||||||
|
<path transform="translate(0,1792) scale(1,-1)" fill="ACTIVE_COLOR" d="M960 1408l336-384h-768l-336 384h768zm1013-1077q15
|
||||||
|
34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38
|
||||||
|
0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38
|
||||||
|
0 69.5 20.5t47.5 54.5z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 492 B |
Loading…
Reference in New Issue
Block a user