MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / selectorMatchesId

Function selectorMatchesId

packages/sdk/src/engine/mutate.ts:866–872  ·  view source on GitHub ↗
(selector: string, id: HfId)

Source from the content-addressed store, hash-verified

864// ─── GSAP selector helpers ───────────────────────────────────────────────────
865
866function 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"

Callers 2

handleSetTimingFunction · 0.85
cascadeRemoveAnimationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected