[Feat] Add getmaxWidth to Text Layer
Nobody has claimed this yet.
- 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
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 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