Salt (Wireframe)
Salt是 PlantUML 的一个子项目,可帮助您设计图形界面或网页。 网站线框或页面示意图或屏幕蓝图. 它在制作图形界面、示意图和蓝图方面非常有用。它有助于将概念结构与视觉设计相统一,强调功能性而非美观性。 开发人员、设计人员和用户体验专业人员使用Wireframes 将界面元素、导航系统可视化,并促进协作。Wireframes 是这一流程的核心,可用于各种学科。它们的保真度各不相同,从低细节草图到高细节表现,对于原型设计和迭代设计至关重要。这一协作过程整合了从业务分析到用户研究等不同的专业知识,确保最终设计符合业务和用户需求。
基本部件
一个窗口必须以中括号开头和结尾。
接着可以这样定义:
- 按钮用
[和]。 - 单选按钮用
(和)。 - 复选框用
[和]。 - 用户文字域用
"。
|
🎉 Copied!
|
|
这个工具是用来讨论简单的示例窗口。
WARNING
This translation need to be updated. WARNING
Text area
Here is an attempt to create a text area:
|
🎉 Copied!
|
|
Note:
- the dot (
.) to fill up vertical space; - the last line of space (
" ") to make the area wider.
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
Open, close droplist
You can open a droplist, by adding values enclosed by ^, as:
|
🎉 Copied!
|
|
[Ref. QA-4184]
使用表格
当在输入关键词 {后,会自动建立一个表格
当输入| 说明一个单元格
例子如下
|
🎉 Copied!
|
|
在启用关键词后,你可以使用以下字符来绘制表格中的线及列 :
| Symbol | Result |
#
|
显示所有垂直水平线 |
!
|
显示所有垂直线 |
-
|
显示所有水平线 |
+
|
显示外框线 |
|
🎉 Copied!
|
|
WARNING
This translation need to be updated. WARNING
分组框
|
🎉 Copied!
|
|
[参见 QA-5840]
使用分隔符
你可以使用几条横线表示分隔符
|
🎉 Copied!
|
|
树形外挂
使用树结构,你必须要 以 {T 进行起始,然后使用 + 定义层次。
|
🎉 Copied!
|
|
Tree table [T]
You can combine trees with tables.
|
🎉 Copied!
|
|
And add lines.
|
🎉 Copied!
|
|
[Ref. QA-1265]
Enclosing brackets [{, }]
You can define subelements by opening a new opening bracket.
|
🎉 Copied!
|
|
添加选项卡
你可以通过 {/ 标记增加对应的选项卡。
注意:可以使用HTML 代码来增加粗体效果。
|
🎉 Copied!
|
|
可以定义垂直选项卡,如下:
|
🎉 Copied!
|
|
使用菜单
你可以使用记号{*来添加菜单。
|
🎉 Copied!
|
|
你也可以打开一个菜单:
|
🎉 Copied!
|
|
*[Ref. [QA-4184](https://forum.plantuml.net/4184)]*
WARNING
This translation need to be updated. WARNING
高级表格
对于表格有两种特殊的标记 :
*单元格同时具备 span 和 left 两个属性.是空白单元格
|
🎉 Copied!
|
|
Scroll Bars [S, SI, S-]
You can use {S notation for scroll bar like in following examples:
{S: for horizontal and vertical scrollbars
|
🎉 Copied!
|
|
{SI: for vertical scrollbar only
|
🎉 Copied!
|
|
{S-: for horizontal scrollbar only
|
🎉 Copied!
|
|
Colors
It is possible to change text color of widget.
|
🎉 Copied!
|
|
[Ref. QA-12177]
Creole on Salt
You can use Creole or HTML Creole on salt:
|
🎉 Copied!
|
|
Pseudo sprite [<<, >>]
Using << and >> you can define a pseudo-sprite or sprite-like drawing and reusing it latter.
|
🎉 Copied!
|
|
[Ref. QA-5849]
OpenIconic
OpenIconic is an very nice open source icon set.
Those icons have been integrated into the creole parser, so you can use them out-of-the-box.
You can use the following syntax: <&ICON_NAME>.
|
🎉 Copied!
|
|
The complete list is available on OpenIconic Website, or you can use the following special diagram:
|
🎉 Copied!
|
|
Add title, header, footer, caption or legend
|
🎉 Copied!
|
|
(See also: Common commands)
Zoom, DPI
Whitout zoom (by default)
|
🎉 Copied!
|
|
Scale
You can use thescale command to zoom the generated image.
You can use either a number or a fraction to define the scale factor. You can also specify either width or height (in pixel). And you can also give both width and height: the image is scaled to fit inside the specified dimension.
|
🎉 Copied!
|
|
(See also: Zoom on Common commands)
DPI
You can also use theskinparam dpicommand to zoom the generated image.
|
🎉 Copied!
|
|
Include Salt "on activity diagram"
You can read the following explanation.
|
🎉 Copied!
|
|
It can also be combined with define macro.
|
🎉 Copied!
|
|
Include salt "on while condition of activity diagram"
You can include salt on while condition of activity diagram.
|
🎉 Copied!
|
|
[Ref. QA-8547]
Include salt "on repeat while condition of activity diagram"
You can include salt on 'repeat while' condition of activity diagram.
|
🎉 Copied!
|
|
[Ref. QA-14287]
Skinparam
You can use [only] some skinparam command to change the skin of the drawing.
Some example:
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
FIXME
🚩
FYI, some other skinparam does not work with salt, as:
|
🎉 Copied!
|
|
Style
You can use [only] some style command to change the skin of the drawing.
Some example:
|
🎉 Copied!
|
|
FIXME
🚩
FYI, some other style does not work with salt, as:
|
🎉 Copied!
|
|
[Ref. QA-13460]