CoreFiles by mySites.guru
rotate.min.js1 lines, 1,484 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
28e5182d4843e372aa5f142d20a075bc
sha1
554ae7f4bfa2c91ebf5fdc8db18522bc0fb90868
sha256
84950203c614b2cc681e8b1df4494415002955e79b5774ce951c15e6d34ff4be
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":"jpg",o=document.getElementById("jform_rotate_quality").value;Joomla.MediaManager.Edit.current.contents=a.toDataURL("image/"+n,o);var r=document.getElementById("image-preview");r.width=a.width,r.height=a.height,r.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(t){e(parseInt(t.target.value,10)),[].slice.call(document.querySelectorAll("#jform_rotate_distinct label")).forEach(function(e){e.classList.remove("active"),e.classList.remove("focus")})}),[].slice.call(document.querySelectorAll("#jform_rotate_distinct label")).forEach(function(t){t.addEventListener("click",function(t){e(parseInt(t.target.querySelector("input").value,10))})})},1e3)},Deactivate:function(){}}}();

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