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 (also known as diagrams.net) are supported when saved as svg files, with embedded XML metadata for the draw.io source file (normally stored as .drawio).
This allows these images to both act as source files for the diagrams that can be edited in the future, and be rendered as normal svg files.
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.
This method is applicable to both draw.io desktop and the web version at diagrams.net.
要导出,请转到``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`的指南。