Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
MAC_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2021-04-30 23:25:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ae7038dfbf05591820d1641f781138f4f6db0d83
ae7038df
1 parent
ff887d92
brush position 자동 지정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
gif-generator/src/components/Brush.js
gif-generator/src/components/Brush.js
View file @
ae7038d
...
...
@@ -8,10 +8,6 @@ class Brush extends ComponentInterface {
this
.
color
=
new
Color
(
fabricObj
.
stroke
);
this
.
paths
=
fabricObj
.
path
;
this
.
size
=
fabricObj
.
strokeWidth
;
this
.
position
=
{
top
:
fabricObj
.
top
,
left
:
fabricObj
.
left
,
};
}
getCurrentFabricObject
()
{
...
...
@@ -24,8 +20,6 @@ class Brush extends ComponentInterface {
paths
[
paths
.
length
-
1
][
0
]
=
"L"
;
}
return
new
fabric
.
Path
(
paths
,
{
top
:
this
.
position
.
top
,
left
:
this
.
position
.
left
,
stroke
:
this
.
color
.
getRgba
(),
strokeWidth
:
this
.
size
,
});
...
...
Please
register
or
login
to post a comment