dytools-capture-engine 1.4.4 → 1.5.0
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 +2 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -990,7 +990,8 @@ var CaptureEngine = class {
|
|
|
990
990
|
this.engine = new import_dytools_canvas_engine.CanvasEngine(selector, {
|
|
991
991
|
initialPan: this.options.initialPan,
|
|
992
992
|
defaultMode: this.options.defaultMode,
|
|
993
|
-
initialZoom: this.options.initialZoom
|
|
993
|
+
initialZoom: this.options.initialZoom,
|
|
994
|
+
zoomOptions: this.options.zoomOptions
|
|
994
995
|
});
|
|
995
996
|
if (serverApi) {
|
|
996
997
|
this.setServerApi(serverApi);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InteractiveObject } from 'dytools-canvas-engine';
|
|
1
|
+
import { InteractiveObject, ZoomToolOptions } from 'dytools-canvas-engine';
|
|
2
2
|
import { Rectangle, Size, Point, Polygon, Vector } from 'dytools-geometry';
|
|
3
3
|
import { Result } from 'dytools-result';
|
|
4
4
|
|
|
@@ -589,6 +589,7 @@ interface CaptureEngineOptions {
|
|
|
589
589
|
anchorZoneAdditionalChildrenColor?: StringOrFactory;
|
|
590
590
|
anchorChildZoneColor?: string;
|
|
591
591
|
anchorChildZoneOcrMatchColor?: string;
|
|
592
|
+
zoomOptions?: ZoomToolOptions;
|
|
592
593
|
}
|
|
593
594
|
type StringOrFactory = string | ((index: number, total: number) => string);
|
|
594
595
|
interface CaptureZoneOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InteractiveObject } from 'dytools-canvas-engine';
|
|
1
|
+
import { InteractiveObject, ZoomToolOptions } from 'dytools-canvas-engine';
|
|
2
2
|
import { Rectangle, Size, Point, Polygon, Vector } from 'dytools-geometry';
|
|
3
3
|
import { Result } from 'dytools-result';
|
|
4
4
|
|
|
@@ -589,6 +589,7 @@ interface CaptureEngineOptions {
|
|
|
589
589
|
anchorZoneAdditionalChildrenColor?: StringOrFactory;
|
|
590
590
|
anchorChildZoneColor?: string;
|
|
591
591
|
anchorChildZoneOcrMatchColor?: string;
|
|
592
|
+
zoomOptions?: ZoomToolOptions;
|
|
592
593
|
}
|
|
593
594
|
type StringOrFactory = string | ((index: number, total: number) => string);
|
|
594
595
|
interface CaptureZoneOptions {
|
package/dist/index.js
CHANGED
|
@@ -974,7 +974,8 @@ var CaptureEngine = class {
|
|
|
974
974
|
this.engine = new CanvasEngine(selector, {
|
|
975
975
|
initialPan: this.options.initialPan,
|
|
976
976
|
defaultMode: this.options.defaultMode,
|
|
977
|
-
initialZoom: this.options.initialZoom
|
|
977
|
+
initialZoom: this.options.initialZoom,
|
|
978
|
+
zoomOptions: this.options.zoomOptions
|
|
978
979
|
});
|
|
979
980
|
if (serverApi) {
|
|
980
981
|
this.setServerApi(serverApi);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dytools-capture-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "An editor allowing the creation of templates for ocr capture.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"typescript": "^5.9.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"dytools-canvas-engine": "^1.
|
|
27
|
+
"dytools-canvas-engine": "^1.3.0",
|
|
28
28
|
"dytools-geometry": "^1.0.0",
|
|
29
29
|
"dytools-result": "^1.0.1"
|
|
30
30
|
}
|