mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 10:49:43 +00:00
25 lines
521 B
JavaScript
25 lines
521 B
JavaScript
/*\
|
|
title: $:/core/modules/editor/operations/bitmap/rotate-left.js
|
|
type: application/javascript
|
|
module-type: bitmapeditoroperation
|
|
|
|
Bitmap editor operation to rotate the image left by 90 degrees
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
exports["rotate-left"] = function(event) {
|
|
// Rotate the canvas left by 90 degrees
|
|
this.rotateCanvasLeft();
|
|
// Update the input controls
|
|
this.refreshToolbar();
|
|
// Save the image into the tiddler
|
|
this.saveChanges();
|
|
};
|
|
|
|
})();
|