Skip to content

createSvg<K>

Import:

import 'obsidian-test-mocks/setup';

Signature:

function createSvg(this: Node, tag: K, o: string | SvgElementInfo | undefined, callback: ((el: SVGElementTagNameMap[K]) => void) | undefined): SVGElementTagNameMap[K]

Parameters:

ParameterTypeDescription
thisNode
tagK
ostring | SvgElementInfo | undefined
callback((el: SVGElementTagNameMap[K]) => void) | undefined

Returns: SVGElementTagNameMap[K]