-
Notifications
You must be signed in to change notification settings - Fork 133
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
Feature Request: Configuring parameters for png export in embed mode #1590
Comments
We'll add the following optional parameters in the next release: width (px) defines the width of the image to be exported, border (px) defines the border, shadow (boolean) specifies if a shadow filter should be applied to the export, grid (boolean) specifies if a grid should be added, keepTheme (boolean) specifies if the theme should be kept (eg. for dark themes), transparent (boolean) specifies if a transparent background should be used and background (string) specifies the background color. |
Thanks! How can I set a zoom level if I don't know the dimensions? I think having both a fixed width export and a fixed dpi export would be useful. |
Not sure if I understand: We'll have a width (in pixels) and a scale (zoom), do you need something else? |
So you have a scale/zoom parameter? Then I'm happy ;) You didn't mention it in your listing. |
It was already there. But yes. We're trying to document all the options here: https://www.diagrams.net/doc/faq/embed-mode |
Is your feature request related to a problem? Please describe.
Some users of the Draw.io VS Code extension would love to set parameters when exporting or saving the diagram as png image. Most importantly, this includes the zoom parameter.
Describe the solution you'd like
![95143512-90189e80-0776-11eb-8457-a3d6e246a354](https://user-images.githubusercontent.com/2931520/101614363-25514100-3a0d-11eb-92bb-dcbfc832eeef.jpg)
If embedded mode consumers could specify the following parameters in the export action, I could implement that feature in the Draw.io extension:
This could look like this:
The text was updated successfully, but these errors were encountered: