feat(studio): add color grading inspector controls

This commit is contained in:
ukimsanov
2026-06-16 13:41:41 -07:00
parent d1162cd1b1
commit 8b92f37635
28 changed files with 1433 additions and 179 deletions
@@ -15,6 +15,7 @@ import {
getSelectorIndex,
getSourceFileForElement,
isHtmlElement,
isElementVisibleThroughAncestors,
normalizeTimelineCompositionSource,
querySelectorAllSafely,
} from "./domEditingDom";
@@ -22,17 +23,7 @@ import {
// ─── Visibility ──────────────────────────────────────────────────────────────
export function isElementComputedVisible(el: HTMLElement): boolean {
const win = el.ownerDocument.defaultView;
if (!win) return true;
let current: HTMLElement | null = el;
while (current) {
const computed = win.getComputedStyle(current);
if (computed.display === "none" || computed.visibility === "hidden") return false;
const opacity = Number.parseFloat(computed.opacity);
if (Number.isFinite(opacity) && opacity <= 0.01) return false;
current = current.parentElement;
}
return true;
return isElementVisibleThroughAncestors(el);
}
const VISUAL_LEAF_TAGS = new Set(["img", "video", "canvas", "svg", "audio"]);