arbor icon indicating copy to clipboard operation
arbor copied to clipboard

X,Y...

Open acajaja opened this issue 13 years ago • 0 comments

Hey there. I need some help with adding nodes. I'm trying to set an initial x,y when adding 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 (7,8) does its straight-up freeze/crash/memory thing. WebKit (Safari5, Chrome latest) keeps crashing in a loop, but the browser tries to recover. (Windows7/Mac)

Any input is appreciated. Great library!

Thanks.

acajaja avatar Nov 16 '11 02:11 acajaja