-
Notifications
You must be signed in to change notification settings - Fork 17.4k
fix(deckgl): scatterplot fix categorical color #35537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,7 +37,6 @@ import { | |||||||||
| tooltipContents, | ||||||||||
| tooltipTemplate, | ||||||||||
| } from '../../utilities/Shared_DeckGL'; | ||||||||||
| import { COLOR_SCHEME_TYPES } from '../../utilities/utils'; | ||||||||||
|
|
||||||||||
| const config: ControlPanelConfig = { | ||||||||||
| onInit: controlState => ({ | ||||||||||
|
|
@@ -134,9 +133,7 @@ const config: ControlPanelConfig = { | |||||||||
| controlSetRows: [ | ||||||||||
| [legendPosition], | ||||||||||
| [legendFormat], | ||||||||||
| ...generateDeckGLColorSchemeControls({ | ||||||||||
| defaultSchemeType: COLOR_SCHEME_TYPES.fixed_color, | ||||||||||
| }), | ||||||||||
| ...generateDeckGLColorSchemeControls({}), | ||||||||||
| ], | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing color scheme parameter
The PR incorrectly removes the Code suggestionCheck the AI-generated fix before applying
Suggested change
Code Review Run #a4c27a Should Bito avoid suggestions like this for future reviews? (Manage Rules)
|
||||||||||
| }, | ||||||||||
| { | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alpha value in the fallback color is set to 100, which when multiplied by 255 results in 25500, exceeding the valid alpha range (0-255). This will cause color rendering issues in
DeckGLContainerStyledWrapperand downstream components. Change the alpha to 1 (0-1 range) to match the pattern used ingetCategoriesfunction.Code suggestion
Code Review Run #a4c27a
Should Bito avoid suggestions like this for future reviews? (Manage Rules)