Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
ccb-lantern
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
16f9b051
authored
Jan 28, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
def275dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Public/static/image2/._poster-tip.png
+0
-0
Public/static/js/common.js
+9
-2
No files found.
Public/static/image2/._poster-tip.png
View file @
16f9b051
4 KB
|
W:
|
H:
4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Public/static/js/common.js
View file @
16f9b051
...
@@ -460,7 +460,7 @@ function createPoster() {
...
@@ -460,7 +460,7 @@ function createPoster() {
//计算每行文字数量
//计算每行文字数量
wrapNum
=
calculationWrap
();
wrapNum
=
calculationWrap
();
$
(
'.poster-list-page'
).
show
();
$
(
'.poster-list-page'
).
show
();
$
(
'.poster-page .poster-canvas-block'
).
append
(
$
(
'<img class="posterImg" src="" />'
));
//
$('.poster-page .poster-canvas-block').append($('<img class="posterImg" src="" />'));
// 创建海报页面的flag列表
// 创建海报页面的flag列表
for
(
let
i
=
0
;
i
<
flagStack
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
flagStack
.
length
;
i
++
)
{
createList
(
'.poster-list-page .poster-list'
,
flagStack
[
i
],
i
+
1
,
wrapNum
);
createList
(
'.poster-list-page .poster-list'
,
flagStack
[
i
],
i
+
1
,
wrapNum
);
...
@@ -514,7 +514,7 @@ function createPoster() {
...
@@ -514,7 +514,7 @@ function createPoster() {
bottomHalf
.
src
=
"/Public/static/image2/poster-bottomhalf.png"
;
bottomHalf
.
src
=
"/Public/static/image2/poster-bottomhalf.png"
;
bottomHalf
.
onload
=
function
()
{
bottomHalf
.
onload
=
function
()
{
bottomHalfTop
=
pxToRem
(
457
)
+
pxToRem
(
flagListHeight
);
bottomHalfTop
=
pxToRem
(
457
)
+
pxToRem
(
flagListHeight
);
$
(
'.poster-tip'
).
css
(
'top'
,
bottomHalfTop
+
pxToRem
(
157
));
//
$('.poster-tip').css('top', bottomHalfTop + pxToRem(157));
posterCtx
.
drawImage
(
bottomHalf
,
posterLeft
,
bottomHalfTop
*
2
,
pxToRem
(
550
*
2
),
pxToRem
(
207
*
2
));
posterCtx
.
drawImage
(
bottomHalf
,
posterLeft
,
bottomHalfTop
*
2
,
pxToRem
(
550
*
2
),
pxToRem
(
207
*
2
));
drawFlagItem
(
pxToRem
(
489
+
20
));
drawFlagItem
(
pxToRem
(
489
+
20
));
let
decorate
=
new
Image
();
let
decorate
=
new
Image
();
...
@@ -522,6 +522,13 @@ function createPoster() {
...
@@ -522,6 +522,13 @@ function createPoster() {
decorate
.
onload
=
function
()
{
decorate
.
onload
=
function
()
{
posterCtx
.
drawImage
(
decorate
,
pxToRem
(
169
*
2
),
pxToRem
(
285
*
2
),
pxToRem
(
300
*
2
),
pxToRem
(
150
*
2
));
posterCtx
.
drawImage
(
decorate
,
pxToRem
(
169
*
2
),
pxToRem
(
285
*
2
),
pxToRem
(
300
*
2
),
pxToRem
(
150
*
2
));
flagTextDraw
(
posterCtx
,
signature
,
pxToRem
(
40
*
2
),
'#222222'
,
pxToRem
(
233
*
2
),
(
bottomHalfTop
+
pxToRem
(
76
))
*
2
,
'font'
);
flagTextDraw
(
posterCtx
,
signature
,
pxToRem
(
40
*
2
),
'#222222'
,
pxToRem
(
233
*
2
),
(
bottomHalfTop
+
pxToRem
(
76
))
*
2
,
'font'
);
//绘制tip
let
tip
=
new
Image
();
tip
.
src
=
"/Public/static/image2/poster-bottomhalf.png"
;
tip
.
onload
=
function
()
{
posterCtx
.
drawImage
(
tip
,
pxToRem
(
117
*
2
),
(
bottomHalfTop
+
pxToRem
(
153
))
*
2
,
pxToRem
(
61
*
2
),
pxToRem
(
28
*
2
));
}
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
'.posterImg'
).
attr
(
'src'
,
getManBase64
(
posterCanvas
)).
css
(
'height'
,
pxToRem
(
posterCanvasHeight
));
$
(
'.posterImg'
).
attr
(
'src'
,
getManBase64
(
posterCanvas
)).
css
(
'height'
,
pxToRem
(
posterCanvasHeight
));
},
1000
);
},
1000
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment