visgl / visgl/deck.gl

[Feat] Add getmaxWidth to Text Layer

Open
#9,224 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

I'm currently using a PolygonLayer, and showing some text under the polygons. I would like to use a maxWidth independent for each element. so that the maximum width of each text object is constrained by the associated polygon size.

Is there any way to implement a data accesor for the maxWidth parameter?

Proposal

The idea is just to add the possibility to create a Data Accessor for maxWidth

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 Text Layer's maxWidth configuration and its data-accessor handling. Compare how other per-element properties are exposed, then add support for varying maxWidth by data item and verify that each text object can use its associated value.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.