Polyline origin position is not quite intuitive
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
Whenever a polyline is created the origin is set to the first coordenates you clicked, and if you edit this first vertex and change the overall size of the polyline this origin position does not change. So it´s easy to lose the graphic representation of what the polyline (x,y) position means (specially if you use the move tool, because that updates the polyline position).
Maybe is more intuitive to define the position of a polyline by the top left corner of the rectangle that surrounds it, and update if you edit the vertexes. Since the first vertex coordenates are always (0,0), you could parse it the same way, it´s just easier to understand what the polyline (x,y) position really is.
The same applies to the polygon tool.
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 the polyline and polygon tools assign positions when shapes are created, moved, and resized. Compare the current first-vertex origin with the proposed surrounding-rectangle origin; done means vertex edits update the position consistently and moving the shape preserves the expected representation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- design, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100