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

Allow overriding sequence diagram configuration (SVG properties) #103

Closed
jjmr opened this issue Jan 14, 2015 · 3 comments
Closed

Allow overriding sequence diagram configuration (SVG properties) #103

jjmr opened this issue Jan 14, 2015 · 3 comments

Comments

@jjmr
Copy link

jjmr commented Jan 14, 2015

Sometimes, it's useful to increase the width between actors, the notes width or the margin to fit some large texts that are not well rendered with the default configuration. These configuration properties are used in the sequenceRenderer and are set in the file as constants. A setConf method already exists but it's not used (only in tests).

It would be great if a new parameter is added to the console client to allow overriding these properties with new ones. This new parameter could specify the path of a file with the configuration options in a JSON file.

@knsv
Copy link
Collaborator

knsv commented Jan 14, 2015

Thanks for this addition jjmr!
It was a good idea! Could you possibly also add to the docs for this so that people will know about the feature and how to use it?

Perhaps an update to mermaidCLI.md and sequenceDiagram.md

I know that an example configuration without digging through the code will be much appreciated.

You don't need to compile the site to html just updates to the md files are fine. Then the updates will tag along when the html files are refreshed.

@jjmr
Copy link
Author

jjmr commented Jan 15, 2015

Yes, of course! Today I will create a PR with the doc.

@knsv
Copy link
Collaborator

knsv commented Jan 25, 2015

This has been included in release 0.3.3

@knsv knsv closed this as completed Jan 25, 2015
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

No branches or pull requests

2 participants