visgl / visgl/deck.gl

TextLayer minWidth

Open
#6,399 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

Allow text boxes to be uniformally sized on screen

Proposed feature

Add a property minWidth to text layer

Description

I have to display multiples values of weather stations, like that :
Sans titre
but it is not visually satisfying
I managed to get uniform widths by using white spaces and monospace font, it's a bit hacky but the result is quite OK
Sans titre2
except that the font is now pretty ugly^^

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 locating the TextLayer implementation and reading how its text box dimensions are calculated. Trace the existing sizing behavior before deciding where the proposed minWidth property belongs; done means text boxes can be given a uniform minimum width without relying on whitespace or a monospace font.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.