@taiga-ui/kit
Version:
Taiga UI Angular main components kit
25 lines (20 loc) • 959 B
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/utils/math', ['exports'], factory) :
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].kit = global['taiga-ui'].kit || {}, global['taiga-ui'].kit.utils = global['taiga-ui'].kit.utils || {}, global['taiga-ui'].kit.utils.math = {})));
}(this, (function (exports) { 'use strict';
/**
* @internal
*/
function horizontalDirectionToNumber(direction) {
switch (direction) {
case 'left':
return -1;
case 'right':
return 1;
}
}
exports.horizontalDirectionToNumber = horizontalDirectionToNumber;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=taiga-ui-kit-utils-math.umd.js.map