jquery+flowchart实现svg简易流程图效果代码
代码语言:html
所属分类:图表
代码描述:jquery+flowchart实现svg简易流程图效果代码
代码标签: jquery flowchart svg简易 流程图
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
/* --- basis elements styling --- */
html,
body {
position: aboslute;
top: 0px;
left: 0px;
margin: 0px;
padding: 0px;
ovrflow: hidden;
background-color: #dfdfdd;
}
#connections-layer {
z-index: 1;
}
#nodes-layer {
z-index: 2;
}
.layer {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
}
.layer path {
fill: none;
stroke: #000;
stroke-linecap: round;
stroke-width: 5;
}
.layer .node {
position: absolute;
}
/* --- custom nodes styling --- */
.simple-node {
min-width: 70px;
min-height: 20px;
padding: 5px;
border: 5px solid #000000;
background-color: #ffffff;
white-space: nowrap;
}
.expression-node {
fill:red;
stroke:black;
stroke-width:5;
}
.decision-node {
fill:yellow;
stroke:black;
stroke-width:5;
}
#node-actions-dialog {
font-family: Verdana;
font-size: 0.8em;
background-color: #ffffff;
border: 2px solid #666666;
height: 270px;
left: 10%;
overflow: hidden;
position: absolute;
top: 10px;
width: 80%;
z-index: 999;
padding: 5px;
-webkit-box-shadow: 4px 3px 14px -3px rgba(0,0,0,0.75);
-moz-box-shadow: 4px 3px 14px -3px rgba(0,0,0,0.75);
box-shadow: 4px 3px 14px -3px rgba(0,0,0,0.75);
display: none;
}
#node-actions-dialog .simple-node {
width: 80px;
margin: 5px;
cursor: pointer;
}
#node-actions-dialog .expression-node,
#node-actions-dialog .decision-node {
display: block;
margin: 5px;
cursor: pointer;
}
#node-actions-dialog button {
cursor: pointer;
}
</style>
</head>
<body>
<div id="node-actions-dialog">
<p>Add child node:</p>
<div>
<div id="add-simple-node-action" class="simple-node">simple node</div>
<svg id="add-expression-node-ac.........完整代码请登录后点击上方下载按钮下载查看
网友评论0