To see how a CAD Canvas is set up with callback methods and initialization of CADViewer, as an alternative to 1: - 3: above, use the following samples as a template:ĤA: ReactJS - download the CADViewer React implementation sample from the Github repository cadviewer-testapp-react-01.ĤB: VueJS - download the CADViewer VueJS implementation sample from Github repository cadviewer-testapp-vue-01.ĤC: Angular - download a CADViewer Angular implementation sample from the repositories either Github - Angular 11 ( cadviewer-testapp-angular-v01) or Github - Angular 13 with TypeScript ( cadviewer-testapp-angular-v02). Note 3: Always install the back-end cadviewer-conversion-server (windows) or cadviewer-conversion-server-linux (linux) for CAD conversion, Redlines and Space Object management. Note 2: For plain-vanilla JavaScript top-level library, please use our GitHub repository cadviewer-script-library. Note 1: For any installation issues, please refer to CADViewer FAQ The types definitions can also be pulled from DefinitelyTyped, with npm i Notes: If using TypeScriptģ: If you are using typescript, then cadviewer.d.ts is in the /node_modules/cadviewer/dist/ */ folder after installation and is referenced through package.json. The assets can also be found in the /node_modules/cadviewer/dist/assets/ folder after installation. Add AssetsĢ: In your /src (Angular) or /public (NodeJS/VueJS) folder create the assets/cadviewer/ folder, then unzip and add the content from the CADViewer assets file: assets_cadviewer.zip (the folder structure will be /assets/cadviewer/app/.). See specifics below for each platform on how to add auxillary files and connect with the back-end CAD conversion server. Installing CADViewer CADViewer for frameworks (ReactJS, VueJS, Angular etc.) Install CADViewerġ: Install CADViewer with npm i cadviewer on all framework platforms.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |