I want to fill in some user data in the browser as a graph of draggable nodes, with each node representing the user and the edges the relationship between them. I figured out the solution (it works): I use draggable divs over HTML5 canvas (divs have a larger z-index than canvas, and are therefore visible). The canvas is then used to draw lines connecting the divs. The problem is that every time a drag event is triggered by a user by dragging a node, the entire canvas needs to be cleared, and all edges need to be redrawn. This leads to flicker, and this, I think, is not the optimal solution. Please note that I am not an HTML / CSS developer, and perhaps my solution is very naive.
I can use any suggestions from you. (3) / HTML (5) Guru. I am open to all kinds of solutions, but would like to avoid the light of Flash / [Silver | Moon].
As an example, I really like the Pearltrees interface, but I donβt have to think itβs a fantasy. I tried to read main.js from my page source, but its gazillion functions, all wrapped in one line each.
source share