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

Function _elements

esm/SplitText.js:12–12  ·  view source on GitHub ↗
(targets)

Source from the content-addressed store, hash-verified

10 typeof cur === "string" ? acc.push(..._toArray(cur)) : acc.push(cur);
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 }

Callers 2

constructorMethod · 0.70
splitMethod · 0.70

Calls 1

_toArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…