From 5658f700650bb10c000229da9374df02b2f6b5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Mon, 19 Oct 2026 00:38:53 +0000 Subject: [PATCH] fix(core): color grading applies to canvas compositions (#5860) * fix(core): color grading applies to canvas compositions data-color-grading on a was ignored by the runtime and refused by lint, the Studio panel and the CLI writer. One source-tag list in the grading contract now feeds all of them. A canvas is sized from its drawing buffer and re-uploaded on every seek and transport tick. * fix(core): keep the comment share of grading files at the base --- docs/guides/color-grading.mdx | 5 +- docs/packages/cli.mdx | 2 +- docs/reference/lint-rules.mdx | 6 +- .../cli/src/commands/media-treatment.test.ts | 15 +++- packages/cli/src/commands/media-treatment.ts | 15 ++-- packages/core/src/colorGrading.ts | 2 + packages/core/src/editing/affordances.test.ts | 5 ++ packages/core/src/editing/affordances.ts | 3 +- .../core/src/runtime/colorGrading.test.ts | 48 ++++++++++++ packages/core/src/runtime/colorGrading.ts | 74 ++++++++++--------- packages/lint/src/rules/media.test.ts | 12 +++ packages/lint/src/rules/media.ts | 11 ++- packages/parsers/src/colorGradingContract.ts | 1 + 13 files changed, 149 insertions(+), 50 deletions(-) diff --git a/docs/guides/color-grading.mdx b/docs/guides/color-grading.mdx index a0a8a49d75..7abca7425a 100644 --- a/docs/guides/color-grading.mdx +++ b/docs/guides/color-grading.mdx @@ -166,8 +166,9 @@ Grading picks pixels by value, never by position: no face tracking, region tracking, rotoscoping or masks — an HSL selection is a color qualifier, not a shape. To treat one part of a frame, split it into its own media layer and grade that layer, as in the [implementation reference](/reference/color-grading). It -targets media elements only, so a whole scene including HTML text cannot be -graded. +targets `