Repository URL to install this package:
|
Version:
2.8.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function getSlotOrder(position, index, count) {
if (index - position < 0) {
return count - Math.abs(index - position);
}
return index - position;
}
exports.getSlotOrder = getSlotOrder;
function validatePosition(index, count) {
return index < 0 ? Math.abs(index) * 2 : index > count - 1 ? 0 : index;
}
exports.validatePosition = validatePosition;
exports.toValidPosition = validatePosition; //# sourceMappingURL=deps.js.map