Loading src/components/editors/ImageResourceEditor.vue +17 −5 Original line number Diff line number Diff line Loading @@ -420,7 +420,10 @@ export default { this.maxHeight = document.querySelector('.jama-image-editor').clientHeight - 2 * this.margin; } this.renderedImageDimensions = {width: this.imgWidth, height: this.imgHeight}; })) })).catch((error) => { this.$jamaAlert(error); this.loading = false; }); }, doIt() { Loading @@ -446,7 +449,10 @@ export default { this.reset(); this.resetZoom(); this.loading = false; }) }).catch((error) => { this.$jamaAlert(error); this.loading = false; }); } } ) Loading Loading @@ -600,9 +606,15 @@ export default { }, zoomIn(offset, origin = '0% 0%') { try { this.zoom += offset; document.getElementById('img-viewer').style.transform = 'scale(' + this.zoom + ')'; document.getElementById('img-viewer').style.transformOrigin = origin; } catch(e){ console.log(e); this.$jamaAlert("Une erreur est survenue."); } }, zoomAtScrolledPoint(event) { Loading Loading
src/components/editors/ImageResourceEditor.vue +17 −5 Original line number Diff line number Diff line Loading @@ -420,7 +420,10 @@ export default { this.maxHeight = document.querySelector('.jama-image-editor').clientHeight - 2 * this.margin; } this.renderedImageDimensions = {width: this.imgWidth, height: this.imgHeight}; })) })).catch((error) => { this.$jamaAlert(error); this.loading = false; }); }, doIt() { Loading @@ -446,7 +449,10 @@ export default { this.reset(); this.resetZoom(); this.loading = false; }) }).catch((error) => { this.$jamaAlert(error); this.loading = false; }); } } ) Loading Loading @@ -600,9 +606,15 @@ export default { }, zoomIn(offset, origin = '0% 0%') { try { this.zoom += offset; document.getElementById('img-viewer').style.transform = 'scale(' + this.zoom + ')'; document.getElementById('img-viewer').style.transformOrigin = origin; } catch(e){ console.log(e); this.$jamaAlert("Une erreur est survenue."); } }, zoomAtScrolledPoint(event) { Loading