canvas-editor-plugin-barcode
barcode plugin for canvas-editor
usage
npm i @hufe921/canvas-editor-plugin-barcode --save
import Editor from "@hufe921/canvas-editor"
import barcodePlugin from "@hufe921/canvas-editor-plugin-barcode"
const instance = new Editor()
instance.use(barcodePlugin)
instance.executeInsertBarcode1D(
content: string,
width: number,
height: number,
options?: JsBarcode.Options
)
instance.executeInsertBarcode2D(
content: string,
width: number,
height: number,
hints?: Map<EncodeHintType, any>
)