dytools-capture-engine 1.1.1 → 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/dist/index.cjs CHANGED
@@ -1351,7 +1351,7 @@ var CaptureEngine = class {
1351
1351
  Name: this._name ?? "Untitled",
1352
1352
  DocumentWidth: docWidth,
1353
1353
  DocumentHeight: docHeight,
1354
- Zones: this.zones.map((e) => e.toExternal(docWidth, docHeight))
1354
+ Zones: this.zones.map((e) => e?.toExternal(docWidth, docHeight) ?? null).filter((e) => e !== null)
1355
1355
  };
1356
1356
  }
1357
1357
  // --- in CaptureEngine.ts (or a new file) ---
package/dist/index.js CHANGED
@@ -1335,7 +1335,7 @@ var CaptureEngine = class {
1335
1335
  Name: this._name ?? "Untitled",
1336
1336
  DocumentWidth: docWidth,
1337
1337
  DocumentHeight: docHeight,
1338
- Zones: this.zones.map((e) => e.toExternal(docWidth, docHeight))
1338
+ Zones: this.zones.map((e) => e?.toExternal(docWidth, docHeight) ?? null).filter((e) => e !== null)
1339
1339
  };
1340
1340
  }
1341
1341
  // --- in CaptureEngine.ts (or a new file) ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dytools-capture-engine",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "An editor allowing the creation of templates for ocr capture.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",