dunnock / react-sigma

Lightweight React library for drawing network graphs built on top of SigmaJS
https://dunnock.github.io/react-sigma/
MIT License
261 stars 43 forks source link

Example sigma.plugin.animate? #74

Open gopherine opened 5 years ago

gopherine commented 5 years ago

Are there any examples available how to animate ?

dunnock commented 5 years ago

Unfortunately sigma animate is not implemented in this library. It can be added similar to dagre plugin: https://github.com/dunnock/react-sigma/blob/master/sigma-src/dagre.js

Pull requests are very welcome!

gopherine commented 5 years ago

I tried forking the project and running storybook however i get type error it will be my first time adding on to something like this can you give me some hints what am i missing here


ERR! TypeError: Cannot read property 'rules' of undefined
ERR!     at module.exports (/Users/atharva/Documents/react-sigma/react-sigma/.storybook/webpack.config.js:8:30)
ERR!     at Object.webpack (/Users/atharva/Documents/react-sigma/react-sigma/node_modules/@storybook/core/dist/server/preview/custom-webpack-preset.js:43:12)
ERR!  { TypeError: Cannot read property 'rules' of undefined
ERR!     at module.exports (/Users/atharva/Documents/react-sigma/react-sigma/.storybook/webpack.config.js:8:30)
ERR!     at Object.webpack (/Users/atharva/Documents/react-sigma/react-sigma/node_modules/@storybook/core/dist/server/preview/custom-webpack-preset.js:43:12)
ERR!   stack:
ERR!    'TypeError: Cannot read property \'rules\' of undefined\n    at module.exports (/Users/atharva/Documents/react-sigma/react-sigma/.storybook/webpack.config.js:8:30)\n    at Object.webpack (/Users/atharva/Documents/react-sigma/react-sigma/node_modules/@storybook/core/dist/server/preview/custom-webpack-preset.js:43:12)' }

´´´
dunnock commented 5 years ago

hi @gopherine , sorry for long delay with response. Actually it was a bug caused by last storybook upgrade. I have fixed in the latest master commit, it should compile well now. Thanks