samizdatco/arbor — Issue #16: X,Y...
Author: acajaja
Created: 2011-11-16 02:31:35+00:00
State: open

Hey there. I need some help with adding nodes. I'm trying to set an initial x,y when add the node.

E.g. addNode( 'uniqueId', { x: -10, y: -15 } )

If i'm understanding the grid correctly it's a Cartesian coordinate grid with 0,0 at the center of the canvas.

The problem i'm having is that it's simply crashing the browsers when i set a given nodes x,y. On page load the nodes seem to basically explode in an apparent infinite loop. it seems to be with specific values. So say i have 6 nodes, i can set 3 of them and they seem to be in the correct position on page load and everything is ok. On the 4th node, I can set it, but it may or may not work.

FireFox does its straight-up freeze/crash/memory thing. WebKit crashes, but the browser tries to recover. (Windows/Mac)

Any input is appreciated.