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

Function buildFindSection

packages/sdk-playground/src/main.ts:903–918  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

901}
902
903function buildFindSection(): HTMLDivElement {
904 const tag = mkInput("tag", "");
905 tag.style.width = "60px";
906 const text = mkInput("text", "");
907 text.style.width = "80px";
908 const results = mkNote("");
909 const find = mkBtn("Find", "primary", () => {
910 const query: FindQuery = {};
911 if (tag.value.trim()) query.tag = tag.value.trim();
912 if (text.value.trim()) query.text = text.value.trim();
913 const ids = comp!.find(query);
914 results.textContent = ids.length ? ids.join(", ") : "(none)";
915 logEntry("op", { find: { query, result: ids } });
916 });
917 return opSection("find(query)", opRow(mkLabel("tag"), tag, mkLabel("text"), text, find), results);
918}
919
920function buildSelectionProxySection(): HTMLDivElement {
921 const prop = mkInput("prop", "opacity");

Callers

nothing calls this directly

Calls 8

mkInputFunction · 0.85
mkNoteFunction · 0.85
mkBtnFunction · 0.85
logEntryFunction · 0.85
opSectionFunction · 0.85
opRowFunction · 0.85
mkLabelFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected