Commit c975d36b authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

image cropper patch + version up

parent 68a0c1dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
{
  "name": "@pdn-certic/vue-jama",
  "version": "0.5.5",
  "version": "0.6.0",
  "scripts": {
    "serve": "rimraf -rf ./node_modules/.cache/vue-loader && vue-cli-service serve",
    "build": "vue-cli-service build",
+4 −2
Original line number Diff line number Diff line
@@ -363,12 +363,14 @@ export default {

        cropWidth() {
            let c = Number(this.cropLeft) + Number(this.cropRight);
            return this.maxWidth - (c * this.scale)
            let imgw = this.rotatedImageDimensions.width * this.rotationScale;
            return imgw - (c * this.scale)
        },

        cropHeight() {
            let c = Number(this.cropTop) + Number(this.cropBottom);
            return (this.rotatedImageDimensions.height * this.maxHeight / this.rotatedImageDimensions.width) - (c * this.scale)
            let imgh = this.rotatedImageDimensions.height * this.rotationScale;
            return imgh - (c * this.scale)
        },

        getCropBoxCSS() {