Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions SimpleHTMLApp/webSdk/dist/AcuantJavascriptWebSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ function drawText(text, fontWeight = 0.04, color = "#ffffff", showBackRect = tru
let offsetY = (Math.max(dimension.width, dimension.height) * 0.01);
let offsetX = (Math.max(dimension.width, dimension.height) * 0.02);

var x = (dimension.height / 2) - offsetX - (measured.width/3);
var x = (dimension.height - offsetX - measured.width)/2;
var y = -((dimension.width / 2) - offsetY);
var rotation = 90

if (currentOrientation !== 0) {
rotation = 0;
x = ((dimension.width / 2) - offsetY) - (measured.width/3);
x = (dimension.width - offsetY - measured.width)/2;
y = (dimension.height / 2) - offsetX + (Math.max(dimension.width, dimension.height) * 0.04);
}

Expand Down Expand Up @@ -505,6 +505,11 @@ var AcuantCamera = (function () {
manualCaptureInput.accept = "image/*";
}
manualCaptureInput.onchange = onManualCapture;
// When capture is intitiated clearout the existing value to allow user to
// re-upload the same image if desired.
manualCaptureInput.onclick = function(event) {
if(event && event.target) event.target.value = '';
}
manualCaptureInput.click();
}

Expand Down