(selector: string, id: HfId)
| 864 | // ─── GSAP selector helpers ─────────────────────────────────────────────────── |
| 865 | |
| 866 | function selectorMatchesId(selector: string, id: HfId): boolean { |
| 867 | return ( |
| 868 | selector === `[data-hf-id="${id}"]` || |
| 869 | selector === `[data-hf-id='${id}']` || |
| 870 | selector === `#${id}` |
| 871 | ); |
| 872 | } |
| 873 | |
| 874 | // v1 limitation: selectorMatchesId uses bare-id matching across the whole script, so a |
| 875 | // selector targeting "hf-leaf" will cascade-remove animations for both "hf-parent/hf-leaf" |
no outgoing calls
no test coverage detected