@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
36 lines (35 loc) • 1.23 kB
TypeScript
export declare const svgDomApi: {
toString(): string;
text(text: string): Text;
textContent(node: Node, text: string): void;
element: (tagName: string) => SVGElement;
attr: (element: SVGElement, name: string, value: string) => void;
prop: (element: SVGElement, name: string, value: string) => void;
append: (parent: SVGElement, child: SVGElement) => void;
insert: (parent: SVGElement, child: SVGElement) => void;
};
export declare const mathDomApi: {
toString(): string;
text(text: string): Text;
textContent(node: Node, text: string): void;
element: (tagName: string) => SVGElement;
attr: (element: SVGElement, name: string, value: string) => void;
prop: (element: SVGElement, name: string, value: string) => void;
append: (parent: SVGElement, child: SVGElement) => void;
insert: (parent: SVGElement, child: SVGElement) => void;
};
export declare function SVGProvider(): {
nodes: never[];
ctx: null;
tpl: TemplateStringsArray;
};
export declare function HTMLProvider(): {
nodes: never[];
ctx: null;
tpl: TemplateStringsArray;
};
export declare function MathMLProvider(): {
nodes: never[];
ctx: null;
tpl: TemplateStringsArray;
};