-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Render Vertical Participants and Lanes #2024
Render Vertical Participants and Lanes #2024
Conversation
Thank you for your contribution. I tested it and it works. As for the tests, something like it('should render vertical pools', function() {
var xml = require('../../fixtures/bpmn/draw/vertical-pools.bpmn');
return bootstrapViewer(xml).call(this).then(function(result) {
checkErrors(result.error, result.warnings);
});
}); should be sufficient.
|
7ff92a0
to
8ad9e86
Compare
8ad9e86
to
bada2a8
Compare
…sombrek/bpmn-js into render-vertical-pools-and-lanes
Thank you for your feedback. The suggested test has been added and it passes.
The spec is funny. Pools and lanes shall be horizontal, if either Anyway, is this the point where I should mark the pull request as ready? |
74ed624
to
c4656d1
Compare
|
||
// set attribute directly to avoid modeling#updateProperty side effects | ||
di.set('isHorizontal', true); | ||
di.set('isHorizontal', isHorizontal); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a test case to verify this is being set to the proper thing, on move.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…sombrek/bpmn-js into render-vertical-pools-and-lanes
@nikku and @philippfromme Thanks for your support. I'd like to ask you to reconsider your latest remarks as I feel they extend the scope of this pull request too much. In this pull request I specifically wanted to target vertical rendering, i.e. issue #57 only. As suggested earlier, I added test cases that ensure the attribute remains intact after moving. |
@sombrek Thanks for getting back to us. We believe that supporting a feature end-to-end, especially as the remaining steps are low effort, is valuable. You're right, you planned to contribute rendering. We'll only incorporate rendering once basic modeling works, too. As I understand you you don't have capacity to work on the basic modeling part? If that is the case then we're happy to help out. Note that this may take a little bit longer then to get this merged. |
@nikku Thanks for your feedback. The question is one of scope, not of capacity. I think basic modeling also includes creating, splitting and resizing lanes, which currently don't work vertically either. I don't feel confident yet about possible further additions like considering the direction when adding tasks/events, vertical-specific icons or a "turn pool vertical/horizontal" feature. Those may be out of scope, but I'd like to know where you draw the line, so I know when I'm done. |
Let's really tackle label editing only first and consider everything else a follow-up. Fun fact: Label editing was our first modeling feature, before we could do anything else. |
@nikku Labeling now works as expected. Thanks for pointing me to the code.
Well, you've got to give the baby a name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice contribution 👏. Solid, simple enough.
I implemented a demo, but there were some issues with the lane when adjusting the size |
This demo covers more than just that. You probably didn't try to create swim lanes. Swimlanes can already be split and created vertically, and can be resized, but there are some problems with range limitations. I also noticed your plan. If you are continuing to do it, then I still look forward to your results. Thanks |
Hi there,
I propose an implementation for rendering vertical pools and lanes.
Fixes #57
The labels of vertical pools and lanes as well as the pool label separator are now correctly rendered on top.
Labels of vertical black-box pools are rotated.
The spec implies that horizontal is the default and I adhere to that, i.e. a missing isHorizontal attribute defaults to true.
Could you please provide some information how I can test this?
I thought about adding a vertical version of https://github.com/bpmn-io/bpmn-js/blob/7aee439f47cf0daebcb6131e84f0f9a9d2a51544/test/fixtures/bpmn/draw/pools.bpmn
...but I'm not quite sure if that'll do it.
Kind regards
Showcase