visgl / visgl/deck.gl

[Feat] Flip Icon along X or Y axis

Open
#9,773 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.