PAIR-code / megaplot

Apache License 2.0
19 stars 5 forks source link

Implement destroy method for Scene #47

Open jimbojw opened 2 years ago

jimbojw commented 2 years ago

Megaplot API users may wish to explicitly release all runtime memory and WebGL resources used by a Scene. To support this, the Scene should have a destroy() method which systematically releases all resources used by the Scene.

Once a Scene has been destroyed, any other API interaction with the Scene or its generated objects (such as Selections) should throw an error.