samsam2310 / zbar.wasm

A wasm build of C/C++ ZBar barcode scanning library.
GNU Lesser General Public License v2.1
222 stars 30 forks source link

Make all ZBar barcode formats available in the API #18

Closed undecaf closed 2 years ago

undecaf commented 2 years ago

I was not able to configure the scanner for e.g. Code 93 and noted that src/enum.ts was outdated with respect to the most recent ZBar sources, so I updated the enums from the sources.

Along the way I noticed that the scanner also provides the symbol orientation which might be nice to have, so I extended the API.

The minor version number will probably need to be bumped again, but I hope these changes are helpful.

codecov-commenter commented 2 years ago

Codecov Report

Merging #18 (7c4454d) into master (5e7a91e) will increase coverage by 0.30%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   94.94%   95.25%   +0.30%     
==========================================
  Files          17       17              
  Lines         297      316      +19     
  Branches       17       18       +1     
==========================================
+ Hits          282      301      +19     
  Misses         15       15              
Impacted Files Coverage Δ
src/Symbol.ts 100.00% <100.00%> (ø)
src/enum.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5e7a91e...7c4454d. Read the comment docs.

samsam2310 commented 2 years ago

Thanks for help!