MCPcopy Create free account
hub / github.com/docker/getting-started / clockwise

Function clockwise

app/src/static/js/react-bootstrap.js:4506–4511  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

4504 */
4505
4506function 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
4513var BEHAVIORS = {
4514 FLIP: 'flip',

Callers 1

flipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…