(el: Element)
| 30 | // whitespace text nodes). The raw text target is shared with setText so shadow |
| 31 | // value checks and dispatch serialization use the same DOM target. |
| 32 | function snapshotText(el: Element): string | null { |
| 33 | const trimmed = getOwnText(el).trim(); |
| 34 | return trimmed.length > 0 ? trimmed : null; |
| 35 | } |
| 36 | |
| 37 | // Parsing the GSAP script (acorn AST walk) is the expensive part and depends |
| 38 | // only on the script text, so memoize the {tween id, selector} pairs by script. |
no test coverage detected