Skip to content

Commit b4b81c7

Browse files
committed
nat
1 parent 8abe58e commit b4b81c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

stylehandler.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
//to also convert if native expects numbers (like borderRadius)
3+
//expand some short hand properties like border
4+
5+
let unitProperties = new Set();
6+
7+
let regex = /(\D)(cm|in|mm|pc|pt|px|Q)/;
8+
9+
for (let stl in obj) {
10+
for (let key in stl) {
11+
if (unitProperties.has(key)) {
12+
stl[key]
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)