Draw.io保存说明
警告
Make sure you don’t modify any file that is in a diagrams
folder, or ends in .drawio.svg
in any program other than draw.io; otherwise you might risk breaking the metadata of the file, making it uneditable.
将Draw.io(也称为`diagrams.net <https://app.diagrams.net/>`__)保存为``svg’’文件时,支持draw.io源文件的嵌入式XML元数据(通常存储为``.drawio’’)。这使这些图像既可以用作图表的源文件,也可以在以后进行编辑,并以普通的svg文件的形式呈现。
There are a few methods to save a diagram with the embedded metadata, but using the export menu is preferred because it allows us to embed any images in the diagram; otherwise they might not render properly on the docs.
此方法适用于draw.io桌面版本和`diagrams.net <https://app.diagrams.net/>`__上的Web版本。
要导出,请转到``File - Export as - SVG…``。确保启用了``Include a copy of my diagram``以嵌入图元数据,并且启用了``Embed Images``,以便嵌入图中的图像文件,以便它们在文档中呈现。另外,标记``Transparent Background`` 选项以确保背景正确显示。
导出菜单应如下所示:
然后只需单击``Export’’,然后选择要保存文件的位置并保存它。
备注
保存时,检查是否跟从了:ref:`docs/contributing/frc-docs/style-guide:Draw.io Files`的指南。