Closed sverweij closed 8 years ago
👍 That's awesome, thank you. I am sorry to ask, but could you convert this to ES6? I planned to mereg the convert-to-js
branch for the next release.
I anticipated this - you'll get a new PR based on the convert-to-js branch in the coming days.
@sverweij Thank you, sorry for the extra work.
This adds two commands to svg-preview:
svg-preview:export-to-png
andsvg-preview:export-to-jpeg
. When triggered, they execute the following actions (added tolib/svg-preview-view.coffee
in theexportTo
function):lib/svg-to-raster.coffee
.As a first proposal this change binds the commands to context menu items in the previewer (
menus/svg-preview.cson
)Notes: