plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
472 stars 69 forks source link

[Question] Rendering options available in react? #13

Closed xhluca closed 4 years ago

xhluca commented 5 years ago

Are the rendering options such as

  // rendering options:
  headless: false,
  styleEnabled: true,
  hideEdgesOnViewport: false,
  hideLabelsOnViewport: false,
  textureOnViewport: false,
  motionBlur: false,
  motionBlurOpacity: 0.2,
  wheelSensitivity: 1,
  pixelRatio: 'auto'

available as props in the react component? I.e., the ones decribed here: http://js.cytoscape.org/#core/initialisation

maxkfranz commented 5 years ago

They could be supported, but they wouldn't be mutable without creating an entirely new cy instance. The library does not allow for changing those options.

xhluca commented 5 years ago

Hmm that makes sense! Thanks for the heads up.

erikhofer commented 5 years ago

Would be nice to have these, even if they're not mutable. For me, the unit test crashes when rendering the component. I suppose I have to set headless to solve this.