LivInTheLookingGlass / visualizer

https://gappleto97.github.io/visualizer
13 stars 1 forks source link

Add location is drifting over time #2

Open LivInTheLookingGlass opened 9 years ago

LivInTheLookingGlass commented 9 years ago

Ideally it should be added to the center of the canvas all the time.

LivInTheLookingGlass commented 9 years ago

Hopefully fixed with most recent patch. Long-term testing is required.

LivInTheLookingGlass commented 9 years ago

This fixed it for coin nodes, but not transaction nodes.

LivInTheLookingGlass commented 9 years ago

I think this time it actually works. Closing for now.

LivInTheLookingGlass commented 9 years ago

Patch did not work. Butchered performance. Reverting.

LivInTheLookingGlass commented 9 years ago

So... setting node.location to {x:0,y:0} works for input/output nodes, but does not seem to work for transaction nodes. This can mean one of a few things:

  1. Transaction nodes have their locations set differently, as evidenced by them starting very close to large input/output groups they're associated with.
  2. Transaction nodes never have their location set, despite my efforts, and revert to the natural insertion point.
LivInTheLookingGlass commented 9 years ago

Note: it seems to be drifting even when position is manually set to 0,0. It is drifting significantly less than the original point of entry (as seen by brief flickers) but drifting nonetheless.

LivInTheLookingGlass commented 9 years ago

Partly working with setNodePosition(). Need to figure out why not all nodes do this.