Skip to content

Commit

Permalink
fix(map): fix vertical alignment map (#122)
Browse files Browse the repository at this point in the history
bottom and middle were flipped

fixes #112
  • Loading branch information
dbanksdesign authored Jul 10, 2020
1 parent 69f59c7 commit 56e9cff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions utils/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const textTransformMap = {
lowercase: 2,
};

Object.keys(textAlignmentMap).forEach(key => {
Object.keys(textAlignmentMap).forEach((key) => {
textAlignmentMap[textAlignmentMap[key]] = key;
});

Expand All @@ -56,11 +56,11 @@ Object.keys(textAlignmentMap).forEach(key => {
*/
const verticalAlignmentMap = {
top: 0,
bottom: 1,
center: 2,
middle: 1,
bottom: 2,
};

Object.keys(verticalAlignmentMap).forEach(key => {
Object.keys(verticalAlignmentMap).forEach((key) => {
verticalAlignmentMap[verticalAlignmentMap[key]] = key;
});

Expand Down Expand Up @@ -90,7 +90,7 @@ const blendModeMap = {
plusLighter: 17,
};

Object.keys(blendModeMap).forEach(key => {
Object.keys(blendModeMap).forEach((key) => {
blendModeMap[blendModeMap[key]] = key;
});

Expand All @@ -109,7 +109,7 @@ const resizingConstraintsMap = {
none: 63,
};

const containsAllItems = (needles, haystack) => needles.every(needle => haystack.includes(needle));
const containsAllItems = (needles, haystack) => needles.every((needle) => haystack.includes(needle));

module.exports = {
textAlignmentMap,
Expand Down

0 comments on commit 56e9cff

Please sign in to comment.