Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design2
/
2016104145
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
cutelee
2020-04-28 14:22:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d74372f652addb35c9adf51601535c03ee402b69
d74372f6
1 parent
c16d1981
style: 샘플 이미지 추가 및 colorpicker 레이아웃 수정
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
2 deletions
project/src/pages/Editor/Editor.scss
project/src/pages/Editor/EditorPage.tsx
project/src/utils/editorOptions.ts
project/src/utils/sample.jpg
project/src/pages/Editor/Editor.scss
View file @
d74372f
...
...
@@ -6,6 +6,72 @@
.tui-image-editor-submenu
.tui-image-editor-submenu-item
.tui-image-editor-button
{
margin
:
13px
9px
0
9px
;
}
.tui-image-editor-header-buttons
div
,
.tui-image-editor-header-buttons
button
,
{
width
:
70px
;
border-radius
:
5px
;
letter-spacing
:
-0
.5px
;
}
label
,
label
>
span
,
.tui-image-editor-submenu
.tui-image-editor-submenu-item
label
>
span
{
font-size
:
13px
;
}
.color-picker-control
.tui-colorpicker-palette-button
{
width
:
20px
;
height
:
20px
;
&
:focus
{
outline
:
none
;
}
}
.tui-colorpicker-palette-preview
{
color
:
rgba
(
0
,
0
,
0
,
0
);
}
.tie-filter-tint-color
.color-picker-control
{
height
:
180px
!
important
;
top
:
-200px
!
important
;
left
:
-73px
!
important
;
div
:not
([
class
])
{
margin-top
:
10px
;
label
{
font-size
:
12px
;
font-weight
:
bold
;
letter-spacing
:
-0
.3px
;
}
}
}
.tie-filter-multiply-color
.color-picker-control
{
top
:
-160px
!
important
;
left
:
-60px
!
important
;
}
.tie-filter-blend-color
.color-picker-control
{
height
:
180px
!
important
;
top
:
-200px
!
important
;
left
:
-74px
!
important
;
}
.tui-colorpicker-palette-preview
:first-letter
{
margin-left
:
30px
;
}
&
.left
.tui-image-editor-submenu
.tui-image-editor-submenu-item
.tie-filter-blend-color
li
{
margin-top
:
0
;
}
.tui-image-editor-newline.tui-image-editor-range-wrap
label
.range
{
margin-top
:
20px
;
padding-left
:
10px
;
font-weight
:
bold
;
}
}
@media
(
max-width
:
767px
)
{
...
...
project/src/pages/Editor/EditorPage.tsx
View file @
d74372f
...
...
@@ -17,6 +17,10 @@ function EditorPage() {
useEffect(() => {
// @ts-ignore
setEditor(new ToastEditor(imageEditorRef.current, editorOptions));
return () => {
initialEditor.destroy();
};
}, []);
return (
...
...
project/src/utils/editorOptions.ts
View file @
d74372f
import
blackTheme
from
"./theme/black"
;
import
whiteTheme
from
"./theme/white"
;
import
locale_ko_KR
from
"./locale_ko_KR"
;
import
sample
from
"utils/sample.jpg"
;
export
const
editorOptions
=
{
includeUI
:
{
loadImage
:
{
// 샘플 이미지
path
:
sample
,
name
:
'sampleImage'
},
theme
:
blackTheme
,
// or whiteTheme
initMenu
:
'filter'
,
menuBarPosition
:
'left'
,
locale
:
locale_ko_KR
locale
:
locale_ko_KR
,
applyCropSelectionStyle
:
true
,
},
cssMaxWidth
:
700
,
cssMaxHeight
:
500
,
selectionStyle
:
{
cornerSize
:
2
0
,
cornerSize
:
1
0
,
rotatingPointOffset
:
70
}
};
\ No newline at end of file
...
...
project/src/utils/sample.jpg
0 → 100644
View file @
d74372f
85.2 KB
Please
register
or
login
to post a comment