TypeFox / yang-vscode

A VS Code Extension for YANG
Apache License 2.0
26 stars 10 forks source link

Save Yang Diagram #72

Closed FaizanFrolic closed 1 year ago

FaizanFrolic commented 1 year ago

Can we have the option to save the yang diagram with good resolution? When the yang file is big we can not take a screenshot that fits in page

dhuebner commented 1 year ago

@FaizanFrolic Is it not exported as SVG? For an SVG it is no problem to scale afterwards. Also I think it's a Sprotty feature, need to investigate first.

FaizanFrolic commented 1 year ago

@dhuebner mouse right-click does not work on the image. tried the "file-> save as" option but doesn't work. do we have any command to save the file as SVG? or does it saved by default to some default location on the system?

dhuebner commented 1 year ago

@FaizanFrolic

do we have any command to save the file as SVG?

There is a Sprotty feature for SVG export. On Mac it's CMD+Shift+E, thought didn't try it with Yang diagrams.

dhuebner commented 1 year ago

@FaizanFrolic It works for me with Yangster using ALT-E, see here

FaizanFrolic commented 1 year ago

@dhuebner Thank You :)