Skip to content

feat(layers): extend normalized colors to icons, points, and columns - #11161

Merged
ibgreen merged 3 commits into
masterfrom
codex/normalized-remaining-layer-accessors
Nov 17, 2026
Merged

ibgreen merged 3 commits into
masterfrom
codex/normalized-remaining-layer-accessors

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

For #11146

Background

Honor Deck’s normalizedColors setting for top-level IconLayer, PointCloudLayer, and ColumnLayer through attribute and Arrow fallback paths.

Change List

  • Mark color attributes and share byte defaults with Arrow fallbacks
  • Refresh column preparation when the Deck convention changes
  • Document supported inputs and test runtime toggles

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 normalizedColors option to top-level IconLayer, PointCloudLayer, and ColumnLayer, 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. When normalizedColors changes 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T18:38:33.123504Z ba108b7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no new actionable issues were found.

Summary

Extends Deck’s normalizedColors setting to top-level icons, point clouds, and columns while preserving existing byte-color inputs.

  • Icon colors follow Deck's normalized color setting.
  • Column colors follow Deck's normalized color setting.
  • Point cloud colors follow Deck's normalized color setting.

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

@coveralls

coveralls commented Nov 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.642% (+0.02%) from 83.623% — codex/normalized-remaining-layer-accessors into master

@ibgreen ibgreen mentioned this pull request Nov 17, 2026
22 of 52 tasks
@ibgreen
ibgreen merged commit 0b8d97d into master Nov 17, 2026
13 of 14 checks passed
@ibgreen
ibgreen deleted the codex/normalized-remaining-layer-accessors branch November 17, 2026 22:55

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment on lines +497 to +500
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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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)."

Suggested change
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

Comment thread docs/whats-new.md
[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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants