Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-fighting
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
be5012c1
authored
Jun 27, 2024
by
dosZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
4021bfac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Public/static/js/common.js
+3
-3
No files found.
Public/static/js/common.js
View file @
be5012c1
...
@@ -327,8 +327,8 @@ function createPoster() {
...
@@ -327,8 +327,8 @@ function createPoster() {
setTimeout
(
function
()
{
setTimeout
(
function
()
{
posterCtx
.
drawImage
(
posterMask
,
0
,
0
,
640
*
2
,
1238
*
2
);
posterCtx
.
drawImage
(
posterMask
,
0
,
0
,
640
*
2
,
1238
*
2
);
drawVerticalText
(
posterCtx
,
username
,
'#595857'
,
30
*
2
,
82
*
2
,
302
*
2
,
true
);
drawVerticalText
(
posterCtx
,
username
,
'#595857'
,
30
*
2
,
100
*
2
,
340
*
2
,
true
);
drawVerticalText
(
posterCtx
,
company
,
'#595857'
,
30
*
2
,
82
*
2
,
443
*
2
,
true
);
drawVerticalText
(
posterCtx
,
company
,
'#595857'
,
30
*
2
,
100
*
2
,
500
*
2
,
true
);
$
(
'#notification_area'
).
remove
();
$
(
'#notification_area'
).
remove
();
$
(
'.upload-page'
).
hide
();
$
(
'.upload-page'
).
hide
();
...
@@ -350,7 +350,7 @@ function drawVerticalText(ctx, text, color, fontSize, x, y, isBold) {
...
@@ -350,7 +350,7 @@ function drawVerticalText(ctx, text, color, fontSize, x, y, isBold) {
ctx
.
fillStyle
=
color
;
// 设置字体颜色
ctx
.
fillStyle
=
color
;
// 设置字体颜色
ctx
.
textBaseline
=
'middle'
;
// 设置基准线为中间
ctx
.
textBaseline
=
'middle'
;
// 设置基准线为中间
ctx
.
textAlign
=
'center'
;
// 设置文本对齐为居中
ctx
.
textAlign
=
'center'
;
// 设置文本对齐为居中
ctx
.
lineWidth
=
2
;
// 设置描边宽度
ctx
.
lineWidth
=
5
;
// 设置描边宽度
ctx
.
strokeStyle
=
'white'
;
// 设置描边颜色
ctx
.
strokeStyle
=
'white'
;
// 设置描边颜色
// 计算每个字符的高度总和
// 计算每个字符的高度总和
...
...
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