UNPKG

@syncfusion/ej2-barcode-generator

Version:

Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code.

45 lines (44 loc) 1.56 kB
import { IBarcodeRenderer } from './IRenderer'; import { BaseAttributes } from './canvas-interface'; /** * svg renderer */ /** @private */ export declare class BarcodeSVGRenderering implements IBarcodeRenderer { /** * Draw the root element for the barcode.\ * * @returns {HTMLElement} Draw the barcode SVG . * @param {Object} attribute - Provide the canvas element . * @param {string} backGroundColor - Provide the canvas element . * @private */ renderRootElement(attribute: Object, backGroundColor: string): HTMLElement; /** * Draw the rect for the barcode.\ * * @returns {HTMLElement} Draw the barcode SVG . * @param {Object} svg - Provide the canvas element . * @param {Object} attribute - Provide the canvas element . * @private */ renderRect(svg: HTMLElement, attribute: BaseAttributes): HTMLElement; /** * Draw the text for the barcode.\ * * @returns {HTMLElement} Draw the barcode SVG . * @param {Object} svg - Provide the canvas element . * @param {Object} attribute - Provide the canvas element . * @private */ renderText(svg: HTMLElement, attribute: BaseAttributes): HTMLElement; /** * Draw the image for the barcode. * * @returns {HTMLElement} Draw the barcode SVG . * @param {Object} svg - Provide the canvas element . * @param {Object} attribute - Provide the canvas element . * @private */ renderImage(svg: HTMLElement, attribute: BaseAttributes): HTMLElement; }