Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周成波
text2video-frontend
Commits
e0b909c9
Commit
e0b909c9
authored
Apr 07, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f47c58c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
index.vue
src/views/home/index.vue
+2
-3
No files found.
src/views/home/index.vue
View file @
e0b909c9
...
...
@@ -1339,10 +1339,11 @@ const showInPaintDialog = (type: string, item: any) => {
mask_ctx
.
clearRect
(
0
,
0
,
mask_canvas
.
width
,
mask_canvas
.
height
);
mask_ctx
.
lineWidth
=
40
;
// 设置线条粗细
mask_ctx
.
strokeStyle
=
'rgba(255, 255, 255,
0.5
)'
;
// 设置线条颜色
mask_ctx
.
strokeStyle
=
'rgba(255, 255, 255,
1
)'
;
// 设置线条颜色
mask_ctx
.
lineCap
=
'round'
;
// 线头尾为圆形
mask_ctx
.
lineJoin
=
'round'
;
// 拐点为圆形,默认是尖角
// mask_ctx.globalCompositeOperation = 'destination-atop'; //避免线条重叠的时候透明度也重叠
// mask_ctx.globalCompositeOperation = 'copy'; //避免线条重叠的时候透明度也重叠
let
isDrawing
=
false
;
...
...
@@ -2272,11 +2273,9 @@ const onSubmitInPaint = async () => {
<!-- 局部重绘 -->
<el-dialog
v-model=
"inPaintVisible"
title=
"局部重绘"
:width=
"parseInt(form.img_size.width) + 40"
:close-on-click-modal=
"false"
:close-on-press-escape=
"true"
:show-close=
"true"
:lock-scroll=
"true"
>
<div
style=
"color: red"
>
请在图片上涂抹需要保留的部分
</div>
...
...
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