INNER CODE UNIT · TypeScript

isVideoOverlayLayer

vargHQ/sdk · src/ai-sdk/providers/editly/index.ts:162

function isVideoOverlayLayer(layer: Layer): boolean {
  if (layer.type !== "video") return false;
  const v = layer as VideoLayer;
  return (
    v.width !== undefined ||
    v.height !== undefined ||
    v.left !== undefined ||
    v.top !== undefined
  );
}

/**
 * Clip-local overlay: has positioning but NO cutFrom/cutTo
 * These should be composited within their clip, not across the entire video
 */
function isClipLocalVideoOverlay(layer: Layer): boolean {
  if (!isVideoOverlayLayer(layer)) return false;
  const v = layer as VideoLayer;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…