Repository navigation
feat(layers): honor normalizedColors for paths and polygons - #11160
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5557827767
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge; no actionable issues remain from this review. SummaryAdds
The earlier trigger, RGB-child, and TSDoc findings are addressed. No new actionable issues were found. Tests were not run during this review.
|
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 5557827. Configure here.

For #11146
Background
PathLayer, PolygonLayer, and SolidPolygonLayer use byte colors even when Deck opts into normalized inputs. Honor the Deck setting at their public color accessor boundaries and preserve byte storage and existing binary inputs.
Change List
Verified with
yarn lintand 51 focused Chromium tests.Note
Low Risk
Changes are scoped to the opt-in
normalizedColorsfeature path and preserve existing byte encodings and binary attribute handling.Overview
Extends Deck's opt-in
normalizedColorssetting to top-levelPathLayer,PolygonLayer, andSolidPolygonLayer. When enabled, plain JavaScript color arrays and callback returns in the 0–1 range are clamped and rounded to bytes for GPU storage, while typed arrays and binary data retain their existing encoding.In
CompositeLayer, a newgetSubLayerColorAccessorhelper converts normalized color accessors into byte values before delegating to child sublayers.PolygonLayerleverages this method to forward stroke and fill colors down to underlyingSolidPolygonLayerandPathLayersublayers without requiring them to run in top-level normalized mode.Additionally,
Attributehandling is updated to support normalized color packing for variable-length path and polygon geometries, including flat and nested per-vertex color arrays. Docs and tests have been added to cover path, fill, wireframe, and stroke color packing.Reviewed by Cursor Bugbot for commit 47ec63a. Bugbot is set up for automated code reviews on this repo. Configure here.