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

feat: add object rotated event listener #322

Merged
merged 4 commits into from
Feb 12, 2020

Conversation

jinwoo-kim-nhn
Copy link
Contributor

@jinwoo-kim-nhn jinwoo-kim-nhn commented Feb 5, 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

작업내용

  • objectRotated 이벤트 리스너 추가

@jinwoo-kim-nhn jinwoo-kim-nhn changed the title middle commit feat: add background rotated event listener Feb 6, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn changed the title feat: add background rotated event listener feat: add object rotated event listener Feb 6, 2020
'selectionCleared': this._handlers.selectionCleared,
'selectionCreated': this._handlers.selectionCreated,
'addObjectAfter': this._handlers.addObjectAfter
[MOUSE_DOWN]: this._handlers.mousedown,
Copy link
Contributor

Choose a reason for hiding this comment

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

오 깔끔하네요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

감사합니다. !!

*/
_onObjectRotated(props) {
/**
* The event when scale factor is changed
Copy link
Contributor

Choose a reason for hiding this comment

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

주석 복붙 ㅎㅎ scale factor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

복붙 걸렸네요 ;; 수정하였습니다. ㅎㅎ


canvas.fire('object:rotating', mock);

expect(imageEditor.fire.calls.mostRecent().args[0]).toBe('objectRotated');
Copy link
Contributor

Choose a reason for hiding this comment

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

테스트 코드에도 OBJECT_ROTATED 쓰면 되겠어요.

Copy link
Contributor Author

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.

[02/12] 수고 많으셨습니다.

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.

완료입니다~!

@jinwoo-kim-nhn jinwoo-kim-nhn merged commit a357efd into master Feb 12, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn deleted the feat/rotateEventListener branch March 20, 2020 08:12
HerlinMatos pushed a commit to EveryMundo/tui.image-editor that referenced this pull request Jul 2, 2020
* middle commit

* feat: added object rotate event

* unnessary line delete

* 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