@tjieco/library
Version:
TypeScript port of ZXing multi-format 1D/2D barcode image processing library, with Code128 and ITF support.
13 lines (12 loc) • 558 B
TypeScript
import EncodeHintType from '../core/EncodeHintType';
declare class BrowserQRCodeSvgWriter {
private static readonly QUIET_ZONE_SIZE;
private static readonly SVG_NS;
private containerElement;
constructor(containerElement: string | HTMLElement);
write(contents: string, width: number, height: number, hints?: Map<EncodeHintType, any>): SVGSVGElement;
private renderResult(code, width, height, quietZone);
private createSVGElement(w, h);
private createSvgRectElement(x, y, w, h);
}
export { BrowserQRCodeSvgWriter };