octo-deno/lib/make/alignment.js

15 lines
312 B
JavaScript
Raw Normal View History

2017-06-28 19:01:48 +00:00
make.alignment = {
horizontal: function () {
return random.item(['left', 'right', 'justify', 'center'])
},
vertical: function () {
return random.item(['top', 'bottom', 'middle', 'baseline'])
},
any: function () {
return random.pick([
this.horizontal,
this.vertical
])
}
}