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

sequence diagram config issue #385

Closed
michaelritsema opened this issue Sep 1, 2016 · 7 comments
Closed

sequence diagram config issue #385

michaelritsema opened this issue Sep 1, 2016 · 7 comments

Comments

@michaelritsema
Copy link

sequence diagrams aren't always picking up the config:

example config:

mermaid.sequenceConfig = {
diagramMarginX:50,
diagramMarginY:10,
boxTextMargin:5,
noteMargin:10,
messageMargin:35,
mirrorActors:true
};

more details on issue: tylerlong/markdown-plus#73

@kaithar
Copy link

kaithar commented Nov 25, 2016

Seconded... I've got a sequence diagram that's not registering the config:

        mermaid.initialize({
            startOnLoad:true,
            sequenceDiagram:{
                mirrorActors:false
            }
        })

mirrorActors doesn't seem to work.

@knsv
Copy link
Collaborator

knsv commented Nov 27, 2016

Very odd. I just tried this with the following example file withtout beeing able to reproduce the issue:
https://github.com/knsv/mermaid/blob/master/test/examples/seq.html

What version of mermaid are you trying this with?

@kaithar
Copy link

kaithar commented Nov 29, 2016

I'm loading https://cdn.rawgit.com/knsv/mermaid/0.5.8/dist/mermaid.min.js at the end of the page.

@kaithar
Copy link

kaithar commented Nov 29, 2016

Ok, I've just tried and it looks like the initialize call works fine if the script tag is in the head tag instead of the body, though that's somewhat inconvenient for my current use.

@tylerlong
Copy link
Collaborator

Latest syntax is

mermaid.initialize({
            sequence:{
                ...
            }
        })

@fmatheus
Copy link

Still not working here, could you please disambiguate:
mirrorActor or mirrorActors? (default is still false? I'm using Mermaid Online Editor, and it seems not set it to true anywhere... but it still mirror by default).
sequence or sequenceConfig?
init or initialize?

@tylerlong
Copy link
Collaborator

initialize, sequence & mirrorActors are correct.

By default mirrorActors is true. And Mermaid Online Editor doesn't support users to change mermaid config (at the moment), so you won't be able to change it there. You need to create a sample HTML page to test it.

@fmatheus

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

5 participants