Hi,
you can find a demo using path.js here:
http://frankhess.de/soccer/
WebContent/. This would allow a lot of interesting stuff like
modifying the bezier curve using dnd. Just dnd 2 players from the left
side on the soccer field. When moving the mouse over a wire you can
drag the black rectangle and the bezier curve follows. Integrating
this would give some flexibility to wireit.I'm in contact with the
author of path.js to get the modified version of path.js (dependency
to prototype removed) back to trunk.
Thanks,
Frank
On Sep 2, 10:17 am, Frank <
m...@frankhess.de> wrote:
> Hi,
>
> sorry I was a few days off in Norway with no internet connection
> available. No I just implemented it for 1 wire type - but I'm looking
> forward for an universal solution. At the moment I'm looking athttp://
canviz.googlecode.com/svn/path/. I already removed the protoype
> dependency. Maybe it would be a good idea to separate the drawing
> process of the wires. The lib has some nice features (like dotted line
> style) and good algorithms for bezier curves. Do you think it would be
> a good idea to integrate this in wireit? There are some examples
> inside the lib, or I can send you a link of a demo I created combining
> path.js and wireit. If you are interested I can send you a patch.
>
> Thank you,Frank
>
> On Aug 13, 10:27 am, Eric Abouaf <
eric.abo...@gmail.com> wrote:
>
> > ThanksFrank!
> > I got it working with a few changes...
>
> > However, the fix is not immediate, because I want it to work with all kinds
> > of wires. (we have 4 different drawing algorithms at the moment)
>
> > The issue is that the positionning of the text depends of the drawing
> > method, so we would have to implement this for each method. :(
> > I'm still looking for a good way to model text positionning :
>
> > Maybe the wire drawing methods should return the positions of the terminals
> > in the canvas referential, so that we can use the same algorithm to position
> > the text.
>
> > What do you think ?
> > Have you implemented it on all drawing methods ?
>
> > Eric
>