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

Function commitStyle

packages/sdk-playground/src/main.ts:489–493  ·  view source on GitHub ↗
(prop: string, value: string | null)

Source from the content-addressed store, hash-verified

487}
488
489function commitStyle(prop: string, value: string | null) {
490 if (!comp || !selectedId) return;
491 comp.element(selectedId).setStyle({ [prop]: value });
492 logEntry("op", { "element().setStyle": { id: selectedId, [prop]: value } });
493}
494
495type PropEl = NonNullable<ReturnType<Composition["getElement"]>>;
496

Callers 3

buildColorControlFunction · 0.85
buildSelectControlFunction · 0.85
buildTextControlFunction · 0.85

Calls 3

logEntryFunction · 0.85
setStyleMethod · 0.65
elementMethod · 0.65

Tested by

no test coverage detected