Repository navigation
feat(layers): honor normalizedColors for bitmap and text uniforms - #11156
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdds support for
The earlier bitmap-fade finding is addressed: defaults and typed colors are decoded before interpolation. No new actionable issues were established. Tests were not run during this review. Reviews (4) · Last reviewed commit: "Merge highlight color support from maste..." · Reviewed by Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8e7856a. Configure here.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed b44f3ad after merge; follow-ups below. Two P1s: the tintColor, transparentColor and outlineColor entries still say 0–255 next to the new 0–1 paragraphs. Both are still on master. Uniform decoding and its transition path are sound.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| The color to tint the bitmap by, in `[r, g, b]`. Each component is in the `[0, 255]` range. | ||
|
|
||
| With Deck's [`normalizedColors`](../core/deck.md#normalizedcolors), plain arrays for `transparentColor` and `tintColor` on a top-level layer use 0–1 channels. Built-in defaults and byte typed arrays retain their byte encoding. |
There was a problem hiding this comment.
P1: tintColor says "Each component is in the [0, 255] range" right above a paragraph that says 0–1. transparentColor (line 237) says the same.
Could each entry carry the ScatterplotLayer sentence instead of the shared paragraph?
| The color to tint the bitmap by, in `[r, g, b]`. Each component is in the `[0, 255]` range. | |
| With Deck's [`normalizedColors`](../core/deck.md#normalizedcolors), plain arrays for `transparentColor` and `tintColor` on a top-level layer use 0–1 channels. Built-in defaults and byte typed arrays retain their byte encoding. | |
| The color to tint the bitmap by, in `[r, g, b]`. Channels use the 0–255 range by default. See [Deck’s `normalizedColors`](../core/deck.md#normalizedcolors) to use 0–1 plain arrays. |
Generated by Claude Code
| Color of outline around the text, in `[r, g, b, [a]]`. Each channel is a number between 0-255 and `a` is 255 if not supplied. | ||
|
|
||
|
|
||
| With Deck's [`normalizedColors`](../core/deck.md#normalizedcolors), plain arrays for `outlineColor` on a top-level layer use 0–1 channels. Built-in defaults and byte typed arrays retain their byte encoding. |
There was a problem hiding this comment.
P1: The outlineColor entry says "Each channel is a number between 0-255", and the paragraph after it says 0–1.
Could the entry use the ScatterplotLayer sentence instead?
| Color of outline around the text, in `[r, g, b, [a]]`. Each channel is a number between 0-255 and `a` is 255 if not supplied. | |
| With Deck's [`normalizedColors`](../core/deck.md#normalizedcolors), plain arrays for `outlineColor` on a top-level layer use 0–1 channels. Built-in defaults and byte typed arrays retain their byte encoding. | |
| Color of outline around the text, in `[r, g, b, [a]]`. Channels use the 0–255 range by default. See [Deck’s `normalizedColors`](../core/deck.md#normalizedcolors) to use 0–1 plain arrays. Omitted alpha is opaque. |
Generated by Claude Code
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.

For #11146
Background
Bitmap tint, bitmap transparency, and text outlines use byte channels even when Deck opts into normalized colors. Honor the Deck setting for plain arrays supplied to these top-level layer props.
Change List
Verified with
yarn lintand 16 focused Chromium tests.Note
Low Risk
Extends an opt-in configuration setting to additional layer uniform properties while preserving defaults and legacy typed array behavior.
Overview
Extends Deck's opt-in
normalizedColorssetting to top-levelBitmapLayer(tintColorandtransparentColor) andTextLayer(outlineColor). Plain JavaScript arrays provided to these props are now interpreted as 0–1 float channels instead of legacy 0–255 byte channels, while built-in defaults and typed byte arrays preserve their byte encoding.Adds layer lifecycle hooks in
Layerto convert uniform values before transitions start and recognize active transition values. This ensures color transitions interpolate in normalized shader space without being re-normalized mid-transition.Reviewed by Cursor Bugbot for commit b44f3ad. Bugbot is set up for automated code reviews on this repo. Configure here.