pure-svg-code
pure-svg-code copied to clipboard
Generate qrcode & barcode to svg in pure javascript
Here is my code: ``` const svgString = barcode(original?.label?._id, 'code128', { width: '50', barWidth: 1, barHeight: 20, bgColor: '#ffffff', showHRI: true }); const url = svg2url(svgString); ``` And it looks...
The viewBox property is missing on the svg element. Scaling (inline) svg results in a image which is cut off. Line 798 `qrcode/index.js` ```js var svg = '' + '';...
 希望能够优化下