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-05-01 05:49:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
56b80929bbadaef3f81f3b9fa7f89e8397c4efc5
56b80929
1 parent
ac8ec2dc
Text + Brush 환경에서 정렬이 center로 바뀌는 문제 대응
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
gif-generator/src/components/Text.js
gif-generator/src/components/Text.js
View file @
56b8092
...
...
@@ -14,8 +14,14 @@ class Text extends ComponentInterface {
splited
:
textSplited
,
};
this
.
position
=
{
top
:
fabricObj
.
top
,
left
:
fabricObj
.
left
,
top
:
fabricObj
.
originY
==
"center"
?
fabricObj
.
top
-
fabricObj
.
height
/
2
:
fabricObj
.
top
,
left
:
fabricObj
.
originX
==
"center"
?
fabricObj
.
left
-
fabricObj
.
width
/
2
:
fabricObj
.
left
,
};
this
.
font
=
{
size
:
fabricObj
.
fontSize
,
...
...
@@ -33,6 +39,8 @@ class Text extends ComponentInterface {
{
top
:
this
.
position
.
top
,
left
:
this
.
position
.
left
,
originX
:
"left"
,
originY
:
"top"
,
fontFamily
:
this
.
font
.
family
,
fontSize
:
this
.
font
.
size
,
fontWeight
:
this
.
font
.
weight
,
...
...
Please
register
or
login
to post a comment