Initial commit of make.alignment
This commit is contained in:
parent
33c3d3ab6d
commit
f884643863
1 changed files with 14 additions and 0 deletions
14
lib/make/alignment.js
Normal file
14
lib/make/alignment.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue