summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/ocr.js
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-18 02:58:55 +0300
committerMaxim Devaev <[email protected]>2022-11-18 02:58:55 +0300
commit0f4e7361856446a029e950233f532226614cf665 (patch)
tree4ac968d97705bf35aae0f551abced413a852f45b /web/share/js/kvm/ocr.js
parent2b8cc93362c16b9ff4d1f4caeaecab6fd56297d9 (diff)
web: forced quote-props
Diffstat (limited to 'web/share/js/kvm/ocr.js')
-rw-r--r--web/share/js/kvm/ocr.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/share/js/kvm/ocr.js b/web/share/js/kvm/ocr.js
index fa69dff4..ee234893 100644
--- a/web/share/js/kvm/ocr.js
+++ b/web/share/js/kvm/ocr.js
@@ -123,10 +123,10 @@ export function Ocr(__getGeometry) {
let rel_bottom = Math.max(__start_pos.y, __end_pos.y) - rect.top + offset;
let geo = __getGeometry();
__selection = {
- left: tools.remap(rel_left, geo.x, geo.width, 0, geo.real_width),
- right: tools.remap(rel_right, geo.x, geo.width, 0, geo.real_width),
- top: tools.remap(rel_top, geo.y, geo.height, 0, geo.real_height),
- bottom: tools.remap(rel_bottom, geo.y, geo.height, 0, geo.real_height),
+ "left": tools.remap(rel_left, geo.x, geo.width, 0, geo.real_width),
+ "right": tools.remap(rel_right, geo.x, geo.width, 0, geo.real_width),
+ "top": tools.remap(rel_top, geo.y, geo.height, 0, geo.real_height),
+ "bottom": tools.remap(rel_bottom, geo.y, geo.height, 0, geo.real_height),
};
} else {
__selection = null;
@@ -140,8 +140,8 @@ export function Ocr(__getGeometry) {
let geo = __getGeometry();
let offset = __getNavbarOffset();
return {
- x: Math.min(Math.max(event.clientX, rect.left + geo.x), rect.right - geo.x),
- y: Math.min(Math.max(event.clientY - offset, rect.top + geo.y - offset), rect.bottom - geo.y - offset),
+ "x": Math.min(Math.max(event.clientX, rect.left + geo.x), rect.right - geo.x),
+ "y": Math.min(Math.max(event.clientY - offset, rect.top + geo.y - offset), rect.bottom - geo.y - offset),
};
};