Demos
Bar Codes
Display and edit bar codes on the canvas using SVG and custom data
There are several tools that will help you display and change bar codes in Polotno Editor:
- Using JsBarcode (or a similar library), generate an SVG image of a bar code.
- With an
svg
element, display the generated SVG image on the canvas. - Use the
custom
attribute of thesvg
shape to save any additional data. You can store the bar code data string for future reference.
Instructions: try changing the content of a selected bar code. Try to deselect the element to create new bar codes.