Skip to content

Commit 5655dd9

Browse files
committed
undo btn
1 parent 3c92bdb commit 5655dd9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/labeling/roiMarking.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,14 @@ function initCore() {
423423
stopLabeling();
424424
},
425425
},
426+
{
427+
id: 'undo',
428+
icon: 'undo',
429+
title: 'undo',
430+
type: 'btn',
431+
value: 'undo',
432+
callback: undoThisPen,
433+
},
426434
// {
427435
// id: 'slide_download',
428436
// icon: 'file_download',
@@ -1203,6 +1211,10 @@ let prevLabel = false
12031211
startLabeling(lymphLabel)
12041212
}
12051213

1214+
function undoThisPen(){
1215+
$CAMIC.viewer.canvasDrawInstance.clear();
1216+
}
1217+
12061218
// at any point, data is in
12071219

12081220

0 commit comments

Comments
 (0)