You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of requiring imports from d3-scales, d3-shape, d3-geo, we should support simple strings for many of these use cases (but still support functions for custom implementations including pulling from other sources such as d3-geo-projection) or d3-geo-polygon).
This will
Simplify the packages needing to be installed by the user
Knowing the packages and import names (prefixes like scale*, geo*, curve*, etc)
Explorability of the API (ex. auto complete when <Spline curve=" is typed with available options)
@ecstrema that's a good point. Maybe re-exporting (possibly with simplified names) is a descent compromise. I still like the ergonomics of intellisense with known string values though).
Activity
ecstrema commentedon Jul 27, 2025
This seems hard to do without breaking tree shaking. A cleaner solution would be to reexport these functions from layerchart.
However, I don't think it's a problem as is right now. As long as it's made clear where these functions are coming from in the docs.
techniq commentedon Jul 28, 2025
@ecstrema that's a good point. Maybe re-exporting (possibly with simplified names) is a descent compromise. I still like the ergonomics of intellisense with known string values though).
Before
After