rii-mango / Papaya

A pure JavaScript medical research image viewer.
Other
551 stars 205 forks source link

Trouble creating new visualizer when page is already loaded #208

Open dhiganthrao opened 2 years ago

dhiganthrao commented 2 years ago

Greetings!

First of all, thank you for creating this amazing package for visualization. It's a godsend and very easy to use.

I've just run into a few problems while trying to integrate it into a web page, so I'm opening this issue to get some questions clarified.

A bit of context about what I want to do: I want to create a webpage (which is connected to a backend through Flask), which lets a user visualize brain tumor data. This webpage initially contains a few Papaya instances (shown below): image

So now, I want to have a button (in the NavBar), which says "Add new visualizer". On clicking this button, another blank Papaya instance should get created, preferably next to the two Papaya instances already present. So this would also require resizing of the existing Papaya instances to accommodate the third instance (I preferably want to place three instances in one row, on adding a fourth instance, a new row can be created and the fourth instance is placed below the existing three.) However, I can't seem to add a new visualizer without replacing the existing two; the methods I've tried are:

Thank you so much for reading through this, and please help out at your own time and convenience!

dhiganthrao commented 2 years ago

Hello, could I kindly receive some help on this issue? Thank you!