aframe-extras
Advanced tools
Comparing version 7.2.0 to 7.3.0
{ | ||
"name": "aframe-extras", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"description": "Add-ons and examples for A-Frame VR.", | ||
@@ -8,2 +8,10 @@ "author": "Don McCurdy <dm@donmccurdy.com>", | ||
"main": "index.js", | ||
"exports": { | ||
".": "index.js", | ||
"./controls/*": "./src/controls/*", | ||
"./loaders/*": "./src/loaders/*", | ||
"./misc/*": "./src/misc/*", | ||
"./pathfinding/*": "./src/pathfinding/*", | ||
"./primitives/*": "./src/primitives/*" | ||
}, | ||
"repository": { | ||
@@ -21,3 +29,3 @@ "type": "git", | ||
"nipplejs": "^0.10.1", | ||
"three": "0.159.0", | ||
"three": "^0.159.0", | ||
"three-pathfinding": "^1.1.0" | ||
@@ -24,0 +32,0 @@ }, |
@@ -74,6 +74,9 @@ # A-Frame Extras | ||
// index.js | ||
require('aframe-extras'); | ||
import 'aframe-extras'; | ||
// or specific packages | ||
import "aframe-extras/controls/index.js"; | ||
import "aframe-extras/pathfinding/index.js"; | ||
``` | ||
Once installed, you'll need to compile your JavaScript using something like [webpack](https://webpack.js.org). | ||
Once installed, you'll need to compile your JavaScript using something like [webpack](https://webpack.js.org) with three defined as external, see webpack.config.js in this repo for an example. | ||
@@ -80,0 +83,0 @@ ## Examples |
@@ -37,3 +37,2 @@ # Loaders | ||
| useRegExp | false | If true, interpret the `clip` string as a regular expression. If false, it is treated as a literal string, except for the * character, which is treated as a variable-length wildcard. | | ||
| duration | 0 | Duration of one cycle of the animation clip, in seconds. This provides the same functionality as timeScale (apart from pausing), with duration = clipLength/timeScale. This property only has an effect if timeScale is set to 1, otherwise the value of timeScale is used to determine animation playback speed. | | ||
@@ -40,0 +39,0 @@ | crossFadeDuration | 0 | Duration of cross-fades between clips, in seconds. | |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3934693
99
0
Updatedthree@^0.159.0