2017-04-12 19:18:23 +00:00
|
|
|
make.units = {
|
|
|
|
lengthUnit: function () {
|
|
|
|
return random.pick([
|
|
|
|
"px", "em", "ex", "ch", "rem", "mm", "cm", "in", "pt", "pc", "%"
|
|
|
|
]);
|
|
|
|
},
|
|
|
|
length: function () {
|
2017-04-22 19:02:38 +00:00
|
|
|
return make.numbers.number() + make.units.lengthUnit();
|
2017-04-12 19:18:23 +00:00
|
|
|
},
|
|
|
|
percent: function () {
|
2017-04-22 19:02:38 +00:00
|
|
|
return make.numbers.number() + "%";
|
2017-04-12 19:18:23 +00:00
|
|
|
},
|
|
|
|
};
|