Viewer.destroy() method

Stop rendering, destroy the viewer and release all internal resources.

Signature:

destroy(): void;

Returns:

void