Skip to content

SvgElementInfo

Unofficial

Options object passed to createSvg.

Signature:

export interface SvgElementInfo

Properties

PropertyTypeDescription
attr?Record<string, boolean | null | number | string>HTML attributes to be added.
cls?string | string[]The class to be assigned. Can be a space-separated string or an array of strings.
parent?NodeThe parent element to be assigned to.
prepend?booleanWhether to prepend the element to the parent. If true, the element will be inserted before the first child of the parent. If false or omitted, the element will be inserted after the last child of the parent.

Links to this page: