jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

Support exporting entire page as PNG in embed mode #4641

Open kcy1860 opened 2 months ago

kcy1860 commented 2 months ago

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: image

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.)