clientIO / clientIO/joint

Smart routers: Ends of the route are offset by a `step` away from padding box

Open
#1,030 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
5.4k
Forks
893
Avg merge
3d 3h
Merged PRs (30d)
26

Description

Both the manhattan and metro routers receive an extra offset at the beginning/end of the route (as large as one step unit). This is on top of any padding specified.

The offset is added by the getRectPoint function because of the way we use the config.directions array to control turns in the route.

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 getRectPoint and the config.directions handling in the manhattan and metro routers. Verify how route endpoints are calculated, then confirm that both ends align with the padding box without an additional step-sized offset.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
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.