Showing
4 changed files
with
78 additions
and
2 deletions
... | @@ -6,6 +6,72 @@ | ... | @@ -6,6 +6,72 @@ |
6 | .tui-image-editor-submenu .tui-image-editor-submenu-item .tui-image-editor-button { | 6 | .tui-image-editor-submenu .tui-image-editor-submenu-item .tui-image-editor-button { |
7 | margin: 13px 9px 0 9px; | 7 | margin: 13px 9px 0 9px; |
8 | } | 8 | } |
9 | + | ||
10 | + .tui-image-editor-header-buttons div, | ||
11 | + .tui-image-editor-header-buttons button,{ | ||
12 | + width: 70px; | ||
13 | + border-radius: 5px; | ||
14 | + letter-spacing: -0.5px; | ||
15 | + } | ||
16 | + | ||
17 | + label, label > span, | ||
18 | + .tui-image-editor-submenu .tui-image-editor-submenu-item label > span { | ||
19 | + font-size: 13px; | ||
20 | + } | ||
21 | + | ||
22 | + .color-picker-control .tui-colorpicker-palette-button { | ||
23 | + width: 20px; | ||
24 | + height: 20px; | ||
25 | + | ||
26 | + &:focus { | ||
27 | + outline: none; | ||
28 | + } | ||
29 | + } | ||
30 | + | ||
31 | + .tui-colorpicker-palette-preview { | ||
32 | + color: rgba(0, 0, 0, 0); | ||
33 | + } | ||
34 | + | ||
35 | + .tie-filter-tint-color .color-picker-control { | ||
36 | + height: 180px !important; | ||
37 | + top: -200px !important; | ||
38 | + left: -73px !important; | ||
39 | + | ||
40 | + div:not([class]) { | ||
41 | + margin-top: 10px; | ||
42 | + | ||
43 | + label { | ||
44 | + font-size: 12px; | ||
45 | + font-weight: bold; | ||
46 | + letter-spacing: -0.3px; | ||
47 | + } | ||
48 | + } | ||
49 | + } | ||
50 | + | ||
51 | + .tie-filter-multiply-color .color-picker-control { | ||
52 | + top: -160px !important; | ||
53 | + left: -60px !important; | ||
54 | + } | ||
55 | + | ||
56 | + .tie-filter-blend-color .color-picker-control { | ||
57 | + height: 180px !important; | ||
58 | + top: -200px !important; | ||
59 | + left: -74px !important; | ||
60 | + } | ||
61 | + | ||
62 | + .tui-colorpicker-palette-preview:first-letter { | ||
63 | + margin-left: 30px; | ||
64 | + } | ||
65 | + | ||
66 | + &.left .tui-image-editor-submenu .tui-image-editor-submenu-item .tie-filter-blend-color li { | ||
67 | + margin-top: 0; | ||
68 | + } | ||
69 | + | ||
70 | + .tui-image-editor-newline.tui-image-editor-range-wrap label.range { | ||
71 | + margin-top: 20px; | ||
72 | + padding-left: 10px; | ||
73 | + font-weight: bold; | ||
74 | + } | ||
9 | } | 75 | } |
10 | 76 | ||
11 | @media (max-width: 767px) { | 77 | @media (max-width: 767px) { | ... | ... |
... | @@ -17,6 +17,10 @@ function EditorPage() { | ... | @@ -17,6 +17,10 @@ function EditorPage() { |
17 | useEffect(() => { | 17 | useEffect(() => { |
18 | // @ts-ignore | 18 | // @ts-ignore |
19 | setEditor(new ToastEditor(imageEditorRef.current, editorOptions)); | 19 | setEditor(new ToastEditor(imageEditorRef.current, editorOptions)); |
20 | + | ||
21 | + return () => { | ||
22 | + initialEditor.destroy(); | ||
23 | + }; | ||
20 | }, []); | 24 | }, []); |
21 | 25 | ||
22 | return ( | 26 | return ( | ... | ... |
1 | import blackTheme from "./theme/black"; | 1 | import blackTheme from "./theme/black"; |
2 | import whiteTheme from "./theme/white"; | 2 | import whiteTheme from "./theme/white"; |
3 | import locale_ko_KR from "./locale_ko_KR"; | 3 | import locale_ko_KR from "./locale_ko_KR"; |
4 | +import sample from "utils/sample.jpg"; | ||
4 | 5 | ||
5 | export const editorOptions = { | 6 | export const editorOptions = { |
6 | includeUI: { | 7 | includeUI: { |
8 | + loadImage: { // 샘플 이미지 | ||
9 | + path: sample, | ||
10 | + name: 'sampleImage' | ||
11 | + }, | ||
7 | theme: blackTheme, // or whiteTheme | 12 | theme: blackTheme, // or whiteTheme |
8 | initMenu: 'filter', | 13 | initMenu: 'filter', |
9 | menuBarPosition: 'left', | 14 | menuBarPosition: 'left', |
10 | - locale: locale_ko_KR | 15 | + locale: locale_ko_KR, |
16 | + applyCropSelectionStyle: true, | ||
11 | }, | 17 | }, |
12 | cssMaxWidth: 700, | 18 | cssMaxWidth: 700, |
13 | cssMaxHeight: 500, | 19 | cssMaxHeight: 500, |
14 | selectionStyle: { | 20 | selectionStyle: { |
15 | - cornerSize: 20, | 21 | + cornerSize: 10, |
16 | rotatingPointOffset: 70 | 22 | rotatingPointOffset: 70 |
17 | } | 23 | } |
18 | }; | 24 | }; |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
project/src/utils/sample.jpg
0 → 100644
85.2 KB
-
Please register or login to post a comment