UNPKG

dom-to-svg

Version:
22 lines 1.83 kB
export declare const svgNamespace = "http://www.w3.org/2000/svg"; export declare const xlinkNamespace = "http://www.w3.org/1999/xlink"; export declare const xhtmlNamespace = "http://www.w3.org/1999/xhtml"; export declare const isElement: (node: Node) => node is Element; export declare const isTextNode: (node: Node) => node is Text; export declare const isCommentNode: (node: Node) => node is Comment; export declare const isSVGElement: (element: Element) => element is SVGElement; export declare const isSVGSVGElement: (element: Element) => element is SVGSVGElement; export declare const isSVGGraphicsElement: (element: Element) => element is SVGGraphicsElement; export declare const isSVGGroupElement: (element: Element) => element is SVGGElement; export declare const isSVGAnchorElement: (element: Element) => element is SVGAElement; export declare const isSVGTextContentElement: (element: Element) => element is SVGTextContentElement; export declare const isSVGImageElement: (element: Element) => element is SVGImageElement; export declare const isSVGStyleElement: (element: Element) => element is SVGStyleElement; export declare const isHTMLElement: (element: Element) => element is HTMLElement; export declare const isHTMLAnchorElement: (element: Element) => element is HTMLAnchorElement; export declare const isHTMLLabelElement: (element: Element) => element is HTMLLabelElement; export declare const isHTMLImageElement: (element: Element) => element is HTMLImageElement; export declare const isHTMLInputElement: (element: Element) => element is HTMLInputElement; export declare const hasLabels: (element: HTMLElement) => element is HTMLElement & Pick<HTMLInputElement, "labels">; export declare function traverseDOM(node: Node, shouldEnter?: (node: Node) => boolean): Iterable<Node>; //# sourceMappingURL=dom.d.ts.map