Skip to content

CreateSvgElementInfo

The SVG element information createSvgAsync applies: the subset of Obsidian’s SvgElementInfo it supports, declared here so this module needs no Obsidian typings.

Import:

import type { CreateSvgElementInfo } from '@mnaoumov/typescript-lib/html-element';

Signature:

export interface CreateSvgElementInfo

Properties

PropertyTypeDescription
attr?Record<string, boolean | null | number | string>The attributes to set; null removes the attribute.
cls?string | string[]The CSS class or classes.
parent?NodeThe parent to insert the element into.
prepend?booleanWhether to insert the element as the parent's first child instead of its last.

Links to this page: