metafloor / bwip-js

Barcode Writer in Pure JavaScript
Other
2.1k stars 301 forks source link

Support for Swiss QR? #217

Closed vpetrovych closed 3 years ago

vpetrovych commented 3 years ago

It seems BWIPP supports Swiss QR, but I couldn't find reference in bwip-js. Is it possible to support it?

https://github.com/bwipp/postscriptbarcode/wiki/Swiss-QR-Code

vpetrovych commented 3 years ago

When I try to just use it with swissqrcode, I get the following error:

2:36:50 PM web.1 |  TypeError: $$.clip is not a function
2:36:50 PM web.1 |      at bwipp_swissqrcode (/Users/vladykx/Developer/barcode-gen/node_modules/bwip-js/dist/bwip-js-node.js:22846:12)
2:36:50 PM web.1 |      at bwipp_encode (/Users/vladykx/Developer/barcode-gen/node_modules/bwip-js/dist/bwip-js-node.js:35158:5)
2:36:50 PM web.1 |      at _Render (/Users/vladykx/Developer/barcode-gen/node_modules/bwip-js/dist/bwip-js-node.js:231:5)
2:36:50 PM web.1 |      at Object.ToBuffer [as toBuffer] (/Users/vladykx/Developer/barcode-gen/node_modules/bwip-js/dist/bwip-js-node.js:90:10)
metafloor commented 3 years ago

See issue #210.

vpetrovych commented 3 years ago

Sorry, missed that issue.