Commit 7d06da46 by doszhang

dos

parent ce3b5c4c
......@@ -369,7 +369,7 @@ function createPoster() {
bottomHalfTop = pxToRem(487) + pxToRem(flagListHeight);
$('.poster-tip').css('top', bottomHalfTop + pxToRem(181));
posterCtx.drawImage(bottomHalf, pxToRem(45 * 2), bottomHalfTop * 2, pxToRem(550 * 2), pxToRem(238 * 2));
// drawFlagItem(pxToRem(489 + 20));
drawFlagItem(pxToRem(489 + 20));
let decorate = new Image();
decorate.src = checkedDecorate;
decorate.onload = function () {
......@@ -397,12 +397,12 @@ function drawFlagItem(initialPosition) {
for (let i = 0; i < flagStack.length; i++) {
let top = initialPosition + $(nodeList[i]).offset().top;
let textTop = initialPosition + $(nodeList[i]).find('.flag-text').offset().top + pxToRem(28);
posterCtx.drawImage(noBg, pxToRem(105), top, pxToRem(44), pxToRem(39));
flagNoDraw(posterCtx, i + 1, 14, '#222222', pxToRem(129), top + pxToRem(28));
let lineTop = flagTextDraw(posterCtx, flagStack[i], 16, '#222222', pxToRem(167), textTop);
if (lineTop != 0) {
posterCtx.drawImage(redline, pxToRem(161), lineTop, pxToRem(367), pxToRem(20));
}
posterCtx.drawImage(noBg, pxToRem(105 * 2), top * 2, pxToRem(44 * 2), pxToRem(39 * 2));
flagNoDraw(posterCtx, i + 1, 14 * 2, '#222222', pxToRem(129 * 2), (top + pxToRem(28)) * 2);
// let lineTop = flagTextDraw(posterCtx, flagStack[i], 16, '#222222', pxToRem(167), textTop);
// if (lineTop != 0) {
// posterCtx.drawImage(redline, pxToRem(161), lineTop, pxToRem(367), pxToRem(20));
// }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment