Skip to content

Commit f464483

Browse files
committed
Flowchart start to the right adrai#22, and added x and y option to shift the whole chart
1 parent a862eaf commit f464483

17 files changed

+2753
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ $ cat .gitignore
44
.settings.xml
55
.monitor
66
.DS_Store
7+
.idea
78

89
# Use wildcards as well
910
*~

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ and then
3535
// you can also try to pass options:
3636
3737
diagram.drawSVG('diagram', {
38+
'x': 0,
39+
'y': 0,
3840
'line-width': 3,
3941
'line-length': 50,
4042
'text-margin': 10,

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.2.11",
4-
"main": "./release/flowchart-1.2.11.min.js",
3+
"version": "1.2.12",
4+
"main": "./release/flowchart-1.2.12.min.js",
55
"dependencies": {},
66
"ignore": [
77
"src/",

example/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>flowchart.js · Playground</title>
6-
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script>
6+
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
77
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
88
<script src="../bin/flowchart-latest.js"></script>
99
<script>
@@ -22,6 +22,8 @@
2222

2323
chart = flowchart.parse(code);
2424
chart.drawSVG('canvas', {
25+
'x': 30,
26+
'y': 50,
2527
'line-width': 3,
2628
'line-length': 50,
2729
'text-margin': 10,

0 commit comments

Comments
 (0)