Repository navigation
Upgrade to luma.gl beta.1, math.gl rc.2, and loaders.gl rc.1 - #11261
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
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.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 78215b4 after merge; follow-ups below. No P1s.
Versions are consistent: every package.json pins luma.gl 10.0.0-beta.1, math.gl 5.0.0-rc.2 and loaders.gl 5.0.0-rc.1 (except the older test/apps/glsl-debugger), and both lockfiles match. luma.gl core, engine and shaders add no new @deprecated APIs since alpha.17.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| Accessors can use top-level SQL scales. Numeric accessors accept linear, square-root, | ||
| logarithmic, power, and symmetric-log scales with a numeric `RANGE`. Color | ||
| accessors accept sequential, cyclic, diverging, ordinal, quantile, quantize, and | ||
| threshold scales. |
There was a problem hiding this comment.
P2: Readers write function names, and this list gives scale types. A reader cannot guess that sequential is SCALE_COLOR. The only example is a color scale.
| Accessors can use top-level SQL scales. Numeric accessors accept linear, square-root, | |
| logarithmic, power, and symmetric-log scales with a numeric `RANGE`. Color | |
| accessors accept sequential, cyclic, diverging, ordinal, quantile, quantize, and | |
| threshold scales. | |
| Accessors can use top-level SQL scales. Numeric accessors accept `SCALE_LINEAR`, `SCALE_SQRT`, | |
| `SCALE_LOG`, `SCALE_POWER`, and `SCALE_SYMLOG` with a numeric `RANGE`. Color accessors accept | |
| `SCALE_COLOR`, `SCALE_CYCLIC`, `SCALE_DIVERGING`, `SCALE_ORDINAL`, `SCALE_QUANTILE`, | |
| `SCALE_QUANTIZE`, and `SCALE_THRESHOLD` with a `PALETTE`. |
Could we name the functions and add a numeric example, such as getRadius: {sql: 'SCALE_LINEAR(population, DOMAIN(population), RANGE(2, 20))'}?
Details
- math.gl rc.2
SQL_SCALE_TYPESmapsSCALE_COLORtosequentialandSCALE_POWERtolinearwith a power transform. Color types rejectRANGEand the others require it. - Line 397, "Missing values are transparent", only covers color scales now.
Generated by Claude Code
| @@ -10,10 +10,10 @@ updates after accessor evaluation completes. The legend appears when a scale res | |||
| or a continuous ramp with labels beside the scales. Hover over a ramp or quantile bin to see its value or range, color, and scale type. | |||
There was a problem hiding this comment.
P2: Since this PR, numeric scales such as SCALE_LINEAR on getRadius also appear in the legend, as one domain → value row per domain value. The page still says it shows legends for "SQL color accessors" (line 7) and does not describe these rows.
Could we update line 7 and this sentence to cover numeric accessors?
Details
evaluateAccessorQueriesreturns numeric scales inscales, andColorLegendrenders them atcolor-scale-widget.tsx:181.- The
Layer._getResolvedColorScales()TSDoc (layer.ts:756on master) and the class TSDoc (color-scale-widget.tsx:331) still say color scales and RGBA samples.
Generated by Claude Code
| const activeBin = hoveredBin ?? focusedBin; | ||
| const {domain, thresholds, type} = scale.descriptor; | ||
| const {range} = scale.descriptor; | ||
| if (range.type === 'numeric') { |
There was a problem hiding this comment.
Non-blocking: The numeric and threshold legend branches have no widget test. Could we add one case for each to color-scale-widget.spec.ts?
Generated by Claude Code
| export {_ColorScaleWidget, type ColorScaleWidgetProps} from './color-scale-widget'; | ||
| export { | ||
| _LegendWidget, | ||
| _LegendWidget as _ColorScaleWidget, |
There was a problem hiding this comment.
Non-blocking: _ColorScaleWidget was never published (10.0.0-alpha.1 has no such export). Do we need the alias here and in @deck.gl/react? Without it, the docs could title the props LegendWidgetProps to match the example.
Generated by Claude Code
| @@ -96,7 +96,7 @@ layer and extension draws. | |||
|
|
|||
| ### loaders.gl and math.gl v5 beta | |||
There was a problem hiding this comment.
Non-blocking: The heading still says beta, and the text now pins rc versions.
| ### loaders.gl and math.gl v5 beta | |
| ### loaders.gl and math.gl v5 |
Generated by Claude Code
Change List
10.0.0-beta.15.0.0-rc.25.0.0-rc.1_LegendWidgetand retain the previous exportWorkspace and website builds, lint, 423 fast tests, and six Chromium legend tests passed. A WebGPU heatmap test failed in the local full suite and passed in isolation.
Note
Medium Risk
Updates core rendering, math, and data loading dependencies across all modules and modifies SQL query and scale evaluation paths.
Overview
Updates
@luma.gldependencies to10.0.0-beta.1,@math.glto5.0.0-rc.2, and@loaders.glto5.0.0-rc.1across core modules, examples, and the website.Expands layer SQL features by routing URL-backed grouped
SELECTstatements to loaders.gl'squeryGroupedSQL. In addition, accessor query evaluation now supports numeric, cyclic, and threshold scales alongside existing color scales.Renames
_ColorScaleWidgetto_LegendWidget(retaining_ColorScaleWidgetas a compatibility alias) and updates legend rendering to handle threshold scales and numeric ranges.Reviewed by Cursor Bugbot for commit 78215b4. Bugbot is set up for automated code reviews on this repo. Configure here.