13 lines
292 B
JavaScript
13 lines
292 B
JavaScript
make.units = {
|
|
lengthUnit: function () {
|
|
return random.pick([
|
|
"px", "em", "ex", "ch", "rem", "mm", "cm", "in", "pt", "pc", "%"
|
|
]);
|
|
},
|
|
length: function () {
|
|
return make.number() + make.lengthUnit();
|
|
},
|
|
percent: function () {
|
|
return make.number() + "%";
|
|
},
|
|
};
|