Repository navigation
feat: pilot Deck-wide normalized color inputs - #11141
Conversation
[Medium impact] The PR appears safe to merge; no actionable new issues remain. SummaryAdds opt-in
All three earlier findings are addressed: the release note and shared-default comments are present, and composite children no longer adopt the top-level color setting. No new actionable issues were found. Reviews (4) · Last reviewed commit: "Merge master and retain Arrow chunk reus..." · 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 17a4e4c. Configure here.

For #11146
Background
Apps can opt into 0–1 plain-array colors through a single Deck setting. The pilot covers ScatterplotLayer, LineLayer, and ArcLayer, including accessor fallbacks when those layers use Arrow columns. Built-in byte defaults, typed arrays, binary inputs, and GPU formats retain their encoding.
Change List
DeckProps.normalizedColorsand propagate it through layer contextVerified with
yarn lint, focused Chromium attribute and layer tests, and Node Arrow accessor and lifecycle tests.Note
Low Risk
The change is an opt-in feature with default-off behavior, preserving existing color conventions and binary data paths.
Overview
Adds a new opt-in
normalizedColorsboolean prop toDeck(defaulting tofalse) that configures top-level layers to interpret plain JavaScript arrays in color accessors as normalized0–1float channels instead of0–255bytes.Values are clamped and converted to bytes internally for GPU attribute storage and GPU vector column fallbacks. The pilot is scoped to top-level
ScatterplotLayer,LineLayer, andArcLayer; composite sublayers, built-in defaults, typed arrays, binary buffers, and Arrow columns retain their conventional encodings. Attribute updates and column preparations are automatically invalidated and recalculated whennormalizedColorschanges onDeck.Reviewed by Cursor Bugbot for commit 25cb7e3. Bugbot is set up for automated code reviews on this repo. Configure here.