* 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 countercloc
(placement)
| 4504 | */ |
| 4505 | |
| 4506 | function clockwise(placement) { |
| 4507 | var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; |
| 4508 | var index = validPlacements.indexOf(placement); |
| 4509 | var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); |
| 4510 | return counter ? arr.reverse() : arr; |
| 4511 | } |
| 4512 | |
| 4513 | var BEHAVIORS = { |
| 4514 | FLIP: 'flip', |
no outgoing calls
no test coverage detected
searching dependent graphs…