Skip to content

Commit

Permalink
[LIB-239] 이미지 에디터 Preview 안 나오는 버그 (#240)
Browse files Browse the repository at this point in the history
* [Feat] 메인 페이지 반응형

* [FEAT] 모바일 슬라이더 기능 추가

* [Feat] 상품 소개 조회

* console 삭제

* [Feat] init license

* [Style] 라이센스 헤더

* init license api

* [Chore] Create  editor folder

* working get licenses

* modify api

* [Feat] 가상계좌 결제 시 로딩

* [Fix] Preview

* delete log

---------

Co-authored-by: 2hanbyeol1 <[email protected]>
  • Loading branch information
heeoneie and 2hanbyeol1 authored Oct 21, 2023
1 parent 5a608a2 commit 4fae398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/order/editor/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Preview = ({ isOpen, setIsOpen }) => {
editor.objects
.list()
.map((obj) =>
frameOption["기본소재 옵션"].includes("실버")
frameOption["기본소재 옵션"]?.includes("실버")
? (obj.opacity /= 0.65)
: (obj.opacity /= 0.9)
);
Expand All @@ -62,14 +62,14 @@ const Preview = ({ isOpen, setIsOpen }) => {
const makePreview = async () => {
if (!editor) return;
// set frame background by options
frameOption["기본소재 옵션"].includes("실버")
frameOption["기본소재 옵션"]?.includes("실버")
? editor.frame.setBackgroundColor("#9B9B9B")
: editor.frame.setBackgroundColor("#ffffff");
// set opacity of objects
editor.objects
.list()
.map((obj) =>
frameOption["기본소재 옵션"].includes("실버")
frameOption["기본소재 옵션"]?.includes("실버")
? (obj.opacity *= 0.65)
: (obj.opacity *= 0.9)
);
Expand Down

0 comments on commit 4fae398

Please sign in to comment.