Skip to content

Commit e244f69

Browse files
committed
support inches in svgs
1 parent 196fe8b commit e244f69

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/types/svg.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const extractorRegExps = {
1717

1818
const INCH_CM = 2.54
1919
const units: { [unit: string]: number } = {
20+
in: 96,
2021
cm: 96 / INCH_CM,
2122
em: 16,
2223
ex: 8,
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)