Nice work. I should take some time and look through your code. Great job.

Here are some performance test (caching in jquery)
http://jquery-howto.blogspot.com/2008/12/caching-in-jquery.html

Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Jan 8, 2009 at 11:36 PM, David Decraene
<david.ma.decra...@gmail.com> wrote:
>
> Well, suprisingly there was an issue with drawing.
> The script made an overzealous use of the jquery function
> $element.offset();
> Storing the position as variable instead of accessing it by offset()
> led to a very notable increase in performance.
>
> See demo at http://jowl.ontologyonline.org/TouchGraph.html
>
>
>
> On 8 jan, 08:37, David Decraene <david.ma.decra...@gmail.com> wrote:
>> The great thing of html of course is that you can use css, means you
>> can style it easily (demo has very basic styling, some rounded corners
>> in firefox).
>> Not sure how flexible styling in raphael is, I'm not familiar enough
>> with it.
>> Also don't think canvas or svg will be any faster, because the issue
>> is not with drawing the changes, but with calculating the position of
>> each node (=Javascript Math).
>>
>> On Jan 8, 2:27 am, Ricardo Tomasi <ricardob...@gmail.com> wrote:
>>
>> > using "NO" Canvas or SVG is not that great a feature is it? :)
>>
>> > Make that use raphael.js and it's all set!
>>
>> > On Jan 7, 5:13 pm, David Decraene <david.ma.decra...@gmail.com> wrote:
>>
>> > > Thanks!
>>
>> > > It does need some computations that scale exponentially with the
>> > > amount of nodes shown...
>> > > but I think it seems to perform ok with a not too high amount of
>> > > nodes, for an implementation that only uses html elements. Who nows,
>> > > with future browsers.... (or a better algorithm :)) things might scale
>> > > better...
>>
>> > > Greetings
>> > > David
>>
>> > > On 7 jan, 19:00, Joe <joseph.is...@gmail.com> wrote:
>>
>> > > > Very impressive!  Seems a bit sluggish at times in FF 3.0.5, but nice
>> > > > work!
>>
>> > > > Joe
>>
>> > > > On Jan 7, 5:12 am, David Decraene <david.ma.decra...@gmail.com> wrote:
>>
>> > > > > I had some fun creating a pure HTML-DOM based Force-directed graph
>> > > > > layout, similar to a touchgraph (http://www.touchgraph.com/) view.
>>
>> > > > > Built with the help of jQuery (hereby again: wonderful library), no
>> > > > > canvas or SVG used (only DOM manipulations).
>>
>> > > > > You can see an experimental demo 
>> > > > > at:http://jowl.ontologyonline.org/TouchGraph.html.
>> > > > > and the blog 
>> > > > > post:http://ontologyonline.blogspot.com/2009/01/experimental-touchgraph-vi....
>>
>> > > > > Room for lot's of improvement, but nevertheless quite happy with the
>> > > > > result already.
>>
>> > > > > David Decraenehttp://ontologyonline.org

Reply via email to