@bensitu/image-editor 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bensitu/image-editor",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Lightweight canvas-based image editor",
5
5
  "main": "dist/image-editor.js",
6
6
  "module": "dist/image-editor.esm.js",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @file image-editor.js
3
3
  * @module image-editor
4
- * @version 1.1.1
4
+ * @version 1.1.2
5
5
  * @author Ben Situ
6
6
  * @license MIT
7
7
  * @description Lightweight canvas-based image editor with masking/transform/export support.
@@ -422,7 +422,7 @@
422
422
  const ch = Math.max(this.options.canvasHeight, minH);
423
423
  this._setCanvasSizeInt(cw, ch);
424
424
  const fitScale = Math.min(cw / imgW, ch / imgH, 1);
425
- fimg.set({ left: (cw - imgW * fitScale) / 2, top: (ch - imgH * fitScale) / 2 });
425
+ fimg.set({ left: 0, top: 0 });
426
426
  fimg.scale(fitScale);
427
427
  this.baseImageScale = fimg.scaleX || 1;
428
428
  } else if (this.options.expandCanvasToImage) {