|
@@ -38787,7 +38787,7 @@ field\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\
|
|
|
s * .54 > u ? s = u / .54 : u = s * .54;
|
|
|
let d = $("<canvas>").attr("width", s).attr("height", u)[0];
|
|
|
d.getContext("2d").putImageData(o, 0, 0), t.attr("width", 350), t.attr("height", 189), t.get(0).getContext("2d").drawImage(d, 0, 0, 350, 189);
|
|
|
- let f = t.get(0).toDataURL("image/jpeg", .9), m = luckysheet.sheetmanage.getCurSheetnoset();
|
|
|
+ let f = t.get(0).toDataURL("image/jpeg", 1), m = luckysheet.sheetmanage.getCurSheetnoset();
|
|
|
e.imageRequestLock = !0;
|
|
|
let g = encodeURIComponent(JSON.stringify({t: "thumb", img: f, curindex: m}));
|
|
|
t.remove(), e.updateImageUrl != "" && $.post(e.updateImageUrl, {
|
|
@@ -49319,7 +49319,7 @@ field\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\
|
|
|
}).css({width: y, height: m});
|
|
|
lr(g, f, y, m, 1, 1, null, null, v);
|
|
|
let b = v.get(0).getContext("2d");
|
|
|
- return b.beginPath(), b.moveTo(0, 0), b.lineTo(0, h.devicePixelRatio * m), b.lineWidth = h.devicePixelRatio * 2, b.strokeStyle = Tl.strokeStyle, b.stroke(), b.closePath(), b.beginPath(), b.moveTo(0, 0), b.lineTo(h.devicePixelRatio * y, 0), b.lineWidth = h.devicePixelRatio * 2, b.strokeStyle = Tl.strokeStyle, b.stroke(), b.closePath(), v.get(0).toDataURL("image/png")
|
|
|
+ return b.beginPath(), b.moveTo(0, 0), b.lineTo(0, h.devicePixelRatio * m), b.lineWidth = h.devicePixelRatio * 2, b.strokeStyle = Tl.strokeStyle, b.stroke(), b.closePath(), b.beginPath(), b.moveTo(0, 0), b.lineTo(h.devicePixelRatio * y, 0), b.lineWidth = h.devicePixelRatio * 2, b.strokeStyle = Tl.strokeStyle, b.stroke(), b.closePath(), v.get(0).toDataURL("image/png",1)
|
|
|
}
|
|
|
|
|
|
function Ne0(e, n = {}) {
|
|
@@ -52176,7 +52176,7 @@ field\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\
|
|
|
$("#" + _).hide();
|
|
|
let R = $(this), I = R.attr("itemvalue");
|
|
|
if (I == 0) $("#luckysheetborderSizepreview").attr("src", "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==").attr("itemvalue", null); else {
|
|
|
- let F = R.find("canvas").get(0).toDataURL("image/png");
|
|
|
+ let F = R.find("canvas").get(0).toDataURL("image/png",1);
|
|
|
$("#luckysheetborderSizepreview").attr("src", F).attr("itemvalue", I)
|
|
|
}
|
|
|
e.focus($("#" + _), I)
|
|
@@ -55478,7 +55478,7 @@ field\u53EF\u4EE5\u662F\u8207database\u7B2C\u4E00\u884C\u4E2D\u67D0\u500B\u5217\
|
|
|
lr(C, w, S, x, 1, 1, null, null, _);
|
|
|
let T = _.get(0).getContext("2d");
|
|
|
T.beginPath(), T.moveTo(0, 0), T.lineTo(0, h.devicePixelRatio * x), T.lineWidth = h.devicePixelRatio * 2, T.strokeStyle = Tl.strokeStyle, T.stroke(), T.closePath(), T.beginPath(), T.moveTo(0, 0), T.lineTo(h.devicePixelRatio * S, 0), T.lineWidth = h.devicePixelRatio * 2, T.strokeStyle = Tl.strokeStyle, T.stroke(), T.closePath();
|
|
|
- let A = new Image, R = _.get(0).toDataURL("image/png");
|
|
|
+ let A = new Image, R = _.get(0).toDataURL("image/png",1);
|
|
|
A.src = R, S > x ? A.style.width = "100%" : A.style.height = "100%";
|
|
|
let I = $(window).height() - 200;
|
|
|
U.screenshot(g.screenshotTipSuccess, '<div id="luckysheet-confirm-screenshot-save" style="height:' + I + 'px;overflow:auto;"></div>', R), $("#luckysheet-confirm-screenshot-save").append(A), _.remove()
|