Closed bertrandmartel closed 6 years ago
Nice work... as soon I get my hands back to my macbook I will look at your PRs... PS. I did not check... did you describe it a bit in the readme?
@bertrandmartel ok, as soon you describe the new functionalities in the readme and in the gh-page with an example (https://github.com/adrai/flowchart.js/blob/gh-pages/index.html) or at least a proposal... ;-) I will merge the PRs Well done! 👍
I've added in the readme
'cond=>condition: Yes \n' + // use cond(align-next=no) to disable vertical align of symbols below
I've updated gh-pages locsize demo with more aligned conditions. Is that ok or you prefer to setup a new demo ?
@adrai Also do you want me to commit the release
folder ?
It's ok, I will do the rest... 😉
I came across this PR and the issue it solves today by chance through a post on StackOverflow. I'm just curious, why not make this the default for diagrams created with flowchart.js? It seems to me that flowcharts look a lot better when parallel items are not scattered all over the place but kept in one column.
I've noticed that when multiple elements are aligned the upper condition element is aligning to the left of the bottom right hand element. For example, I have this configuration
You can reproduce with
I've forked and modified the library to add ability to put parameters for symbol declaration such as
This is done using
In flowchart.symbol.condition I identified the code responsible for identifying if an element is under this one : here
After applying the new configuration which indicates not to vertical align the next element
It gives
What do you think about this ?