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

PR 1482 redux #1484

Merged
merged 15 commits into from Jun 19, 2020
Merged

PR 1482 redux #1484

merged 15 commits into from Jun 19, 2020

Conversation

chrismoran-bkt
Copy link
Contributor

📑 Summary

Take a look. I don't have access to Percy (Looks neat) for your project.

I also fixed the issue you saw with loop titles not wrapping. I set the default for loop titles to always wrap no matter what. I'm not sure if this should really be configurable as all it can really do is make the diagram look really bad if it's unwrapped.

Resolves #1483

📏 Design Decisions

Lots and lots of maths.

I added some naughty functions to sequenceDiagram's config object. The merging of config from mermaidAPI/etc should not affect it. The reason for the functions are to simplify getting a font object for calculating text dimensions and for wrapping text.

@knsv
Copy link
Collaborator

knsv commented Jun 19, 2020

Thank, I am glad you took the time. Will merge, then results wil show up here.
https://percy.io/Mermaid/mermaid

@knsv knsv merged commit 280c89a into mermaid-js:feature/1483_long_messages Jun 19, 2020
@knsv
Copy link
Collaborator

knsv commented Jun 19, 2020

Ideally percy should run for all PRs but it only runs for PRs from members.

@chrismoran-bkt
Copy link
Contributor Author

Ah. I've never had the need to pay for github. Maybe this could be my impetus.

@chrismoran-bkt
Copy link
Contributor Author

Grr. I thought I had Sequence diagram background rects should render a single and nested opt with long test overflowing fixed.

@chrismoran-bkt
Copy link
Contributor Author

Found the issue. As always. Simple fix.

@knsv
Copy link
Collaborator

knsv commented Jun 19, 2020

Some of the detected changes is due to some fonmt setting that is not set properly. The member thing is beeing a member is mermaid. If you want I can invite you, then you can commit to this branch and percy will trigger without my involvement. If to you our slack channel and ping knsv, then I will invite you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants