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

Function getGsapScript

packages/sdk/src/engine/model.ts:322–325  ·  view source on GitHub ↗
(document: Document)

Source from the content-addressed store, hash-verified

320}
321
322export function getGsapScript(document: Document): string | null {
323 const el = findGsapScriptElement(document);
324 return el ? (el.textContent ?? "") : null;
325}
326
327export function setGsapScript(document: Document, newScript: string): void {
328 const existing = findGsapScriptElement(document);

Callers 15

getElementTimingsMethod · 0.85
applyArcPathOpFunction · 0.85
handleSetTimingFunction · 0.85
handleRemoveElementFunction · 0.85
handleAddWithKeyframesFunction · 0.85
handleAddGsapTweenFunction · 0.85
handleSetGsapTweenFunction · 0.85
handleRemoveGsapPropertyFunction · 0.85
handleRemoveGsapTweenFunction · 0.85
handleRemoveAllKeyframesFunction · 0.85
handleConvertToKeyframesFunction · 0.85

Calls 1

findGsapScriptElementFunction · 0.85

Tested by

no test coverage detected