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
yunseok
2021-04-11 17:26:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
753627b417970c8d0a704938d4710f71a5758c86
753627b4
1 parent
02e21059
한글 split
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
gif-generator/package-lock.json
gif-generator/package.json
gif-generator/src/components/Text.js
gif-generator/package-lock.json
View file @
753627b
...
...
@@ -2930,6 +2930,11 @@
"integrity"
:
"sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ=="
,
"dev"
:
true
},
"hangul-js"
:
{
"version"
:
"0.2.6"
,
"resolved"
:
"https://registry.npmjs.org/hangul-js/-/hangul-js-0.2.6.tgz"
,
"integrity"
:
"sha512-48axU8LgjCD30FEs66Xc04/8knxMwCMQw0f67l67rlttW7VXT3qRJgQeHmhiuGwWXGvSbk6YM0fhQlcjE1JFQA=="
},
"har-schema"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz"
,
...
...
gif-generator/package.json
View file @
753627b
...
...
@@ -21,6 +21,7 @@
"dependencies"
:
{
"@babel/plugin-proposal-class-properties"
:
"^7.13.0"
,
"gifencoder"
:
"^2.0.1"
,
"hangul-js"
:
"^0.2.6"
,
"stream"
:
"0.0.2"
}
}
...
...
gif-generator/src/components/Text.js
View file @
753627b
import
ComponentInterface
from
"./ComponentInterface"
import
Color
from
"./Color"
import
Hangul
from
"hangul-js"
class
Text
extends
ComponentInterface
{
constructor
(
fabricObj
)
{
super
();
this
.
color
=
new
Color
(
fabricObj
.
fill
);
this
.
text
=
fabricObj
.
text
;
this
.
text
=
{
plain
:
fabricObj
.
text
,
splited
:
Hangul
.
disassemble
(
fabricObj
.
text
)
};
this
.
position
=
{
top
:
fabricObj
.
top
,
left
:
fabricObj
.
left
...
...
Please
register
or
login
to post a comment