From 6e4d149cdf9671ddc46dbda900bbde7352d5a8dd Mon Sep 17 00:00:00 2001 From: zhouxinyu Date: Tue, 17 Jun 2025 15:04:16 +0800 Subject: [PATCH] docs: support text whiteSpace and suffixPosition --- docs/assets/option/en/graphic/text-font.md | 19 +++++++++++++++++++ docs/assets/option/zh/graphic/text-font.md | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/docs/assets/option/en/graphic/text-font.md b/docs/assets/option/en/graphic/text-font.md index f171e3149f..7bea5af785 100644 --- a/docs/assets/option/en/graphic/text-font.md +++ b/docs/assets/option/en/graphic/text-font.md @@ -91,6 +91,25 @@ Options: - "break-word": Does not allow breaking words in CJK (Chinese/Japanese/Korean) text, only breaks at half-width spaces or hyphens. - "keep-all": Does not break words in CJK (Chinese/Japanese/Korean) text. Non-CJK text words are not broken. (Supported since version 1.12.8) +#${prefix} whiteSpace(string) = 'no-wrap' + +Whether to wrap + +Options + +- "no-wrap": Do not wrap +- "normal": Allow wrapping + +#${prefix} suffixPosition(string) = 'end' + +If the suffix is displayed, the position of the suffix + +Options + +- "start": The suffix is displayed at the beginning of the text +- "middle": The suffix is displayed in the middle of the text +- "end": The suffix is displayed at the end of the text + #${prefix} keepDirIn3d(boolean) Whether to always maintain the direction facing the window in 3d mode (if set to false, it will rotate with the viewpoint, if set to true, the direction will always face the window) diff --git a/docs/assets/option/zh/graphic/text-font.md b/docs/assets/option/zh/graphic/text-font.md index d9dc10b0b8..522c401750 100644 --- a/docs/assets/option/zh/graphic/text-font.md +++ b/docs/assets/option/zh/graphic/text-font.md @@ -86,6 +86,25 @@ - "break-word": 不允许 CJK(中文/日文/韩文)文本中的单词换行,只能在半角空格或连字符处换行。 - "keep-all": CJK(中文/日文/韩文)文本不断行。非 CJK 文本单词不断行。(从 1.12.8 版本开始支持) +#${prefix} whiteSpace(string) = 'no-wrap' + +是否折行 + +可选值: + +- "no-wrap": 不允许折行 +- "normal": 允许折行 + +#${prefix} suffixPosition(string) = 'end' + +如果显示后缀的话,后缀显示的位置 + +可选值: + +- "start": 在文本的开头 +- "middle": 在文本的中间 +- "end": 在文本的结尾 + #${prefix} keepDirIn3d(boolean) 是否在 3d 模式中始终保持方向朝向窗口(配置为 false 则会随着视角旋转而旋转,配置为 true,那么方向始终朝向窗口)