var CONST = { ORTHOGONAL: 0, ISOMETRIC: 1, STAGGERED: 2, HEXAGONAL: 3, fromOrientationString: function (orientation){ orientation = orientation.toLowerCase(); if (orientation === 'isometric') { return CONST.ISOMETRIC; } else if (orientation === 'staggered') { return CONST.STAGGERED; } else if (orientation === 'hexagonal') { return CONST.HEXAGONAL; } else { return CONST.ORTHOGONAL; } } } ; module.exports = CONST;