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