rxing-core / rxing-wasm

WASM bindings for common rxing functions
https://www.npmjs.com/package/rxing-wasm
Apache License 2.0
27 stars 5 forks source link

Allow hints to be passed to encode_barcode #9

Open cpwood opened 8 months ago

cpwood commented 8 months ago

Currently, a new, empty HashMap is passed into the Rust library when encode_barcode is called. However for Telepen Numeric, I would need to pass a hint.

Could there either be an additional method - e.g. encode_barcode_with_hints?

hschimke commented 8 months ago

good idea, I'll work on getting this implemented.

hschimke commented 8 months ago

fully untested and unstable, but an initial version appears in 4f84efa7c27287a6a263a41296d5fd3431217d19 v0.2.2 on NPM now