MCPcopy Create free account
hub / github.com/deepch/RTSPtoWebRTC / getOppositeVariation

Function getOppositeVariation

web/static/js/bootstrap.bundle.js:2977–2984  ·  view source on GitHub ↗

* Get the opposite placement variation of the given one * @method * @memberof Popper.Utils * @argument {String} placement variation * @returns {String} flipped placement variation

(variation)

Source from the content-addressed store, hash-verified

2975 * @returns {String} flipped placement variation
2976 */
2977 function getOppositeVariation(variation) {
2978 if (variation === 'end') {
2979 return 'start';
2980 } else if (variation === 'start') {
2981 return 'end';
2982 }
2983 return variation;
2984 }
2985
2986 /**
2987 * List of accepted placements to use as values of the `placement` option.<br />

Callers 1

flipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected