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

Function logEntry

packages/sdk-playground/src/main.ts:233–247  ·  view source on GitHub ↗
(type: string, data: unknown)

Source from the content-addressed store, hash-verified

231}
232
233function logEntry(type: string, data: unknown) {
234 const logEl = document.getElementById("log-entries")!;
235 const color = LOG_COLORS[type] ?? "#9ca3af";
236 const d = document.createElement("div");
237 d.className = "log-entry";
238 d.style.borderLeftColor = color;
239 const typeSpan = document.createElement("span");
240 typeSpan.className = "log-type";
241 typeSpan.style.color = color;
242 typeSpan.textContent = `[${type}]`;
243 d.appendChild(typeSpan);
244 d.appendChild(logBody(data));
245 logEl.prepend(d);
246 while (logEl.children.length > 300) logEl.lastElementChild?.remove();
247}
248
249// ── Timeline ──────────────────────────────────────────────────────────────────
250

Callers 15

commitStyleFunction · 0.85
appendContentSectionFunction · 0.85
commitAttrFunction · 0.85
removeSelectedFunction · 0.85
submitAddTweenFunction · 0.85
needSelectionFunction · 0.85
buildSetStyleSectionFunction · 0.85
buildSetTextSectionFunction · 0.85
buildAddGsapTweenSectionFunction · 0.85
needTweenFunction · 0.85
buildSetGsapTweenSectionFunction · 0.85

Calls 1

logBodyFunction · 0.85

Tested by

no test coverage detected