A draw.io widget for Siyuan Notes.
To use the widget in your browser, please visit http(s)://host:port/widgets/drawio/?id=<widget block ID>.
For other URL parameters, please refer to Supported URL parameters.
- Load and save.
- The resource files set in the block attributes
custom-data-assetsanddata-assetsare automatically loaded on load. - Use
File->SaveCtrl + S orSave AsCtrl + Shift + S ->SiYuan Noteto save the resource file to the resource folderdata/assets.- The currently supported save formats are
*.drawio,*.png,*.svg,*.html, all of which can be loaded and edited again.*.svgfiles can be inserted to other locations in the notebook usingInsert image linkorInsert IFrame link, and can be updated synchronously when the source files change.*.pngfiles can be inserted to other locations in the notebook usingInsert image linkorInsert IFrame link, and can be updated synchronously when the source files change.*.htmlfiles can be inserted to other locations in the notebook usingInsert IFrame link, and can be updated synchronously when the source files change.
- Resource file reference URL are updated to the block attributes
custom-data-assetswhen saved. - The Save/Save As action creates a new file when the file name is changed, and the Save/Save As action updates the current file when the file name is not changed.
- The currently supported save formats are
- The resource files set in the block attributes
- Other custom block attributes
- Presentation mode.
- Set custom block attribute
lightbox:1 - The mode can only be viewed and cannot be edited.
- After you delete the attribute or change the value of the property to a different value, you can exit the mode by refreshing.
- Set custom block attribute
- Theme mode
- Set custom block attribute
dark:0|1|auto. - The default is the last used theme mode.
- Set custom block attribute
- Theme
- Set custom block attribute
ui:kennedy|min|atlas|dark|sketch|simple. - The default is the last used theme.
- Set custom block attribute
- Presentation mode.
- The
Open in New Tabfeature needs to be used in conjunction with the pluginWeb Page View(webview)
The widget has been put on the shelves at SiYuan community bazaar and can be installed directly in the Bazaar.
| Author | Project | License |
|---|---|---|
| JGraph | jgraph/drawio | Apache-2.0 License |
ps: Sort in no particular order.
