plugin:diagrams
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:diagrams [2021-01-18 18:34] – Aleksandr | plugin:diagrams [2024-01-06 00:29] (current) – Aleksandr | ||
---|---|---|---|
Line 5: | Line 5: | ||
author | author | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
- | type : | + | type : |
- | lastupdate : 2021-01-18 | + | lastupdate : 2023-12-14 |
- | compatible : Hogfather | + | compatible : Jack Jackrum, !Igor |
depends | depends | ||
- | conflicts | + | conflicts |
similar | similar | ||
tags : diagram | tags : diagram | ||
Line 17: | Line 17: | ||
sourcerepo : https:// | sourcerepo : https:// | ||
- | screenshot_img : | + | screenshot_img : https:// |
---- | ---- | ||
- | [[https:// | + | [[https:// |
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
===== Usage ===== | ===== Usage ===== | ||
Line 30: | Line 30: | ||
This plugin lets users create and edit diagrams in DokuWiki. In provides an integration with the online diagramming tool [[https:// | This plugin lets users create and edit diagrams in DokuWiki. In provides an integration with the online diagramming tool [[https:// | ||
- | The diagrams are internally | + | |
+ | ==== Diagram Storage Modes ==== | ||
+ | |||
+ | The plugin provides two different ways to store the resulting diagrams: | ||
+ | |||
+ | - **mediafile mode** When using this mode, diagrams are saved as SVG images as regular media files. That means storing older versions of files and applying [[: | ||
+ | - **embed mode** When using this mode, the actual SVG code is embedded directly into a wiki page using the ''< | ||
+ | |||
+ | Which modes are available to your users is configured in the plugin' | ||
+ | |||
+ | Please note that diagrams can not easily be transferred from one mode to the other. | ||
==== Create a diagram ==== | ==== Create a diagram ==== | ||
- | Diagrams are created in the media manager, either the [[: | + | Creating a diagram differs depending on the used storage mode: |
+ | |||
+ | - **mediafile mode** | ||
+ | - **embed mode** A new toolbar button allows you to insert a new diagram. Clicking the button will open the diagrams.net Editor and when saving the diagram is inserted at the current cursor position. | ||
+ | |||
+ | ==== Insert a diagram ==== | ||
+ | |||
+ | - **mediafile mode** Diagrams are inserted using the standard [[wiki: | ||
+ | - **embed_mode** Additional parameters for the toolbar button inserted ''< | ||
==== Edit a diagram ==== | ==== Edit a diagram ==== | ||
- | Edit buttons are available in two places: | + | Existing diagrams can always be edited from viewing a page that uses the diagram. The diagram will have a "Edit Diagram" |
- | * in the [[: | + | |
- | * on a wiki page with an embedded diagram | + | Depending on the storage mode, edits can also happen elsewhere: |
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | ==== Prosemirror Support ==== | ||
+ | |||
+ | This plugin support | ||
+ | |||
+ | ==== PNG Caching ==== | ||
+ | |||
+ | The plugin works with SVGs by default. However SVGs created by diagrams.net use certain features (most notably multiline and formatted texts) that only work, when the SVG is displayed in a Webbrowser. This means that those features will be lost when exporting to PDF using the [[dw2pdf|dw2pdf Plugin]]. Please note that this is not true when using the browser' | ||
+ | |||
+ | To work around this, the Plugin can optionally save a PNG based cache file for each diagram on saving and use that cache file when exporting to PDF. Enable the '' | ||
+ | |||
+ | ===== Comparison ===== | ||
+ | |||
+ | This plugin was inspired by a few other plugins that integrate diagrams.net/ | ||
+ | |||
+ | ^ ^ **[[plugin: | ||
+ | ^ Format | ||
+ | ^ Storage | ||
+ | ^ Links in Diagrams | ||
+ | ^ Custom Diagrams Host | ✅ yes | ✅ yes | ✅ yes | | ||
+ | ^ Draft saving for Diagrams | ||
+ | ^ PDF Export | ||
+ | ^ ODT Export | ||
plugin/diagrams.1610991265.txt.gz · Last modified: 2021-01-18 18:34 by Aleksandr