Skip to content

[FEAT] Disable pool collapsing#307

Merged
tbouffard merged 3 commits into
masterfrom
feat/disable_pools_collapsing
Mar 21, 2022
Merged

[FEAT] Disable pool collapsing#307
tbouffard merged 3 commits into
masterfrom
feat/disable_pools_collapsing

Conversation

@tbouffard
Copy link
Copy Markdown
Member

The upcoming bpmn-visualization version changes the edge rendering. There is no more usage of the Segment Connector.
This setting was recomputing the whole edge path. It was able to set the terminal waypoints to the collapsed pools when
the edge was targeting a inner element of the pool (hidden when the pool is collapsed).
There is no more waypoints' computation with the new implementation: in this case, we see a dangling edge. The edge
terminal waypoint are inside the pool.

See #306 and process-analytics/bpmn-visualization-js#1863 (comment)

Live environment of examples

https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/feat/disable_pools_collapsing/examples/index.html

The upcoming bpmn-visualization version changes the edge rendering. There is no more usage of the Segment Connector.
This setting was recomputing the whole edge path. It was able to set the terminal waypoints to the collapsed pools when
the edge was targeting a inner element of the pool (hidden when the pool is collapsed).
There is no more waypoints' computation with the new implementation: in this case, we see a dangling edge. The edge
terminal waypoint are inside the pool.
@tbouffard tbouffard added the enhancement New feature or request label Mar 18, 2022
@tbouffard tbouffard requested a review from csouchet March 18, 2022 15:00
Comment thread examples/custom-behavior/select-elements-by-bpmn-kind/index.html Outdated
<div class="radio">
<label><input type="radio" name="poolSelectionMethod" value="hide" checked> Hide others</label>
</div>
<!-- Disable collapsing: see https://github.com/process-analytics/bpmn-visualization-examples/pull/306
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it an omission ?
If not, no need a single radio button for hide 🙂

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I wanted to limit the modifications especially in the js code.
Here is what we see for now
image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I found weird, but ok 👍🏻

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@csouchet based on your feedback, I removed the radio button in 406eb9f

image

@tbouffard tbouffard merged commit 71ccea7 into master Mar 21, 2022
@tbouffard tbouffard deleted the feat/disable_pools_collapsing branch March 21, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants