UNPKG

jianpurender

Version:

Render music score using SVG on browsers.

10 lines (9 loc) 990 B
export declare const SVGNS = "http://www.w3.org/2000/svg"; export declare function drawSVGPath(e: SVGElement, path: string, x: number, y: number, scaleX: number, scaleY: number, opacity?: number): SVGPathElement; export declare function drawSVGText(e: SVGElement, text: string, x: number, y: number, fontSize: string, fontWeight?: string, textAnchor?: 'start' | 'middle' | 'end', dominantBaseline?: string, fill?: string, opacity?: number): SVGTextElement; export declare function createSVGGroupChild(parent: SVGElement, id?: string): SVGGElement; export declare function setBlinkAnimation(e: SVGElement, enable?: boolean, duration?: string): SVGElement; export declare function setFill(e: SVGElement, color: string): void; export declare function setStroke(e: SVGElement, color: string, strokeWidth: number): void; export declare function highlightElement(e: SVGElement, color: string): SVGElement; export declare function resetElementHighlight(e: SVGElement, defaultColor: string): void;