-
Notifications
You must be signed in to change notification settings - Fork 88
流程图的选项设置
WuHuan edited this page Sep 14, 2015
·
1 revision
要更改流程图的样式,可以打开Wiz.Editor.md\Editor.md\lib\jquery.flowchart.min.js
文件,更改以下配置:
var defaults =
{
"x" : 0,
"y" : 0,
"line-width" : 2,
"line-length" : 50,
"text-margin" : 10,
"font-size" : 14,
"font-color" : "black",
"line-color" : "black",
"element-color" : "black",
"fill" : "white",
"yes-text" : "yes",
"no-text" : "no",
"arrow-end" : "block",
"symbols" :
{
"start" :
{
"font-color" : "black",
"element-color" : "black",
"fill" : "white"
},
"end" :
{
"class" : "end-element"
}
},
"flowstate" :
{
"past" :
{
"fill" : "#CCCCCC",
"font-size" : 12
},
"current" :
{
"fill" : "black",
"font-color" : "white",
"font-weight" : "bold"
},
"future" :
{
"fill" : "white"
},
"request" :
{
"fill" : "blue"
},
"invalid" :
{
"fill" : "#444444"
},
"approved" :
{
"fill" : "#58C4A3",
"font-size" : 12,
"yes-text" : "APPROVED",
"no-text" : "n/a"
},
"rejected" :
{
"fill" : "#C45879",
"font-size" : 12,
"yes-text" : "n/a",
"no-text" : "REJECTED"
}
}
};