Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
aframe-extras
Advanced tools
Add-ons and helpers for A-Frame VR.
In the dist/ folder, download any package(s) you need. Include the scripts on your page:
<script src="./aframe-extras.min.js"></script>
Each package's components are automatically registered for you.
npm install --save aframe-extras
// custom-extras.js
var extras = require('aframe-extras');
AFRAME.registerComponent('velocity', extras.math.velocity); // Register a single component.
extras.physics.registerAll(); // Register a particular package, and its dependencies.
extras.registerAll(); // Register everything.
Once installed, you'll need to compile your JavaScript using something like Browserify or Webpack. Example:
npm install -g browserify
browserify custom-extras.js -o bundle.js
bundle.js
may then be included in your page. See here for a better introduction to Browserify.
src ├── controls/ │ ├── checkpoint-controls.js │ ├── gamepad-controls.js │ ├── hmd-controls.js │ ├── keyboard-controls.js (not VR-friendly) │ ├── mouse-controls.js (not VR-friendly) │ ├── touch-controls.js │ └── universal-controls.js ├── loaders/ │ ├── fbx-model.js (experimental) │ ├── ply-model.js │ └── three-model.js ├── math/ │ ├── quaternion.js │ └── velocity.js ├── misc/ │ ├── checkpoint.js │ ├── jump-ability.js │ └── toggle-velocity.js ├── physics/ │ ├── body.js │ ├── dynamic-body.js │ ├── kinematic-body.js │ ├── physics.js │ ├── static-body.js │ └── system │ └── physics.js ├── primitives/ │ ├── a-grid.js │ └── a-ocean.js └── shadows/ ├── shadow-light.js (experimental) └── shadow.js (experimental)
FAQs
Add-ons and examples for A-Frame VR.
The npm package aframe-extras receives a total of 4,947 weekly downloads. As such, aframe-extras popularity was classified as popular.
We found that aframe-extras demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.