model3dview
v0.0.7
Published
3d model viewer
Downloads
14
Readme
3D Model viewer
First install react and create a new project.
To use the package for 3d view of Advanced Auto Parts, install the package by using npm i model3dview
Now import the component and CSS file, import 'model3dview/dist/style.css'; import CanvasComponent from 'r3f-aap';
Now use the canvas component in you application.
To add new model add the attribute ‘product’ as shown below for the another different model to load
<CanvasComponent product={'89700_11150A_ANG-AI'}>
- Note: the component width and height are set to 100%. So, canvas width and height will be adjusted according to the size of the parent component.