-
Notifications
You must be signed in to change notification settings - Fork 715
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
Fix center and add pointRadius, innerRef #213
Conversation
LGTM thank you! |
if (rotate) currProjection.rotate(rotate); | ||
if (precision) currProjection.rotate(precision); | ||
if (fitExtent) currProjection.fitExtent(...fitExtent); | ||
if (fitSize) currProjection.fitSize(...fitSize); | ||
|
||
const path = geoPath().projection(currProjection); | ||
|
||
if (pointRadius) path.pointRadius(pointRadius); |
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.
if (pointRadius) path.pointRadius(pointRadius); | |
if (pointRadius !== undefined) path.pointRadius(pointRadius); |
👋 folks! Do you if pointRaidus
can be 0
? Would it be a valid input? I can change this in #1767 if it makes sense.
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.
hey @kachkaev according to the d3-geo
docs this should be a 2-element numerical array https://d3js.org/d3-geo/projection#projection_center
that's consistent with our @visx/geo
types / docs https://airbnb.io/visx/docs/geo#Projection_center
so I don't think 0
is valid.
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.
I think it’s related to https://d3js.org/d3-geo/path#path_pointRadius (one number)
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.
🤦 🤦 🤦 sorry no idea how I misread that one. 100% agree with you/thanks for adding in your new PR 🙏
💥 Breaking Changes
None.
🚀 Enhancements
Added pointRadius and fixed center.
📝 Documentation
🐛 Bug Fix
Fixed center typo.
🏠 Internal