Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-promise
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
d4039633
authored
Mar 10, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
e9968cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Public/static/js/common.js
+10
-10
No files found.
Public/static/js/common.js
View file @
d4039633
...
...
@@ -305,25 +305,25 @@ function drawImage(ctx, myCanvas, img, imgInfo) {
}
function
drawNum
()
{
posterCtx
.
font
=
'normal '
+
'
24
px normal'
;
posterCtx
.
font
=
'normal '
+
'
48
px normal'
;
let
text1
=
'已有'
;
let
text2
=
'人发起承诺'
;
let
text1Width
=
posterCtx
.
measureText
(
text1
).
width
;
let
text2Width
=
posterCtx
.
measureText
(
text2
).
width
;
posterCtx
.
font
=
'normal '
+
'
4
0px normal'
;
posterCtx
.
font
=
'normal '
+
'
8
0px normal'
;
let
numWidth
=
posterCtx
.
measureText
(
window
.
num
).
width
;
let
totalWidth
=
text1Width
+
10
+
numWidth
+
6
+
text2Width
;
let
text1X
=
212
-
totalWidth
/
2
;
let
numX
=
text1X
+
text1Width
+
10
;
let
text2X
=
numX
+
numWidth
+
6
;
let
totalWidth
=
text1Width
+
10
*
2
+
numWidth
+
6
*
2
+
text2Width
;
let
text1X
=
212
*
2
-
totalWidth
/
2
;
let
numX
=
text1X
+
text1Width
+
10
*
2
;
let
text2X
=
numX
+
numWidth
+
6
*
2
;
txtDraw
(
posterCtx
,
window
.
num
,
'#fff'
,
numX
,
557
);
txtDraw
(
posterCtx
,
window
.
num
,
'#fff'
,
numX
,
557
*
2
);
posterCtx
.
font
=
'normal '
+
'
24
px normal'
;
txtDraw
(
posterCtx
,
text1
,
'#fff'
,
text1X
,
557
);
txtDraw
(
posterCtx
,
text2
,
'#fff'
,
text2X
,
557
);
posterCtx
.
font
=
'normal '
+
'
48
px normal'
;
txtDraw
(
posterCtx
,
text1
,
'#fff'
,
text1X
,
557
*
2
);
txtDraw
(
posterCtx
,
text2
,
'#fff'
,
text2X
,
557
*
2
);
}
function
drawUserInfo
(
name
,
business
,
fontsize
,
fontweight
)
{
...
...
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