cutelee

style: 샘플 이미지 추가 및 colorpicker 레이아웃 수정

......@@ -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) {
......
......@@ -17,6 +17,10 @@ function EditorPage() {
useEffect(() => {
// @ts-ignore
setEditor(new ToastEditor(imageEditorRef.current, editorOptions));
return () => {
initialEditor.destroy();
};
}, []);
return (
......
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: 20,
cornerSize: 10,
rotatingPointOffset: 70
}
};
\ No newline at end of file
......