UNPKG

@barcode-bakery/barcode-react

Version:
28 lines (27 loc) 761 B
import { BCGaztec as B } from "@barcode-bakery/barcode-aztec"; import { u as O } from "./canvas-hook-CiGCEF_R.js"; function u({ scale: t, foregroundColor: s, backgroundColor: v, offsetX: f, offsetY: p, errorLevel: a, size: m, tilde: n, rune: S, text: z }) { const { component: y } = O( B, (i) => { t !== void 0 && i.setScale(t), s !== void 0 && i.setForegroundColor(s), v !== void 0 && i.setBackgroundColor(v), f !== void 0 && i.setOffsetX(f), p !== void 0 && i.setOffsetY(p), a !== void 0 && i.setErrorLevel(a), m !== void 0 && i.setSize(m), n !== void 0 && i.setTilde(n), S !== void 0 && i.setRune(S), i.parse(z); }, [t, s, v, f, p, a, m, n, S, z] ); return y; } u.Size = B.Size; export { u as BakeryAztec };