metafloor / bwip-js

Barcode Writer in Pure JavaScript
Other
2.06k stars 300 forks source link

New option showbearer via BWIP 2023-07-2 #323

Open semireg opened 5 months ago

semireg commented 5 months ago

Hi,

I have a need for ITF14 bearer vs. border. I understand this new option is supported in BWIP 2023-07-2. Are there any plans to support this version anytime soon?

metafloor commented 5 months ago

I have BWIPP 2024-01-03 queued up on my machine right now. Will release it this weekend after final testing.

metafloor commented 5 months ago

The new border drawing code is causing some issues. I am not happy with how it is rendering. Will investigate further on Monday.

semireg commented 5 months ago

Thanks for the update. Btw, no rush on my end, this is more a placeholder for me. Take your time. You and your attention to detail is appreciated. 😄

metafloor commented 5 months ago

Hijacking this issue to announce version 4.3 is out - it is essentially a sync with BWIPP 2024-01-03. No bug fixes or enhancements are included.

There were some pretty significant backward compatibility issues with the new border drawing code, so I had to make some compromises. Previous border drawing did not account for the width of the border and just rendered at the border offsets. The new code pushes the borders "out" by half the border width from the offsets. This will only be seen with wider borders - for example, itf14's default border width.

The guardwhitespace markers for the ean symbols changed position a bit (moved closer to the symbol). This will make overall image width slightly smaller.

And finally, thanks to @xerc, we got rid of the deprecated version string in the <svg> tags.