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

[FIX] Fill the sequence flow conditional start marker #1366

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Jun 14, 2021

This avoids seeing the sequence flow line over the marker at some zoom level.

Implementation notes:
  - it requires custom code as mxgraph doesn't support filling the markers out
  of the box.
  - it is also applied to message flow markers without functional changes to
  prepare future changes (currently use transparent colors).
  - it is possible to change all marker fill colors as for other defaults.

closes #991
covers #995

@tbouffard tbouffard added bug Something isn't working BPMN rendering Something about the way the lib is rendering BPMN elements labels Jun 14, 2021
@tbouffard
Copy link
Member Author

tbouffard commented Jun 14, 2021

Sequence flow conditional marker with custom colors

sequence_flow_fill_marker

Message flow start and end markers with custom colors

Note: filling the end markers will prevent change if we decide to stop forcing orthogonal edge segments (see #295 and #351 (comment))

message_flows_fill_markers

Fixed sequence flow conditional marker

adonis-np-8_0-miwg-A.2.1-export.bpmn (from miwg-test-suite)

As described in #991

adonis-np-8_0-miwg-A.2.1-export.bpmn

With this PR
image

@tbouffard tbouffard marked this pull request as draft June 14, 2021 16:52
@github-actions
Copy link

github-actions bot commented Jun 14, 2021

♻️ PR Preview 70c305b has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Jun 14, 2021

♻️ PR Preview 70c305b has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

This avoids seeing the sequence flow line over the marker at some zoom level.

Implementation notes:
  - it requires custom code as mxgraph doesn't support filling the markers out
  of the box.
  - it is also applied to message flow markers without functional changes to
  prepare future changes (currently use transparent colors).
  - it is possible to change all marker fill colors as for other defaults.
@tbouffard tbouffard force-pushed the fix/991-fill_conditional-flow_marker branch from 166e5ef to 3796afb Compare June 14, 2021 21:51
@tbouffard tbouffard changed the title [FIX] Always fill the start and end flow markers [FIX] Fill the sequence flow conditional start marker Jun 14, 2021
@tbouffard tbouffard marked this pull request as ready for review June 15, 2021 06:54
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

95.6% 95.6% Coverage
0.0% 0.0% Duplication

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 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Conditional sequence flow marker sometimes overlapped by the edge line
2 participants