Skip to content

Commit

Permalink
feat(EraserTool): add eraserTool to @ohif/extension-cornerstone (#912)
Browse files Browse the repository at this point in the history
This includes `ui` changes in the same commit, so it will see a feature bump as well
  • Loading branch information
romulobordezani authored and dannyrb committed Sep 11, 2019
1 parent c221dd8 commit 698d274
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/cornerstone/src/toolbarModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ const definitions = [
type: TOOLBAR_BUTTON_TYPES.COMMAND,
commandName: 'clearAnnotations',
},
{
id: 'Eraser',
label: 'Eraser',
icon: 'eraser',
//
type: TOOLBAR_BUTTON_TYPES.COMMAND,
commandName: 'setToolActive',
commandOptions: { toolName: 'Eraser' },
},
],
},
];
Expand Down
2 changes: 2 additions & 0 deletions platform/ui/src/elements/Icon/getIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import edit from './icons/edit.svg';
import ellipseCircle from './icons/ellipse-circle.svg';
import ellipseH from './icons/ellipse-h.svg';
import ellipseV from './icons/ellipse-v.svg';
import eraser from './icons/eraser.svg';
import exclamationCircle from './icons/exclamation-circle.svg';
import exclamationTriangle from './icons/exclamation-triangle.svg';
import fastBackward from './icons/fast-backward.svg';
Expand Down Expand Up @@ -110,6 +111,7 @@ const ICONS = {
'create-comment': createComment,
'create-screen-capture': createScreenCapture,
edit,
eraser,
'fast-backward': fastBackward,
'fast-forward': fastForward,
'object-group': objectGroup,
Expand Down
15 changes: 15 additions & 0 deletions platform/ui/src/elements/Icon/icons/eraser.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 698d274

Please sign in to comment.