fix syntax error and style
This commit is contained in:
parent
9487653043
commit
10330d4598
@ -810,7 +810,7 @@ const whiteboard = {
|
|||||||
'<div class="rotationHandle" style="position:absolute; bottom: -30px; left: 0px; width:100%; text-align:center; cursor:ew-resize;"><i class="fa fa-undo"></i></div>' +
|
'<div class="rotationHandle" style="position:absolute; bottom: -30px; left: 0px; width:100%; text-align:center; cursor:ew-resize;"><i class="fa fa-undo"></i></div>' +
|
||||||
"</div>"
|
"</div>"
|
||||||
);
|
);
|
||||||
imgDiv.prepend(img)
|
imgDiv.prepend(img);
|
||||||
imgDiv
|
imgDiv
|
||||||
.find(".xCanvasBtn")
|
.find(".xCanvasBtn")
|
||||||
.off("click")
|
.off("click")
|
||||||
@ -895,14 +895,16 @@ const whiteboard = {
|
|||||||
},
|
},
|
||||||
drawImgToBackground(url, width, height, left, top, rotationAngle) {
|
drawImgToBackground(url, width, height, left, top, rotationAngle) {
|
||||||
const px = (v) => Number(v).toString() + "px";
|
const px = (v) => Number(v).toString() + "px";
|
||||||
this.imgContainer.append(this.imageWithSrc(url).css({
|
this.imgContainer.append(
|
||||||
|
this.imageWithSrc(url).css({
|
||||||
width: px(width),
|
width: px(width),
|
||||||
height: px(height),
|
height: px(height),
|
||||||
top: px(top),
|
top: px(top),
|
||||||
left: px(left),
|
left: px(left),
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
transform: "rotate(" + Number(rotationAngle) + "rad)",
|
transform: "rotate(" + Number(rotationAngle) + "rad)",
|
||||||
});
|
})
|
||||||
|
);
|
||||||
},
|
},
|
||||||
addTextBox(
|
addTextBox(
|
||||||
textcolor,
|
textcolor,
|
||||||
@ -1043,7 +1045,6 @@ const whiteboard = {
|
|||||||
.css({ "background-color": textboxBackgroundColor });
|
.css({ "background-color": textboxBackgroundColor });
|
||||||
},
|
},
|
||||||
drawImgToCanvas(url, width, height, left, top, rotationAngle, doneCallback) {
|
drawImgToCanvas(url, width, height, left, top, rotationAngle, doneCallback) {
|
||||||
|
|
||||||
top = Number(top); // probably not as important here
|
top = Number(top); // probably not as important here
|
||||||
left = Number(left); // as it is when generating html
|
left = Number(left); // as it is when generating html
|
||||||
width = Number(width);
|
width = Number(width);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user