mapeditor / mapeditor/tiled

Polyline origin position is not quite intuitive

Open
#882 4 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.