drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Support exporting entire page as PNG in embed mode

Open kcy1860 opened this issue 1 year ago • 0 comments

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

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

kcy1860 avatar Sep 05 '24 07:09 kcy1860