0.0.1 • Published 10 months ago

@hufe921/canvas-editor-plugin-barcode v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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>
)