# HG changeset patch # User Sebastien Jodogne # Date 1667246399 -3600 # Node ID e8b9a2ba1df1e0ad7c8f1a32b7c31011d6bca4d1 # Parent 3c84c34322d7cdd914c5267683a22671188d2903 Added left/right rotation buttons diff -r 3c84c34322d7 -r e8b9a2ba1df1 Applications/StoneWebViewer/NEWS --- a/Applications/StoneWebViewer/NEWS Mon Oct 31 17:45:53 2022 +0100 +++ b/Applications/StoneWebViewer/NEWS Mon Oct 31 20:59:59 2022 +0100 @@ -5,6 +5,7 @@ - Pixel probe - Rectangle probe - Ellipse probe +* Added left/right rotation buttons * Added vertical slider showing position of the current frame inside the series * Display of orientation markers * The text field with the instance number is editable to go to a specific instance diff -r 3c84c34322d7 -r e8b9a2ba1df1 Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Mon Oct 31 17:45:53 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Mon Oct 31 20:59:59 2022 +0100 @@ -899,6 +899,20 @@ } }, + RotateLeft: function() { + var canvas = this.GetActiveCanvas(); + if (canvas != '') { + stone.RotateLeft(canvas); + } + }, + + RotateRight: function() { + var canvas = this.GetActiveCanvas(); + if (canvas != '') { + stone.RotateRight(canvas); + } + }, + ApplyPreferences: function() { this.modalPreferences = false; diff -r 3c84c34322d7 -r e8b9a2ba1df1 Applications/StoneWebViewer/WebApplication/index.html --- a/Applications/StoneWebViewer/WebApplication/index.html Mon Oct 31 17:45:53 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/index.html Mon Oct 31 20:59:59 2022 +0100 @@ -485,6 +485,22 @@
+
+ +
+ +
+ +
+