CoreFiles by mySites.guru
crop.es6.min.js1 lines, 2,221 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
6745759d98225c93c354997004cc9b98
sha1
9f1c2a7db53c6990c6134d7674b6c26e3849b004
sha256
18a3e7784ce246c20e6fbbefb981ca32aad3c7f90d9d0f6b92095728c9c4ff27
Joomla=window.Joomla||{},Joomla.MediaManager=Joomla.MediaManager||{},Joomla.MediaManager.Edit=Joomla.MediaManager.Edit||{},(()=>{"use strict";const a=()=>{const a=document.getElementById("image-preview");Joomla.MediaManager.Edit.crop.cropper=new Cropper(a,{viewMode:1,responsive:!0,restore:!0,autoCrop:!0,movable:!1,zoomable:!1,rotatable:!1,autoCropArea:1,minContainerWidth:a.offsetWidth,minContainerHeight:a.offsetHeight,crop(a){var b=Math.round;document.getElementById("jform_crop_x").value=b(a.detail.x),document.getElementById("jform_crop_y").value=b(a.detail.y),document.getElementById("jform_crop_width").value=b(a.detail.width),document.getElementById("jform_crop_height").value=b(a.detail.height);const c="jpg"===Joomla.MediaManager.Edit.original.extension?"jpeg":Joomla.MediaManager.Edit.original.extension,d=document.getElementById("jform_crop_quality").value;Joomla.MediaManager.Edit.current.contents=this.cropper.getCroppedCanvas().toDataURL(`image/${c}`,d),window.dispatchEvent(new Event("mediaManager.history.point"))}}),document.getElementById("jform_crop_x").addEventListener("change",a=>{Joomla.MediaManager.Edit.crop.cropper.setData({x:parseInt(a.target.value,10)})}),document.getElementById("jform_crop_y").addEventListener("change",a=>{Joomla.MediaManager.Edit.crop.cropper.setData({y:parseInt(a.target.value,10)})}),document.getElementById("jform_crop_width").addEventListener("change",a=>{Joomla.MediaManager.Edit.crop.cropper.setData({width:parseInt(a.target.value,10)})}),document.getElementById("jform_crop_height").addEventListener("change",a=>{Joomla.MediaManager.Edit.crop.cropper.setData({height:parseInt(a.target.value,10)})}),document.getElementById("jform_aspectRatio").addEventListener("change",a=>{Joomla.MediaManager.Edit.crop.cropper.setAspectRatio(a.target.value)}),a.addEventListener("load",()=>{const b=[].slice.call(document.querySelectorAll(".crop-aspect-ratio-option")),c=a.naturalWidth/a.naturalHeight;!Number.isNaN(c)&&Number.isFinite(c)&&(b[0].value=c),Joomla.MediaManager.Edit.crop.cropper.setAspectRatio(b[0].value)})};Joomla.MediaManager.Edit.crop={Activate(b){a(b)},Deactivate(){Joomla.MediaManager.Edit.crop.cropper&&Joomla.MediaManager.Edit.crop.cropper.destroy()}}})();

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