techniq / techniq/layerchart

Add `TextRect` component to easily add backgrounds to `Text` components

Open
#479 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

layer:canvas layer:svg
Dominant language
TypeScript
Stars
1.3k
Forks
41
Avg merge
2d 19h
Merged PRs (30d)
16

Description

Would be very helpful when using Svg and Canvas layers to easily add a Rect as a background behind a Text. Getting the dimensions (and support a padding attribute) will take some thought.

This could also be directly integrated into Text as:

<Text background="...">, <Text bg="...">, etc

Contributor guide

No contributing guide indexed for this repository

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 existing Text, Rect, Svg, and Canvas components and reviewing how text dimensions are obtained. Clarify whether the work should add a standalone TextRect component or background and padding support to Text, then define the expected dimension and padding behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.