Lines between could be a pretty and usual way to simplify diagram read and design
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | jquery-canvas-lines.html_.txt | 2.67 KB | ndm |
Lines between could be a pretty and usual way to simplify diagram read and design
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | jquery-canvas-lines.html_.txt | 2.67 KB | ndm |
Comments
Comment #1
jpetso commentedMoving to Transformations issue queue. Totally a good idea, just a *bit* difficult to implement :P
Comment #2
ndm commentedI 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
Comment #3
schaefd commentedI'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/
Comment #4
ndm commentedyes it's a very good feature
Comment #5
mitchell commentedGreat. There's already a crowd; and now there's a whole issue queue just for this project, an exceptionally difficult project.
Comment #6
mitchell commentedRules Transformers could still, definitely use the help, but this issue itself doesn't serve much of a purpose.