34 lines
941 B
Markdown
34 lines
941 B
Markdown
|
|
# Documentation
|
|
- Class name: PreviewTextNode
|
|
- Category: AlekPet Nodes/extras
|
|
- Output node: True
|
|
|
|
PreviewTextNode提供了一个简单的接口,用于生成文本输入的预览。它主要用于以用户友好的格式显示给定的文本,允许在进一步处理或使用之前快速预览。
|
|
|
|
# Input types
|
|
## Required
|
|
- text
|
|
- 生成预览所需的主要文本输入。它对节点的操作至关重要,因为它直接影响显示给用户的输出。
|
|
- Comfy dtype: STRING
|
|
- Python dtype: str
|
|
|
|
# Output types
|
|
- string
|
|
- 处理后的文本作为输出的一部分返回,封装了预览的文本。
|
|
- Comfy dtype: STRING
|
|
- Python dtype: Tuple[str]
|
|
- ui
|
|
- 输出包括一个用户界面组件,用于显示输入文本的预览。
|
|
|
|
|
|
## Usage tips
|
|
- Infra type: `CPU`
|
|
- Common nodes: unknown
|
|
|
|
|
|
## Source code
|
|
```python
|
|
# Built-in or C extension class, unable to automatically detect source code
|
|
```
|