Skip to content

Commit

Permalink
support inches in svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Mar 15, 2021
1 parent 196fe8b commit e244f69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/types/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const extractorRegExps = {

const INCH_CM = 2.54
const units: { [unit: string]: number } = {
in: 96,
cm: 96 / INCH_CM,
em: 16,
ex: 8,
Expand Down
3 changes: 3 additions & 0 deletions specs/images/valid/svg/units-inches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e244f69

Please sign in to comment.