dom-to-vector-pdf
Version:
Convert DOM elements to vector PDFs using jsPDF, dom-to-svg and svg2pdf.js
20 lines • 658 B
TypeScript
import type { FontManager } from './font-manager';
/**
* Convert font weight
* @param weight Font weight
* @returns Normalized font weight
*/
export declare function normalizeFontWeight(weight?: string | number | null): string;
/**
* Calculate SVG symbol scale ratio
*/
export declare function calculateSymbolScale(symbol: SVGElement): number;
/**
* Symbol element in inline SVG
*/
export declare function inlineSvgSymbols(element: HTMLElement | SVGElement): void;
/**
* Recursively process SVG element font attributes
*/
export declare function processSvgFonts(element: Element, fontManager: FontManager): void;
//# sourceMappingURL=utils.d.ts.map