UNPKG

@thi.ng/hiccup-svg

Version:

SVG element functions for @thi.ng/hiccup & related tooling

25 lines 1.04 kB
import type { Attribs } from "./api.js"; /** * Defines an `<svg>` root element with default XML namespaces. By default * currently still defaults to SVG version to 1.1 to support Safari and other * legacy tooling (can be overridden). * * @remarks * If the `__convert` boolean attrib is enabled, all body elements will be * automatically converted using {@link convertTree}. The `__convert` attrib * will be removed afterward and is NOT going to be serialized in the final * output. * * The root `<svg>` element will contain XML namespace declarations for these * namespaces: * * - [svg (default * NS)](https://docs.thi.ng/umbrella/prefixes/variables/XML_SVG.html) * - [`xmlns:inkscape`](https://docs.thi.ng/umbrella/prefixes/variables/XML_INKSCAPE.html) * - [`xmlns:xlink`](https://docs.thi.ng/umbrella/prefixes/variables/XML_XLINK.html) * * @param attribs - attributes object * @param body - shape primitives */ export declare const svg: (attribs: Attribs, ...body: any[]) => any[]; //# sourceMappingURL=svg.d.ts.map