[Feat] Flip Icon along X or Y axis
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
Target Use Case
Currently, IconLayer has getAngle for rotation of Icon. In many cases, mirror an icon along X or Y is necessary. For example, if we have an icon, __/ __, and want to render as __ \____, rotation does not work. Adding accessor to flip an Icon along X or Y axis is a useful feature in this case.
Proposal
add an accessor getFlip()
null - no flip, 0 flipX, 1 flipY or 'X" or "Y"
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 with IconLayer and its existing getAngle accessor to understand how icon orientation is represented. Define what getFlip should accept for null, X/0, and Y/1, then verify that icons render mirrored along the requested axis without changing rotation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100