Repository navigation
feat(mesh-layers): honor Deck normalized colors - #11162
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. |
[Low impact] The PR appears safe to merge; no new blocking issues were found. Summary
Reviews (3) · Last reviewed commit: "Merge branch 'master' of github.com:visg..." · Reviewed by Greptile |
…ed-mesh-colors # Conflicts: # docs/whats-new.md
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed b43431f after merge; follow-ups below. One P1: the ScenegraphLayer getColor default is documented as black. 3b0be38 added mesh tests for both layers and the deck.md line.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
|
|
||
| #### `getColor` (constant | Accessor | arrow.Vector, optional)  {#getcolor} | ||
|
|
||
| - Default: `[0, 0, 0, 255]` |
There was a problem hiding this comment.
P1: The documented default is black. ScenegraphLayer defaults to white (DEFAULT_COLOR at scenegraph-layer.ts:56). This is older than this PR. Could we fix it?
| - Default: `[0, 0, 0, 255]` | |
| - Default: `[255, 255, 255, 255]` |
Generated by Claude Code
| An Arrow vector supplies one value per object. See [position columns](../../developer-guide/using-with-arrow.md#positions-and-other-vectors) for requirements. | ||
|
|
||
|
|
||
| Deck’s [`normalizedColors`](../core/deck.md#normalizedcolors) lets top-level layers accept 0–1 plain-array instance colors. Byte defaults, typed arrays, and binary inputs retain their encoding. |
There was a problem hiding this comment.
P2: This paragraph repeats the getColor text below, and it renders at the end of getPosition. Could we delete it here and in scenegraph-layer.md?
| Deck’s [`normalizedColors`](../core/deck.md#normalizedcolors) lets top-level layers accept 0–1 plain-array instance colors. Byte defaults, typed arrays, and binary inputs retain their encoding. |
Generated by Claude Code
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
For #11146
Background
SimpleMeshLayer and ScenegraphLayer now accept 0–1 plain-array instance colors when Deck enables
normalizedColors.Change List
Verified with
yarn lintand four Scenegraph column tests.Note
Low Risk
Low risk; extends existing color normalization conventions to mesh layers without changing default behavior or affecting critical infrastructure.
Overview
Enables
SimpleMeshLayerandScenegraphLayerto honor Deck'snormalizedColorssetting, allowinggetColoraccessors and plain-array instance colors to be interpreted as 0–1 channels while preserving byte defaults for unauthored colors.In both layers, tags the
instanceColorsattribute withsemanticType: 'color'and forwardsnormalizedColorsthrough theLayerColumnsupdate pipeline for Arrow column fallbacks. Also updates the corresponding API reference documentation and adds unit test coverage for color normalization and fallback behavior.Reviewed by Cursor Bugbot for commit b43431f. Bugbot is set up for automated code reviews on this repo. Configure here.