Extensions Overview
Extensions allow you to enhance the functionality of the a3d-viewer
component by adding additional features or behaviors.
Available Extensions
Here are some of the extensions available for the a3d-viewer
:
a3d-grid
: Adds a customizable grid to your viewer.- [Other extensions coming soon…]
How to Use Extensions
- Install the desired extension via npm.
- Import the extension into your project.
- Add the extension as a child of the
a3d-viewer
component.
For example:
// import modules in you Javascript file:
// import '@a3d-viewer/viewer'
// import '@a3d-extensions/a3d-grid'
<a3d-viewer source="https://MyModel.glb">
<a3d-grid line-color="#ff0000"></a3d-grid>
</a3d-viewer>
Last updated on