VisActor / VisActor/VRender

[Feature] support background config in the text of richtext

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
263
Forks
50
Avg merge
1d 8h
Merged PRs (30d)
16

Description

What problem does this feature solve?

富文本中文字支持背景相关配置,包括: background,backgroundOpacity,backgroundCornerRadius

What does the proposed API look like?
export type IRichTextParagraphCharacter = IRichTextBasicCharacter & {
 ...
  // Add these attributes:
  backgroundShowMode?: 'always' | 'hover' | 'never';
  backgroundFill?: boolean | IColor; // 背景矩形填充颜色
  backgroundFillOpacity?: number; // 背景矩形填充透明度
  backgroundStroke?: boolean | IColor; // 背景矩形边框颜色
  backgroundStrokeOpacity?: number; // 背景矩形边框透明度
  backgroundRadius?: number; // 背景矩形圆角
  backgroundWidth?: number;
  backgroundHeight?: number;
};

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 TypeScript definition of IRichTextParagraphCharacter and the rich-text rendering path. Compare the proposed background attributes with existing character configuration and determine how their fill, stroke, opacity, radius, dimensions, and show mode should behave. Done means the attributes are supported consistently in rich-text rendering and covered by relevant tests, if available.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.