Skip to content

Allow adding class to shapes #7370

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

Open
snowPu opened this issue Feb 17, 2025 · 2 comments
Open

Allow adding class to shapes #7370

snowPu opened this issue Feb 17, 2025 · 2 comments
Labels
feature something new P3 backlog

Comments

@snowPu
Copy link

snowPu commented Feb 17, 2025

I would like to be able to assign specific behaviour to shapes. For example making specific shapes editbale. I know there's an editable field in shapes[] but that is a bit clunky (the user has to select the shape and then move it which doesn't always work very well).

I would like to be able assign a class name to shapes such that I can set specific css properties per shape. Is there a reason why a class/id can't be assigned to shapes? Could this be something that could be added?

@gvwilson gvwilson added feature something new P3 backlog labels Feb 18, 2025
@gvwilson
Copy link
Contributor

Thank you for the feature request @snowPu - I've added it to our backlog, but realistically it will be quite some time before we can get to it. If you'd like to take a crack at it yourself, I'd be very happy to prioritize a code review. Thanks - @gvwilson

@alexcjohnson
Copy link
Collaborator

@snowPu we typically don't expose direct DOM access to elements inside plots, because the plots then stop being portable. Ideally everything should be configurable through the figure object. Can you say a little more about what you're trying to accomplish?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants