UNPKG

@barcode-bakery/barcode-react

Version:
25 lines (24 loc) 692 B
import { BCGdatabarexpanded as e } from "@barcode-bakery/barcode-databarexpanded"; import { u as B } from "./canvas-hook-CiGCEF_R.js"; function x({ scale: t, foregroundColor: a, backgroundColor: p, offsetX: v, offsetY: s, linkageFlag: n, stacked: r, text: m }) { const { component: f } = B( e, (i) => { t !== void 0 && i.setScale(t), a !== void 0 && i.setForegroundColor(a), p !== void 0 && i.setBackgroundColor(p), v !== void 0 && i.setOffsetX(v), s !== void 0 && i.setOffsetY(s), n !== void 0 && i.setLinkageFlag(n), r !== void 0 && i.setStacked(r), i.parse(m); }, [t, a, p, v, s, n, r, m] ); return f; } export { x as BakeryDatabarexpanded };