a3dviewer
TypeScript icon, indicating that this package has built-in type declarations

0.0.74 • Public • Published

a3DViewer

This project was generated with Angular CLI version 9.1.7.

Development server

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.

Code scaffolding

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.

Dedicated Versions

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)

Build

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.

Test Publish

Run npm run-script packagr, copy content of dist to your project, test if it works before publishing.

Publish

Run npm run-script sendToNPM to package and publish.

Use Library

  1. Upgrade angular to the version of a3dviewer.
  2. Import the project using npm i a3dviewer.
  3. Import MainViewerModule from a3dviewer.
  4. Copy Assets folder data from node_modules\a3dviewer to src\assets.
  5. 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.
  6. Add ./node_modules/@angular/material/prebuilt-themes/indigo-pink.css to styles array in angular.json in your project.
  7. Now you will have to debug the code and do some experimentation to get it to work properly.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Readme

Keywords

none

Package Sidebar

Install

npm i a3dviewer

Weekly Downloads

2

Version

0.0.74

License

none

Unpacked Size

10.2 MB

Total Files

279

Last publish

Collaborators

  • ankush_chitosia