canvas-editor-engine 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ class CropService {
7
7
  console.log(CropService.options);
8
8
  }
9
9
  static get options() {
10
- const excretionLastIndex = excretions_component_1.default.excretionsCoords.length;
10
+ const excretionLastIndex = excretions_component_1.default.excretionsCoords.length - 1;
11
11
  const coords = excretions_component_1.default.excretionsCoords[excretionLastIndex];
12
12
  const excWidth = Math.abs(coords.start.x - coords.end.x);
13
13
  const excHeight = Math.abs(coords.start.y - coords.end.y);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",