-
Notifications
You must be signed in to change notification settings - Fork 16.4k
fix(deckgl): respect stroked toggle for polygon line width #36793
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
base: master
Are you sure you want to change the base?
Conversation
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
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.
Code Review Agent Run #dc0c85
Actionable Suggestions - 1
-
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/Polygon.tsx - 1
- Incorrect deck.gl property usage · Line 215-215
Review Details
-
Files reviewed - 1 · Commit Range:
7d5daff..7d5daff- superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/Polygon.tsx
-
Files skipped - 0
-
Tools
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].
Documentation & Help
| getFillColor: colorScaler, | ||
| getLineColor: sc ? [sc.r, sc.g, sc.b, 255 * sc.a] : undefined, | ||
| getLineWidth: fd.line_width, | ||
| lineWidthMinPixels: fd.stroked ? fd.line_width : 0, |
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.
Replacing getLineWidth with lineWidthMinPixels changes polygon outline behavior from setting the actual width to only enforcing a minimum pixel width. This can result in thinner lines than expected, especially when fd.line_width differs from the default. Other deck.gl layers in the codebase still use getLineWidth, and deck.gl docs confirm both properties exist but serve different purposes.
Code Review Run #dc0c85
Should Bito avoid suggestions like this for future reviews? (Manage Rules)
- Yes, avoid them
User description
Summary
Fixes an issue in the Deck.gl Polygon chart where
lineWidthwas applied even when the Stroked toggle was disabled.What changed
lineWidthonly whenstroked === trueBefore
Demo
Before / After: Line width is now applied only when Stroked is enabled.
https://github.com/user-attachments/assets/294ac366-1496-4a96-9bb1-3407d0277f9c
https://github.com/user-attachments/assets/4ca12fe8-686c-4ec4-b9f0-bab098bed55f
After
Testing
docker-compose-non-devpre-commitchecks passedCodeAnt-AI Description
Respect Stroked toggle when rendering polygon outlines
What Changed
Impact
✅ Fewer unexpected polygon outlines✅ Clearer stroke control behavior in chart settings✅ Consistent polygon rendering between toggles💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.