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

Support rotate of diagrams #240

Open
wimdeblauwe opened this issue Sep 23, 2019 · 1 comment
Open

Support rotate of diagrams #240

wimdeblauwe opened this issue Sep 23, 2019 · 1 comment

Comments

@wimdeblauwe
Copy link

If possible, it would be great if diagrams could be rotated 90 degrees. For example, if you include a PlantUML sequence diagram, it can get quite wide. So if it could be rotated, it will be more readable (in the PDF output).

As a workaround, it is possible to have a landscape page, just with the diagram like this:

Some text here at previous page.

[page-layout=landscape]
<<<
Sequence diagram of the flow:

plantuml::mysequencediagram.puml[format=svg]

[page-layout=portrait]
<<<

Rest of the document here.

It is not completely the same of course, rotating the diagram would be better when printing the PDF as all pages remain in portrait.

@pepijnve
Copy link
Member

This feels like something the rendering backend could take care of. Especially in PDF (and even in HTML these days), you can specify this type of transformation easily per image.
@mojavelinux do the html5 and/or pdf backends already have some kind of means to specify an affine transform matrix (or something similar) per image?

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

No branches or pull requests

2 participants