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

Function updatePreviewScale

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

Source from the content-addressed store, hash-verified

199}
200
201function updatePreviewScale() {
202 const outer = document.getElementById("preview-scaler-outer")!;
203 const inner = document.getElementById("preview-scaler-inner")!;
204 const scale = outer.offsetWidth / 1280;
205 inner.style.transform = `scale(${scale})`;
206 outer.style.height = `${720 * scale}px`;
207}
208
209// ── Log ───────────────────────────────────────────────────────────────────────
210

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected