dytools-capture-engine 1.3.3 → 1.3.4

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/dist/index.cjs CHANGED
@@ -1686,7 +1686,7 @@ var CaptureEngine = class {
1686
1686
  let widthChange = this.width / preWidth;
1687
1687
  let heightChange = this.height / preHeight;
1688
1688
  let change = Math.max(widthChange, heightChange);
1689
- this.setZoom(this.zoom / change, new import_dytools_geometry.Point(this.width / 2, this.height / 2));
1689
+ this.setZoom(this.zoom / change);
1690
1690
  }
1691
1691
  this.emitExternal(CapturePublicEventType.TemplateChanged, {});
1692
1692
  }
package/dist/index.js CHANGED
@@ -1670,7 +1670,7 @@ var CaptureEngine = class {
1670
1670
  let widthChange = this.width / preWidth;
1671
1671
  let heightChange = this.height / preHeight;
1672
1672
  let change = Math.max(widthChange, heightChange);
1673
- this.setZoom(this.zoom / change, new Point(this.width / 2, this.height / 2));
1673
+ this.setZoom(this.zoom / change);
1674
1674
  }
1675
1675
  this.emitExternal(CapturePublicEventType.TemplateChanged, {});
1676
1676
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dytools-capture-engine",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "An editor allowing the creation of templates for ocr capture.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",