@barcode-bakery/barcode-react
Version:
Generates barcodes for React.
2 lines (1 loc) • 693 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("@barcode-bakery/barcode-aztec"),r=require("./canvas-hook-DKiN9jsI.cjs");function B({scale:t,foregroundColor:e,backgroundColor:s,offsetX:a,offsetY:v,errorLevel:n,size:z,tilde:S,rune:f,text:u}){const{component:p}=r.useCanvasDisplay(y.BCGaztec,i=>{t!==void 0&&i.setScale(t),e!==void 0&&i.setForegroundColor(e),s!==void 0&&i.setBackgroundColor(s),a!==void 0&&i.setOffsetX(a),v!==void 0&&i.setOffsetY(v),n!==void 0&&i.setErrorLevel(n),z!==void 0&&i.setSize(z),S!==void 0&&i.setTilde(S),f!==void 0&&i.setRune(f),i.parse(u)},[t,e,s,a,v,n,z,S,f,u]);return p}B.Size=y.BCGaztec.Size;exports.BakeryAztec=B;