Thanks for the help!
I am able to implement it into an Angular project. Still, I need to ask that there are any types(typescript) defined for the viewer's JavaScript library? And where can I find proper documentation for viewer JS?
Is there any way that the viewer can be implemented without Jquery? I want to implement it in an Angular application. Could anyone suggest me a better way to get it worked with Angular?