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 CreateSvgElementInfoProperties
| Property | Type | Description |
|---|---|---|
| attr? | Record<string, boolean | null | number | string> | The attributes to set; null removes the attribute. |
| cls? | string | string[] | The CSS class or classes. |
| parent? | Node | The parent to insert the element into. |
| prepend? | boolean | Whether to insert the element as the parent's first child instead of its last. |
Links to this page: