How do i update the view using setViewCube in v7? I was using the following code in v6, but it doesn't work in v7.
viewer.setViewCube('[top/front]');
In the migration guide v6 to v7 it says, I should call it through the extension:
extension.setViewCube(display);
How do I get the extension object from where to call it from?