@hufe921/canvas-editor-plugin-barcode
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

/@hufe921/canvas-editor-plugin-barcode/

    Package Sidebar

    Install

    npm i @hufe921/canvas-editor-plugin-barcode

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    5.88 MB

    Total Files

    8

    Last publish

    Collaborators

    • hufe