Allow adding class to shapes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how shapes[] are rendered and how the existing editable field affects shape interaction. Define the intended class/id behavior and CSS scope for each shape, then verify that shape-specific styling and editing work without breaking existing shapes behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100