Kitware / paraviewweb

Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data
http://kitware.github.io/paraviewweb/
BSD 3-Clause "New" or "Revised" License
163 stars 50 forks source link

react VtkRenderer component freezes on resize #485

Closed kmilo9999 closed 6 years ago

kmilo9999 commented 6 years ago

Hi,

So, I have a VtKRenderer component inside a div tag:

      <div key={'view'+id} style ={{ position: 'relative', display: 'block',width: this.state.myWidth?'50%':'100%',}} >
                        <VtkRenderer
                         key={id}
                         connection={network.getConnection()}
                         client={network.getClient()}
                         viewId={id}

                         stillQuality={100}
                         interactiveQuality={60}
                         stillRatio={1}
                         interactiveRatio={1}
                     />
                     </div>

css width property is managed by a state varibale .(I got code that controls its value ). When I resize the div tag, the vtk renderer freezes and stops receiving input events. If the browser is resized then the vtk renderer gets the given size but still doesnt get any input.

Do you have any thoughts on this?

Thanks a lot.

jourdain commented 6 years ago

I would need to see what is going on to really tell if there is a bug or if it is a user error.

kmilo9999 commented 6 years ago

Thanks! Let me know what you can find.

jourdain commented 6 years ago

It might be related to an id issue that we may have fixed lately on PVW. Do you use the latest version?

kmilo9999 commented 6 years ago

I am using August 14th master version. Should I get a newest one?

jourdain commented 6 years ago

You want https://github.com/Kitware/paraviewweb/releases/tag/v3.2.5 or more recent

kmilo9999 commented 6 years ago

yuuusssss. Now It does receive the input events and the screen doesnt freeze, Thanks ( I'm assuming I can just write "paraviewweb": "3.2.5" in the package.json file, right ?).

Although, the renderer view is not resized, only takes the given size after resizing the browser (max or minimize events). I think is a client side problem thought. But let me know if you have any hint on that.

Thanks

jourdain commented 6 years ago

yes you can. For the resize, I don't know.