Replies: 4 comments
-
|
Hey, Thanks a lot for that feature! Are you planning on implementing a way to explicitly emit an error/warning during drawing or/and exporting to svg, rather than silently falling back to foreignObject ? |
Beta Was this translation helpful? Give feedback.
-
|
This feature is indeed useful - I wonder, could it be extended to include the background color also? I realise that technically SVG canvas color does not exist, but this can be overcome by using Indeed that appears to be what happens when you export diagrams via [File > Export as > SVG] and deselect transparent background. Certainly this would help for many of my own diagrams, which rely on the label background color to contrast against underlying objects. |
Beta Was this translation helpful? Give feedback.
-
|
Use Convert labels to SVG instead:
See #5165 |
Beta Was this translation helpful? Give feedback.
-
|
Updated behavior: "Convert labels to SVG" is now disabled for labels with unsupported HTML Starting with version 29.6.7, the Convert labels to SVG checkbox in the Format panel is grayed out and disabled when any selected cell's label contains HTML elements that cannot be converted to native SVG text. Previously, enabling this option on a label with unsupported HTML would silently fall back to Additionally, word wrapping is now supported for labels that have been converted to SVG. This removes the previous limitation where word wrapping was disabled for successfully converted labels. Supported HTML elements for SVG conversion:
What is NOT supported (will cause the option to be disabled):
If you need SVG-compatible output and your label contains unsupported elements, reformat the label to use only the supported elements listed above. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
SVG Label Rendering Option
By default, formatted text and text with word wrapping are rendered as HTML using
foreignObjectelements. However, this approach may cause compatibility issues in certain viewers.Enabling this option will attempt to render labels as SVG, using
<text>and<tspan>elements instead of HTML. Currently, the following is supported: bold, italic, underline,strikethrough, superscript, subscript,<font>and<span>elements. If the label cannot be represented as SVG, aforeignObjectwill be used instead.Note: Word wrapping is disabled for labels that were successfully converted when this option is enabled.
Requires v28.0.3 or later
Beta Was this translation helpful? Give feedback.
All reactions