|
|
|
@ -190,6 +190,7 @@ $("#page-canvas-container").on("click", ".page-canvas.active", function (evt) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function enableGuideBox(image, scalecorrectionfactor) {
|
|
|
|
|
$("#cancelDrawBtn").removeClass("disabled");
|
|
|
|
|
if (typeof scalecorrectionfactor == "undefined") {
|
|
|
|
|
scalecorrectionfactor = 1;
|
|
|
|
|
}
|
|
|
|
@ -214,6 +215,7 @@ function enableGuideBox(image, scalecorrectionfactor) {
|
|
|
|
|
|
|
|
|
|
function disableGuideBox() {
|
|
|
|
|
$("#placementguidebox").css("display", "none");
|
|
|
|
|
$("#cancelDrawBtn").addClass("disabled");
|
|
|
|
|
|
|
|
|
|
var context = $("#placementguidebox")[0].getContext('2d');
|
|
|
|
|
context.clearRect(0, 0, $("#placementguidebox")[0].width, $("#placementguidebox")[0].height);
|
|
|
|
|