UNPKG

@barcode-bakery/barcode-react

Version:
28 lines (27 loc) 811 B
import { BCGpdf417 as D } from "@barcode-bakery/barcode-pdf417"; import { u as E } from "./canvas-hook-CiGCEF_R.js"; function P({ scale: s, foregroundColor: t, backgroundColor: v, offsetX: f, offsetY: p, quietZone: m, compact: n, column: B, errorLevel: a, ratio: y, text: C }) { const { component: O } = E( D, (i) => { s !== void 0 && i.setScale(s), t !== void 0 && i.setForegroundColor(t), v !== void 0 && i.setBackgroundColor(v), f !== void 0 && i.setOffsetX(f), p !== void 0 && i.setOffsetY(p), m !== void 0 && i.setQuietZone(m), n !== void 0 && i.setCompact(n), B !== void 0 && i.setColumn(B), a !== void 0 && i.setErrorLevel(a), y !== void 0 && i.setRatio(y), i.parse(C); }, [s, t, v, f, p, m, n, B, a, y, C] ); return O; } export { P as BakeryPdf417 };