anvaka / ngraph

Beautiful Graphs
MIT License
1.41k stars 131 forks source link

Demonstration of basic node manipulation operations #11

Closed KennethAdamMiller closed 9 years ago

KennethAdamMiller commented 9 years ago

Is there documentation or an example somewhere that demonstrates the following: set node coordinate set node dimensions, color, & opacity pan programmatically animate programmatically set text over node

?

anvaka commented 9 years ago

Hi Kenneth,

It really depends on which renderer you are using. All demos in this repository have this information. E.g. look at how pixi graphics is implemented: https://github.com/anvaka/ngraph/blob/master/examples/pixi.js/05%20-%20Dynamic/pixiGraphics.js - it's only 200 lines of code, and you can start building your renderer based on this.

If you want to have something more opinionated you can also take a look at vivagraph tutorials: https://github.com/anvaka/VivaGraphJS/tree/master/demos