Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed exist cropzone bug in toDataUrl image (fix #237 #224) #300

Merged
merged 19 commits into from
Jan 17, 2020

Conversation

jinwoo-kim-nhn
Copy link
Contributor

@jinwoo-kim-nhn jinwoo-kim-nhn commented Jan 15, 2020

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description

issue

스크린샷 2020-01-15 오후 3 30 46

해결

  1. fabric.Rect 클래스를 상속받아서 Cropzone을 구현할 때 _render의 구현에서 ctx를 받아오는 방식이 fabricjs에서 가이드한 방법과 같지 않음
    • (download시 깨진 cropzone영역이 생기는 버그의 원인 )
    • 수정후 toDataUrl 실행 후 Cropzone이 안깨지고 정상적으로 출력된 이미지를 얻음
  2. toDataUrl 실행전에 cropzone을 숨겨주고 toDataUrl이 완료된후 cropzone을 다시 보여주도록 수정

Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

@jinwoo-kim-nhn jinwoo-kim-nhn changed the title fix: fixed exist cropzone bug in toDataUrl image fix: fixed exist cropzone bug in toDataUrl image (fix #297) Jan 15, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn changed the title fix: fixed exist cropzone bug in toDataUrl image (fix #297) fix: fixed exist cropzone bug in toDataUrl image (fix #237) Jan 15, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn changed the title fix: fixed exist cropzone bug in toDataUrl image (fix #237) fix: fixed exist cropzone bug in toDataUrl image (fix #237 #224) Jan 15, 2020
Copy link
Member

@junghwan-park junghwan-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료입니다~! 고생 많으셨습니다 ㅎㅎ

Copy link
Contributor

@dongsik-yoo dongsik-yoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[01/17] Reviewed. 수고하셨어요

* Change cropzone visible
* @param {boolean} visible - cropzone visible state
*/
changeVisible(visible) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this method name should be changeVisibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 이게 더 적확한 표현 같네요. 반영하겠습니다.

* @param {boolean} visible - cropzone visible state
*/
changeVisible(visible) {
const cropzone = this._cropzone;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is this simple version implementation.

this._cropzone && this._cropzone.set({visible});

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 이렇게 하면 간결해지겠네요. ㅎㅎ 감사합니다

@jinwoo-kim-nhn jinwoo-kim-nhn changed the base branch from feat/devConfigToolUpdate to master January 17, 2020 06:07
@jinwoo-kim-nhn jinwoo-kim-nhn merged commit 9578538 into master Jan 17, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn deleted the fix/cropzoneWithDownload branch March 20, 2020 08:13
HerlinMatos pushed a commit to EveryMundo/tui.image-editor that referenced this pull request Jul 2, 2020
nhn#300)

* feat: webpack version up

* feat: cssExtract plugin update

* feat: karma.conf update middle commit

* feat: karma.conf update middle commit

* feat: webpack with karma version update middle commit

* update package-lock

* feat: karma version update 4.x.x

* fix: fixed all vulnerabilities at package.json

* fix: added mode property webpack config

* feat: added dist directory for npm istall test

* test complete with delete dist directory

* restore un nessary fix point

* apply code review at webpack config

* fix: fixed fabricjs install guide

* fix: fix karma.conf.js for css-loader webpack config

* fix: fixed exist cropzone bug in toDataUrl image

* apply code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants