bpmn-io / bpmn-auto-layout

Layout BPMN diagrams, generating missing DI information.
50 stars 40 forks source link

48 link events #58

Closed abdul99ahad closed 1 week ago

abdul99ahad commented 1 week ago

Closes #48

Proposed Changes

Issue 1: Multiple start events ![image](https://github.com/user-attachments/assets/ed30e028-718c-4c10-81a4-9f0f45e67980) Resolution: ![image](https://github.com/user-attachments/assets/89dd6f8b-39fb-4e0a-8eee-87d46f7270d1) Issue 2: Multiple gateway elements connected must be in single row ![image](https://github.com/user-attachments/assets/d4420985-1426-4ea2-8571-c2a9d7a0f202) Resolution: ![image](https://github.com/user-attachments/assets/1250b080-6efa-40c9-bcba-dd139b876392) ### Changes Implemented: - Modified the logic to only include elements of type bpmn:StartEvent when processing starting elements. - Added an incomingHandler to check whether an element has more than one incoming edge - If the element has multiple incoming edges, the handler now sends the second one to the grid below. - Updated the handling of gateways to ensure they are displayed on a single row in the grid. ### Checklist To ensure you provided everything we need to look at your PR: * [ ] **Brief textual description** of the changes present * [ ] **Visual demo** attached * [ ] **Steps to try out** present, i.e. [using the `@bpmn-io/sr` tool](https://github.com/bpmn-io/sr) * [ ] Related issue linked via `Closes {LINK_TO_ISSUE}` or `Related to {LINK_TO_ISSUE}`