This project was generated with Angular CLI version 9.1.7.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Increment version number before releasing to apps using this project inside package.json and package-lock.json. Note : No two viewer version number can be same(Ex - Quote and Inspection project, version number should be different)
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run npm run-script packagr
, copy content of dist to your project, test if it works before publishing.
Run npm run-script sendToNPM
to package and publish.
- Upgrade angular to the version of
a3dviewer
. - Import the project using
npm i a3dviewer
. - Import
MainViewerModule
froma3dviewer
. - Copy
Assets
folder data fromnode_modules\a3dviewer
tosrc\assets
. - Add
<app-viewer-main [BasicWindow]=basic [fileID]=fileid style="width: 80%; height: 100%; position: fixed; top: 0; left: 0;"></app-viewer-main>
to html file, where basicwindow is a boolean which defines if you need the bare minimum window or not and fileid is number which defines the fileid. style can be defined here. - Add
./node_modules/@angular/material/prebuilt-themes/indigo-pink.css
to styles array in angular.json in your project. - Now you will have to debug the code and do some experimentation to get it to work properly.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.