comparison Applications/StoneWebViewer/WebApplication/app.js @ 1989:e8b9a2ba1df1

Added left/right rotation buttons
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Oct 2022 20:59:59 +0100
parents ba45e1b0812a
children 317a53d4fdc6
comparison
equal deleted inserted replaced
1988:3c84c34322d7 1989:e8b9a2ba1df1
897 if (canvas != '') { 897 if (canvas != '') {
898 stone.FlipY(canvas); 898 stone.FlipY(canvas);
899 } 899 }
900 }, 900 },
901 901
902 RotateLeft: function() {
903 var canvas = this.GetActiveCanvas();
904 if (canvas != '') {
905 stone.RotateLeft(canvas);
906 }
907 },
908
909 RotateRight: function() {
910 var canvas = this.GetActiveCanvas();
911 if (canvas != '') {
912 stone.RotateRight(canvas);
913 }
914 },
915
902 ApplyPreferences: function() { 916 ApplyPreferences: function() {
903 this.modalPreferences = false; 917 this.modalPreferences = false;
904 918
905 if ((stone.IsSoftwareRendering() != 0) != this.settingSoftwareRendering) { 919 if ((stone.IsSoftwareRendering() != 0) != this.settingSoftwareRendering) {
906 document.location.reload(); 920 document.location.reload();