octo-deno/lib/make/alignment.js
2017-06-28 12:01:48 -07:00

14 lines
312 B
JavaScript

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
])
}
}