By default, the exported PNG will only include the diagram instead of the entire page.
Describe the solution you'd like
Support export size between "diagram" and "page" as an option when posting "action: export" message in embed mode. Or please let me know if this is already possible but not documented.
Describe alternatives you've considered
A work around could be to add a transparent square shape to cover the entire page but that messes up the interaction with blank space (trying to click in the black area will select the dummy element.)
Is your feature request related to a problem? Please describe.
In online version or on device version of the tool, there is an option to select if only the diagram or entire page should be exported:
However, this does not seem to be an option when using embed mode according to https://www.drawio.com/doc/faq/embed-mode
By default, the exported PNG will only include the diagram instead of the entire page.
Describe the solution you'd like
Support export size between "diagram" and "page" as an option when posting "action: export" message in embed mode. Or please let me know if this is already possible but not documented.
Describe alternatives you've considered A work around could be to add a transparent square shape to cover the entire page but that messes up the interaction with blank space (trying to click in the black area will select the dummy element.)