a trivial A-Frame component and primitive for the Three.js AxesHelper
npm install aframe-axeshelpera trivial A-Frame component and primitive for the Three.js AxesHelper
NPM users: please consider the Github README for the latest description of this package (as updating the docs would otherwise always require a new NPM package version)
aframe-axeshelper may be used as an ECMAScript module (ESM) or explicitly loaded after the tag for A-Frame itself.
For the ESM variant, install the package into your build environment using NPM with the command
```
npm install aframe-axeshelper
and import it into your code whereever needed
`javascript`
import "aframe-axeshelper"
Otherwise, load the plain script file directly
`html`
Once loaded or imported, you may use the aframe-axeshelper either as an A-Frame component (usually for an already existing A-Frame entity)
`html`
or as an A-Frame primitive
`html`
whatever seems more appropriate.
Here is a complete example (albeit without the HTML boilerplate)
`html
`
You may easily build this package yourself.
Just install NPM according to the instructions for your platform and follow these steps:
1. either clone this repository using git or download a ZIP archive with its contents to your disk and unpack it there
2. open a shell and navigate to the root directory of this repository
3. run npm install in order to install the complete build environmentnpm run build` to create a new build
4. execute
You may also look into the author's build-configuration-study for a general description of his build environment.