Skip to content
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

How to add pointer effect to the shape? #202

Closed
dotku opened this issue Sep 21, 2022 · 1 comment
Closed

How to add pointer effect to the shape? #202

dotku opened this issue Sep 21, 2022 · 1 comment

Comments

@dotku
Copy link

dotku commented Sep 21, 2022

eg when user handover the curve, mouse would display pointer ({cursor: pointer})?

@Fil
Copy link
Member

Fil commented Sep 21, 2022

The role of d3-shape is to create shapes. What you do with them is out of scope.

For example, if you use the shape to draw a path in svg, you can set its css with d3-selection like so:

 d3.create("path").attr("d", shape).style("cursor", "pointer")

@Fil Fil closed this as completed Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants