anvaka / ngraph.pixi

PIXI.js graph renderer
MIT License
26 stars 16 forks source link

Asynchronously adding node's decorators (images, labels) #3

Open gg4u opened 7 years ago

gg4u commented 7 years ago

In https://github.com/anvaka/ngraph.pixi/issues/1 examples shown how to create labels and add thumbnails to nodes.

I was able to customise nodes by creating sprite of thumbnails when initialising the node.

However, with this design I have to wait that images are downloaded, and so they are no more asynchrously attached.

Could you suggest a better design so to that the graph can be rendered without waiting, and thumbnails are added once ready?