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] render activity multi instance markers #471

Merged

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Aug 6, 2020

Render both sequential and parallel markers.

closes #353
closes #354
closes #450
closes #451
closes #454
closes #455

@tbouffard tbouffard added enhancement New feature or request depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first BPMN rendering Something about the way the lib is rendering BPMN elements labels Aug 6, 2020
@tbouffard
Copy link
Member Author

tbouffard commented Aug 6, 2020

Initial rendering with the BPMN Diagram from process-analytics/bpmn-visualization-examples#32

image

@csouchet
Copy link
Member

csouchet commented Aug 6, 2020

@tbouffard Is it possible to have more spaces between the lines of the icon, and the lines thinner ?

});
canvas.setIconOriginToShapeBottomLeft();

c.setFillColor(icon.strokeColor);
Copy link
Member

Choose a reason for hiding this comment

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

I tought we have a intermediate method just for the icon drawing, and rotate it if it's a sequential or a parallel, like for the gateway cross 🙂

Copy link
Member Author

Choose a reason for hiding this comment

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

I initially planned to do this but as the code is simple, I skipped doing it
I will review that once dependent PR are merged and this one is rebased

Copy link
Member Author

Choose a reason for hiding this comment

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

hm, this doesn't work very well in this case.
The rotation applies to the latest close path, here we have 3 paths , so only the latest rectangle is rotated.
This work well for the gateway cross because it is a single path

image

@tbouffard
Copy link
Member Author

New rendering with more space between bars

image

Render both sequential and parallel markers.
previous implementation paint the stroke which enlarged the bar
@tbouffard tbouffard force-pushed the 353-354-render_multi-instantiation_activity_markers branch from 481b545 to a24392d Compare August 6, 2020 14:19
@tbouffard tbouffard removed the depends on another PR ⚠️ Pull request depending on another one. The depending must be merged first label Aug 6, 2020
@tbouffard tbouffard requested a review from csouchet August 6, 2020 14:19
@tbouffard tbouffard marked this pull request as ready for review August 6, 2020 14:29
@tbouffard tbouffard merged commit 3bc09bc into master Aug 6, 2020
@tbouffard tbouffard deleted the 353-354-render_multi-instantiation_activity_markers branch August 6, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN rendering Something about the way the lib is rendering BPMN elements enhancement New feature or request
Projects
None yet
2 participants