Nuget update vari (Bootstrap JQuery)

This commit is contained in:
Samuele Locatelli
2020-03-03 15:41:45 +01:00
parent 6529fbc6a2
commit f0d0cef894
299 changed files with 13123 additions and 3536 deletions
+22
View File
@@ -0,0 +1,22 @@
import placements from '../methods/placements';
// Get rid of `auto` `auto-start` and `auto-end`
const validPlacements = placements.slice(3);
/**
* Given an initial placement, returns all the subsequent placements
* clockwise (or counter-clockwise).
*
* @method
* @memberof Popper.Utils
* @argument {String} placement - A valid placement (it accepts variations)
* @argument {Boolean} counter - Set to true to walk the placements counterclockwise
* @returns {Array} placements including their variations
*/
export default function clockwise(placement, counter = false) {
const index = validPlacements.indexOf(placement);
const arr = validPlacements
.slice(index + 1)
.concat(validPlacements.slice(0, index));
return counter ? arr.reverse() : arr;
}