This is a demo for intergrating Hoops Web Platform (HWP) with Vue.js framework. It is bootstraped with Vue CLI and utilizes TypeScript.
A live demo is running with GitHub Pages at: https://techsoft3d.github.io/hwp-demo-vue/
Install node_module dependencies.
Compiles and hot-reloads for development.
Compiles and minifies for production.
Please make sure that NodeJS and Vue CLI are both installed.
- Create a new project with
vue create <new-project>
. Make sure to add TypeScript by selecting it with the space key, - Copy the type definition files
hoops_web_viewer.d.ts
andtcc.d.ts
into to thesrc/@types
folder. They can be found under/web_viewer/typescript/
folder of your local installation. - Include the
hoops_web_viewer.js
with a script tag in the header of index.html. It can be located under the/web_viewer/src/js/ folder
of your local installation.