Lines between could be a pretty and usual way to simplify diagram read and design

CommentFileSizeAuthor
#2 jquery-canvas-lines.html_.txt2.67 KBndm

Comments

jpetso’s picture

Project: Transformations -- Drupal data » Transformations

Moving to Transformations issue queue. Totally a good idea, just a *bit* difficult to implement :P

ndm’s picture

StatusFileSize
new2.67 KB

I imagine. I made a thing with prototype lib last year, the solution i have find was to take the absolute position of center and place the line on special layer (div). The only big problem was the movement, because i don't watch position when objects move.

Now, i have find a example who is simple. I have add drag function on the attached file. The original work can be found here : http://servut.us/akx/stackoverflow/jquery-canvas-lines.html.

It seem that the code to add is :
-a canvas to draw the lines or a canvas by line
-a function named updateCanvas modified with transformation's dom specifications
-a rel attribute on one on the two links parameters
-a single class for each relation
-the update function on the drag and the end of drag with the function updateCanvas with parameters (canvas to redraw, class impacted).

Out of box this solution don't have advanced options, like :
-point on middle of line to have best diagram,
-line style options
-curves
-pathfinding

schaefd’s picture

I've been looking at using the open source Javascript library wireit for making nice looking pipes. Anyone else looking at this problem?
http://javascript.neyric.com/wireit/

ndm’s picture

yes it's a very good feature

mitchell’s picture

Title: Line between connection » Integrate stakeholders who wish to help out
Project: Transformations » Rules Transformers
Version: 6.x-1.0-beta1 » 7.x-1.x-dev
Component: User interface » Miscellaneous
Category: feature » task

Great. There's already a crowd; and now there's a whole issue queue just for this project, an exceptionally difficult project.

mitchell’s picture

Title: Integrate stakeholders who wish to help out » Line between connection
Project: Rules Transformers » Transformations
Version: 7.x-1.x-dev » 6.x-1.0-beta1
Status: Active » Closed (won't fix)

Rules Transformers could still, definitely use the help, but this issue itself doesn't serve much of a purpose.