Creating flowchart using Snap

777 views
Skip to first unread message

Atin Sood

unread,
Oct 31, 2014, 11:27:43 AM10/31/14
to sna...@googlegroups.com
I am trying to create a flowchart editor similar to https://dl.dropboxusercontent.com/u/16408368/WebUI_FlowChart/index.html

I am looking for some directions on how to go about it. In order to draw each item, I am basically planning to create an item group with say rectangle and a small circle(circle acts as the connector point). 

I am not sure on how to implement the connecting path between 2 such elements and how to track the path i.e. what 2 points is the path connecting. Also how on only draw the path only when you click from one such circle to another. 

I am new to SVG and Snap so my knowledge is pretty limited. Any feedback on how to go about this would be nice, I am not shy of reading so any reading pointers on how such things are done would be helpful 

:) 

Thanks in advance for the help.

Ian

unread,
Oct 31, 2014, 11:32:26 AM10/31/14
to sna...@googlegroups.com
Just wondering if graffle is any use. I converted the original Raphael (I think by Dmitry) graffle to Snap http://svg.dabbles.info/snaptut-graffle.html if its any use. Top part is a plugin you would include, lower down an example of it being in use.

Even if you don't want to use it, it may be worth a run through the code.

Atin Sood

unread,
Nov 2, 2014, 12:16:16 AM11/2/14
to sna...@googlegroups.com
Thanks will check it out. 

Ammar Abu-Yasein

unread,
Jan 30, 2016, 3:01:58 PM1/30/16
to Snapsvg
Hey there Ian,

So I assume you are the author of Snap.svg?
Its a pretty cool library.

Say, I am also trying to create a workflow editor and was wondering if there are any examples making connectors between nodes using snap.svg.

I know the example you provided shows connectors. But, I mean having the user make connectors by selecting an end-point and dragging a connector
to another node?

Thanks

Ian

unread,
Jan 30, 2016, 3:37:47 PM1/30/16
to Snapsvg
Nooo, Snap (and Raphael) was created by Dmitry https://github.com/DmitryBaranovskiy . I just help out on here a lot as I love Snap (and trying to help folk) and helps me learn.

There was a thread a few days ago, worth looking at https://groups.google.com/forum/#!topic/snapsvg/odHDZpNWHrc which may give some ideas.

Ammar Abu-Yasein

unread,
Jan 31, 2016, 7:09:08 AM1/31/16
to Snapsvg
Sure thing.

Thanks for link.
Reply all
Reply to author
Forward
0 new messages