Skip to content

Commit dd84e77

Browse files
committed
adrai#24 added class attribute to elements
1 parent 211c646 commit dd84e77

16 files changed

+2858
-13
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ and then
5454
'font-color': 'red',
5555
'element-color': 'green',
5656
'fill': 'yellow'
57+
},
58+
'end':{
59+
'class': 'end-element'
5760
}
5861
},
5962
// even flowstate support ;-)

component.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "flowchart",
3-
"version": "1.3.0",
4-
"main": "./release/flowchart-1.3.0.min.js",
3+
"version": "1.3.1",
4+
"main": "./release/flowchart-1.3.1.min.js",
55
"dependencies": {},
66
"ignore": [
77
"src/",

example/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<head>
44
<meta charset="utf-8">
55
<title>flowchart.js · Playground</title>
6+
<style type="text/css">
7+
.end-element { background-color : #FFCCFF; }
8+
</style>
69
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
710
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
811
<script src="../bin/flowchart-latest.js"></script>
@@ -43,6 +46,9 @@
4346
'font-color': 'red',
4447
'element-color': 'green',
4548
'fill': 'yellow'
49+
},
50+
'end':{
51+
'class': 'end-element'
4652
}
4753
},
4854
'flowstate' : {
@@ -67,7 +73,7 @@
6773
<body>
6874
<div><textarea id="code" style="width: 100%;" rows="11">
6975
st=>start: Start|past:>http://www.google.com[blank]
70-
e=>end: Ende|future:>http://www.google.com
76+
e=>end: Ende:>http://www.google.com
7177
op1=>operation: My Operation|past
7278
op2=>operation: Stuff|current
7379
sub1=>subroutine: My Subroutine|invalid

0 commit comments

Comments
 (0)