microsoft/SandDance

Command for Embed control to export image

mscherotter opened this issue · 2 comments

I would like to export an image from the control

  1. Add a command to initiate the export
  2. Add an event to signal the export has been completed. The payload of the message should include the image file.

related: #571

This feature may need some spec'ing out. For example, should the color legend be included? (Probably).
Currently the canvas is easily exportable as png, but our legend is in the DOM and would require a library such as one of these HTML to Canvas renderers.

The value of exporting the canvas is definitely there if it's easier to do than the whole control.