Lemoncode / Lemoncode/quickmock

Generic way to rotate and flip shapes

Open
#655 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

challenge
Dominant language
TypeScript
Stars
70
Forks
23
PR merge metrics
No merged PRs in 30d

Description

It would be nice to provide an option to rotate a given shape or flip it.

Right now this could be accomplished using the transformer, but we had to disabled it since the rotate functionallity was buggy (not stable in our shapes).

So we need here first some brainstorming, my two cents:

  • We could add an option in the context menu.
  • We could add them on the properties panel (like the z-index thingie)

Another challenge we have to find a way that makes this generic (no need to be implemented on every shape, maybe let's start only with the basic shapes (the rest are not that important, and have an additional challenge resizing limitations and inline edition).

Maybe we could add a generic control that just adds a wrapper and applies a rotate transform on the shape?

Contributor guide

No contributing guide indexed for this repository

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 by reviewing the existing transformer and how basic shapes are handled. Compare the context menu and properties panel as possible entry points, then determine how a generic wrapper could support rotation and flipping without per-shape implementations. Done means the approach is agreed and stable for the selected basic shapes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
design, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.