mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 23:03:09 +00:00
feat(studio): add color grading inspector
This commit is contained in:
@@ -127,9 +127,9 @@ describe("resolveEditingAffordances — sections", () => {
|
||||
expect(s).toMatchObject({ media: true, colorGrading: false });
|
||||
});
|
||||
|
||||
it("img: colorGrading but not media", () => {
|
||||
it("img: media + colorGrading", () => {
|
||||
const s = resolveEditingAffordances(baseFacts({ tag: "img" })).sections;
|
||||
expect(s).toMatchObject({ media: false, colorGrading: true });
|
||||
expect(s).toMatchObject({ media: true, colorGrading: true });
|
||||
});
|
||||
|
||||
it("editable text on a plain element: text section", () => {
|
||||
|
||||
@@ -182,7 +182,7 @@ function resolveCapabilities(facts: EditableElementFacts): DomEditCapabilities {
|
||||
export function resolveEditingSections(facts: EditableElementFacts): EditingSectionApplicability {
|
||||
return {
|
||||
text: facts.hasEditableText && !facts.isCompositionHost && !facts.isInsideLockedComposition,
|
||||
media: facts.tag === "video" || facts.tag === "audio",
|
||||
media: facts.tag === "video" || facts.tag === "audio" || facts.tag === "img",
|
||||
colorGrading: facts.tag === "video" || facts.tag === "img",
|
||||
timing: facts.hasTimingStart || facts.animationCount > 0,
|
||||
animation: facts.animationCount > 0,
|
||||
|
||||
Reference in New Issue
Block a user