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

[REFACTOR] BpmnCanvas manages icon style and some 'icon origin' #391

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Jul 6, 2020

Manage

  • icon origin from top left shape: this avoids performing a 'hard' translate.
    Such translate has side effects for subsequent painting: the origin has moved
    so it would require to know that a back translate is needed. This will help
    when managing activity markers.
  • icon style: this currently introduces duplication with IconPainter that
    will be removed when IconPainter will always use icon style

Covers #247

@tbouffard tbouffard added depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first refactoring Code refactoring labels Jul 6, 2020
@csouchet csouchet added rebase needed 💥 Pull request that must be rebased on the latest master commit prior being reviewed or merged and removed depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first labels Jul 7, 2020
Manage
  - icon origin from top left shape: this avoids performing a 'hard' translate.
  Such translate has side effects for subsequent painting: the origin has moved
  so it would require to know that a back translate is needed. This will help
  when managing activity markers.
  - icon style: this currently introduces duplication with `IconPainter` that
  will be removed when IconPainter will always use icon style
@tbouffard tbouffard force-pushed the refactor/icon_origin_without_hard_translate_and_update_style_in_tpmn_canvas branch from 60632c8 to bc867c7 Compare July 7, 2020 22:16
@tbouffard tbouffard changed the title [REFACTOR] BpmnCanvas manage icon style and some 'icon origin' [REFACTOR] BpmnCanvas manages icon style and some 'icon origin' Jul 7, 2020
@tbouffard tbouffard removed the rebase needed 💥 Pull request that must be rebased on the latest master commit prior being reviewed or merged label Jul 7, 2020
@tbouffard tbouffard marked this pull request as ready for review July 7, 2020 22:17
@tbouffard tbouffard merged commit 9571c70 into master Jul 8, 2020
@tbouffard tbouffard deleted the refactor/icon_origin_without_hard_translate_and_update_style_in_tpmn_canvas branch July 8, 2020 10:52
@tbouffard
Copy link
Member Author

Note: icons touched by this refactoring

  • user task
  • service task
  • exclusive gateway
  • parallel gateway
  • timer event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants