dytools-capture-engine 1.2.4 → 1.2.5
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -723,7 +723,7 @@ var AnchorZone = class extends CaptureZoneBase {
|
|
|
723
723
|
let minOpacity = 0.25;
|
|
724
724
|
let percentThroughArray = (i + 1) / this.children.length;
|
|
725
725
|
let opacity = maxOpacity - (maxOpacity - minOpacity) * percentThroughArray;
|
|
726
|
-
let color = `rgba(
|
|
726
|
+
let color = `rgba(${cycle}, 128, 255, ${opacity.toFixed(2)})`;
|
|
727
727
|
const polygon = child.rect.move(vector).toPolygon().points;
|
|
728
728
|
this.ocrOverlayIds.push(this.canvasManager?.addPolygon(polygon, color, false));
|
|
729
729
|
}
|
package/dist/index.js
CHANGED
|
@@ -707,7 +707,7 @@ var AnchorZone = class extends CaptureZoneBase {
|
|
|
707
707
|
let minOpacity = 0.25;
|
|
708
708
|
let percentThroughArray = (i + 1) / this.children.length;
|
|
709
709
|
let opacity = maxOpacity - (maxOpacity - minOpacity) * percentThroughArray;
|
|
710
|
-
let color = `rgba(
|
|
710
|
+
let color = `rgba(${cycle}, 128, 255, ${opacity.toFixed(2)})`;
|
|
711
711
|
const polygon = child.rect.move(vector).toPolygon().points;
|
|
712
712
|
this.ocrOverlayIds.push(this.canvasManager?.addPolygon(polygon, color, false));
|
|
713
713
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dytools-capture-engine",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
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.1.
|
|
27
|
+
"dytools-canvas-engine": "^1.1.3",
|
|
28
28
|
"dytools-geometry": "^1.0.0",
|
|
29
29
|
"dytools-result": "^1.0.1"
|
|
30
30
|
}
|