Skip to content

globals/functions/createSvg

Mock of Obsidian’s global createSvg helper, which builds an SVG element from SvgElementInfo options.

Function Description
createSvg Creates an element in the SVG namespace and applies its options: class and attributes, then appends it to parent (or prepends it when prepend is set).