From 648828fccfea54c39c55f7a5e9b1f916eada7328 Mon Sep 17 00:00:00 2001 From: JoyZhou Date: Fri, 5 Mar 2021 13:19:06 +0800 Subject: [PATCH] fix: add draw undo/redo & closed issue #136 --- src/app/dwv/dwv.component.html | 15 ++++++++++----- src/app/dwv/dwv.component.ts | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/app/dwv/dwv.component.html b/src/app/dwv/dwv.component.html index 2897af41..3d6d17c5 100644 --- a/src/app/dwv/dwv.component.html +++ b/src/app/dwv/dwv.component.html @@ -5,10 +5,13 @@ arrow_drop_down - + + +
@@ -18,7 +21,9 @@

Powered by - dwv - {{ versions.dwv }} - and Angular {{ versions.angular }}

- + dwv + {{ versions.dwv }} + and Angular {{ versions.angular }} +

+ + \ No newline at end of file diff --git a/src/app/dwv/dwv.component.ts b/src/app/dwv/dwv.component.ts index be96a3d2..bc6c268a 100644 --- a/src/app/dwv/dwv.component.ts +++ b/src/app/dwv/dwv.component.ts @@ -168,6 +168,20 @@ export class DwvComponent implements OnInit { } } + /** + * handle an undo event + */ + onUndo(){ + this.dwvApp.undo(); + } + + /** + * handle a redo event + */ + onRedo(){ + this.dwvApp.redo(); + } + /** * Open the DICOM tags dialog. */