Repository navigation
feat(layers): extend normalized colors to icons, points, and columns - #11161
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] This PR appears safe to merge; no new actionable issues were found. SummaryExtends Deck’s
No new actionable issues found. Added Arrow-backed tests address the earlier coverage concern. Reviews (2) · Last reviewed commit: "Cover point and column Arrow color fallb..." · Reviewed by Greptile |
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 624bed4 after merge; follow-ups below. One P1: each getColor entry still says channels are 0-255.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| On top-level layers, Deck's [`normalizedColors`](../core/deck.md#normalizedcolors) | ||
| option interprets plain-array color constants and callback results as 0–1 channels. | ||
| Built-in defaults, typed arrays, binary inputs, and Arrow color columns retain their encoding. | ||
|
|
There was a problem hiding this comment.
P1: The getColor entry below still says "Each channel is a number between 0-255". This paragraph says the opposite, and it renders at the end of getSize.
column-layer.md(both colors) andpoint-cloud-layer.mdhave the same text on master.- 3b0be38 in feat(mesh-layers): honor Deck normalized colors #11162 fixed this wording for the mesh layers.
Could we delete this paragraph and reuse the mesh wording inside each getColor entry? "Plain arrays use 0–255 channels by default and 0–1 when Deck enables normalizedColors. Omitted alpha is opaque (255 or 1, respectively)."
| On top-level layers, Deck's [`normalizedColors`](../core/deck.md#normalizedcolors) | |
| option interprets plain-array color constants and callback results as 0–1 channels. | |
| Built-in defaults, typed arrays, binary inputs, and Arrow color columns retain their encoding. |
Generated by Claude Code
| [top-level layer highlights](./api-reference/core/layer.md#highlightcolor). Top-level bitmap tints, | ||
| bitmap transparency, and text outlines also use the setting. Other composite layers | ||
| retain their existing color conventions. | ||
| IconLayer, PointCloudLayer, and ColumnLayer also honor this setting for color accessors. |
There was a problem hiding this comment.
Non-blocking: This sentence and the mesh one from #11162 trail the paragraph they extend. Could they join its layer list?
Generated by Claude Code
For #11146
Background
Honor Deck’s normalizedColors setting for top-level IconLayer, PointCloudLayer, and ColumnLayer through attribute and Arrow fallback paths.
Change List
Verified with yarn lint and nine focused Chromium tests.
Note
Low Risk
Low risk feature enhancement adding existing normalized color handling and attribute metadata to three additional layers with comprehensive tests.
Overview
Extends Deck's
normalizedColorsoption to top-levelIconLayer,PointCloudLayer, andColumnLayer, allowing plain JavaScript arrays passed to their color accessors to be interpreted as normalized [0, 1] color channels.Marks color attributes with
semanticType: 'color'and exposes default byte colors to Arrow column definitions. WhennormalizedColorschanges on Deck, column state updates and attribute managers now re-prepare and pack color channels accordingly.Reviewed by Cursor Bugbot for commit 624bed4. Bugbot is set up for automated code reviews on this repo. Configure here.