react-sigma icon indicating copy to clipboard operation
react-sigma copied to clipboard

Example sigma.plugin.animate?

Open gopherine opened this issue 5 years ago • 3 comments

Are there any examples available how to animate ?

gopherine avatar Aug 21 '19 20:08 gopherine

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!

dunnock avatar Aug 21 '19 20:08 dunnock

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)' }

´´´

gopherine avatar Aug 23 '19 15:08 gopherine

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

dunnock avatar Aug 31 '19 20:08 dunnock