Skip to content

Commit

Permalink
Update datamatrix.py
Browse files Browse the repository at this point in the history
In `svg_template`, the `viewBox` width and height order was inverted.
Regarding the specification, the parameter's order is: min-x, min-y, width and height.
https://www.w3.org/TR/SVG2/coords.html#ViewBoxAttribute
  • Loading branch information
Steve-VE authored Mar 4, 2024
1 parent 0c76857 commit aee80e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ppf/datamatrix/datamatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
svg_template = \
'<?xml version="1.0" encoding="utf-8" ?>' \
'<svg baseProfile="tiny" version="1.2" ' \
'viewBox="0 0 {height} {width}" ' \
'viewBox="0 0 {width} {height}" ' \
'style="background-color:{bg}" ' \
'xmlns="http://www.w3.org/2000/svg" ' \
'xmlns:ev="http://www.w3.org/2001/xml-events" ' \
Expand Down

0 comments on commit aee80e0

Please sign in to comment.