From f8846438635c6bc425eb5a8a381f7d5fe206c4ef Mon Sep 17 00:00:00 2001 From: pyoor Date: Wed, 28 Jun 2017 12:01:48 -0700 Subject: [PATCH] Initial commit of make.alignment --- lib/make/alignment.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/make/alignment.js diff --git a/lib/make/alignment.js b/lib/make/alignment.js new file mode 100644 index 0000000..229cc1c --- /dev/null +++ b/lib/make/alignment.js @@ -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 + ]) + } +}