CoreFiles by mySites.guru
rotate.min.js1 lines, 1,345 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
28486b700a78ca22dc18ef6d2069631b
sha1
045b6523e8c8e274b2057ad94fc8482120b85dcb
sha256
1f5593306ccfe6430c610929d49253973be01bb8ce005a72fbd1fbea7c002be9
Joomla=window.Joomla||{},Joomla.MediaManager=Joomla.MediaManager||{},Joomla.MediaManager.Edit=Joomla.MediaManager.Edit||{},function(){"use strict";var e=function(e){var t=document.getElementById("image-source"),a=document.createElement("canvas");e>=0&&e<45||e>=135&&e<225||e>=315&&e<=360?(a.width=t.width,a.height=t.height):(a.width=t.height,a.height=t.width);var i=a.getContext("2d");i.translate(a.width/2,a.height/2),i.rotate(e*Math.PI/180),i.drawImage(t,-t.width/2,-t.height/2);var n="jpg"===Joomla.MediaManager.Edit.original.extension?"jpeg":Joomla.MediaManager.Edit.original.extension,o=document.getElementById("jform_rotate_quality").value;Joomla.MediaManager.Edit.current.contents=a.toDataURL("image/"+n,o),(t=document.getElementById("image-preview")).width=a.width,t.height=a.height,t.src=Joomla.MediaManager.Edit.current.contents,document.getElementById("jform_rotate_a").value=e,window.dispatchEvent(new Event("mediaManager.history.point"))};Joomla.MediaManager.Edit.rotate={Activate:function(t){setTimeout(function(){document.getElementById("jform_rotate_a").addEventListener("input",function(){e(parseInt(this.value))});for(var t=document.querySelectorAll("#jform_rotate_distinct label"),a=0;a<t.length;a++)t[a].addEventListener("click",function(t){e(parseInt(this.querySelector("input").value))})},1e3)},Deactivate:function(){}}}();

No other release has this exact content. See every version of this file.