* Add out of bounds classes to the list of classes we add to tether * @param {string[]} oob An array of directions that are out of bounds * @param {string[]} addClasses The array of classes to add to Tether * @param {string[]} classes The array of class types for Tether * @param {string} classPr
(oob, addClasses, classes, classPrefix, outOfBoundsClass)
| 67 | * @private |
| 68 | */ |
| 69 | function _addOutOfBoundsClass(oob, addClasses, classes, classPrefix, outOfBoundsClass) { |
| 70 | if (oob.length) { |
| 71 | let oobClass; |
| 72 | if (!isUndefined(outOfBoundsClass)) { |
| 73 | oobClass = outOfBoundsClass; |
| 74 | } else { |
| 75 | oobClass = getClass('out-of-bounds', classes, classPrefix); |
| 76 | } |
| 77 | |
| 78 | addClasses.push(oobClass); |
| 79 | oob.forEach((side) => { |
| 80 | addClasses.push(`${oobClass}-${side}`); |
| 81 | }); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Calculates if out of bounds or pinned in the X direction. |
no test coverage detected
searching dependent graphs…