Drawing FBP in browser

181 views
Skip to first unread message

Henri Bergius

unread,
Oct 2, 2011, 9:42:47 AM10/2/11
to Flow Based Programming
Hi,

Yesterday I had some discussions about FBP here in JSconf.eu, and I
found out about Joint, a tool that might have potential for drawing
FBP graphs:
http://www.jointjs.com/demos/run.html?unit=devs

This is completely browser-based and under the MIT open source
license. I will try to hook it up with NoFlo and see if it works well
for the concept.

--
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Jabber: henri....@gmail.com
Microblogs: @bergie

Paul Morrison

unread,
Oct 8, 2011, 5:08:09 PM10/8/11
to Flow Based Programming
Hi Henri,

That's quite pretty! I sort of like that subnet notation... I am not
sure what the source code is though - is it the code that draws the
diagram, or is a text representation of the diagram? Or maybe they
are the same thing in this technology, which I think could be
confusing...
> Jabber: henri.berg...@gmail.com
> Microblogs: @bergie

Tom Young

unread,
Oct 8, 2011, 7:10:51 PM10/8/11
to flow-based-...@googlegroups.com
Very nice!  Also very close to GraphViz .DOT language.   Should be relatively easy to
convert back and forth.  

          -Tom Y.
--
Tom Young
47 MITCHELL ST.
STAMFORD, CT  06902

"When bad men combine, the good must associate; ..." 
   -Edmund Burke 'Thoughts on the cause of the present discontents' , 1770

This e-mail message from Tom Young is intended
only for the individual or entity to which it is addressed. This e-mail
may contain information that is privileged, confidential and exempt from
disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any dissemination, distribution or copying
of this communication is strictly prohibited. If you received this
e-mail by accident, please notify the sender immediately and destroy
this e-mail and all copies of it.

Henri Bergius

unread,
Oct 11, 2011, 3:57:15 AM10/11/11
to flow-based-...@googlegroups.com
Hi,

On Sun, Oct 9, 2011 at 12:08 AM, Paul Morrison <paul.m...@rogers.com> wrote:
> That's quite pretty!  I sort of like that subnet notation...  I am not
> sure what the source code is though - is it the code that draws the
> diagram, or is a text representation of the diagram?  Or maybe they
> are the same thing in this technology, which I think could be
> confusing...

The source (http://www.jointjs.com/demos/devs.js) is the text
representation of the diagram, which the JointJS widget then
visualizes and manipulates.

The author of JointJS is very interested in FBP, and I hope we'll be
able to demonstrate NoFlo with it soon.

One downside with JointJS currently is that it requires SVG support
from the browser, and so doesn't work in current Android devices. I
hope this will be fixed at some point, as I find touchscreens a very
potential solution for making drawing of FBP graphs more efficient.

--
Henri Bergius

Andres Tremols

unread,
Nov 19, 2011, 7:43:13 AM11/19/11
to flow-based-...@googlegroups.com
Have you checked out jsplumb?  its open source, and can render with different mechanisms (svg, html5). I am making a web based fbp editing environment with it.

Henri Bergius

unread,
Nov 19, 2011, 12:06:55 PM11/19/11
to flow-based-...@googlegroups.com
Hi,

Yep, jsplumb was my first pick, but it didn't handle ports quite the
way I liked, and so I've now been looking at JointJS instead. If you
want to see the jsplumb-powered editor I did, check out:
https://github.com/bergie/noflo/tree/master/server
Screenshot:
http://universalruntime.tumblr.com/post/8998693776/node-js-powered-web-server-written-with-the-noflo

There has been quite a bit of discussion on the various libraries we
could use for browser-based FBP editing:
https://github.com/bergie/noflo/issues/1

Andres Tremols

unread,
Nov 19, 2011, 12:55:50 PM11/19/11
to flow-based-...@googlegroups.com
  Know what you mean with the ports limitation, I managed to hack around it so that a box can have multiple labeled inputs and outputs on the left and right sides (like the reactor and synthedit  music environments).

 That said, I would sacrifice the fancy spline lines for performance and lightness, squared lines made with a few divs are fine. 

Simon Porritt

unread,
Jan 19, 2012, 4:32:47 PM1/19/12
to flow-based-...@googlegroups.com
Hi - I just came across this discussion. I am the author of jsPlumb and I'm always interested in ways I can improve it - could you tell me a little more about the ports limitation you're talking about here?

thanks!

Paul Morrison

unread,
Jan 25, 2012, 10:11:42 AM1/25/12
to Flow Based Programming
Hi Simon,

I assume that it is because jsPlumb doesn't support multiple input and
output named ports - I'm not familiar with it, so maybe there is a way
to do this...? You could take a look at a diagram I am working on
right now - at http://www.jpaulmorrison.com/graphicsstuff/ViewCSV-Iteration1-2.png
to get an idea of what a working diagram might look like. Right now,
this app diagram is in its early stages - later it will sprout other
information such as component names... There is a lot of information
about this drawing tool, called DrawFBP, and FBP in general, on
http://www.jpaulmorrison.com/fbp .

Forrest Oliphant

unread,
Mar 1, 2012, 7:48:12 PM3/1/12
to flow-based-...@googlegroups.com
That's a nice library. I invented about the same wheel (in a limited way, but with input and output ports) for my http://meemoo.org/ project.
Reply all
Reply to author
Forward
0 new messages