MCPcopy
hub / github.com/greensock/GSAP / _findNextValidBounds

Function _findNextValidBounds

esm/SplitText.js:13–17  ·  view source on GitHub ↗
(allBounds, startIndex)

Source from the content-addressed store, hash-verified

11 return acc;
12}, []) : [r], _elements = (targets) => _toArray(targets).filter((e) => e && e.nodeType === 1), _emptyArray = [], _context = function() {
13}, _defaultContext = { add: (f) => f() }, _spacesRegEx = /\s+/g, _emojiSafeRegEx = new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.", "gu"), _emptyBounds = { left: 0, top: 0, width: 0, height: 0 }, _findNextValidBounds = (allBounds, startIndex) => {
14 while (++startIndex < allBounds.length && allBounds[startIndex] === _emptyBounds) {
15 }
16 return allBounds[startIndex] || _emptyBounds;
17}, _revertOriginal = ({ element, html, ariaL, ariaH }) => {
18 element.innerHTML = html;
19 ariaL ? element.setAttribute("aria-label", ariaL) : element.removeAttribute("aria-label");
20 ariaH ? element.setAttribute("aria-hidden", ariaH) : element.removeAttribute("aria-hidden");

Callers 1

splitMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…