AFRAME Globals

A-Frame exposes its public interface through the window.AFRAME browser global. This same interface is also exposed if requiring with CommonJS (require('aframe')).

AFRAME Properties

PropertyDescription
AComponentComponent prototype.
AEntityEntity prototype.
ANodeBase node prototype that A-Frame elements inherit from.
ASceneScene prototype.
componentsObject of registered components.
geometriesObject of registered geometries .
primitives.primitivesObject of registered primitives.
registerComponentFunction to register a component.
registerElementA flavor of document.registerElement for A-Frame nodes calls parent prototype handlers before child ones. The base class of A-Frame elements. Also see registerPrimitive for registering an A-Frame elements similar to <a-box>.
registerGeometryFunction to register a geometry.
registerPrimitiveFunction to register a primitive.
registerShaderFunction to register a material or shader.
schemaSchema-related utilities.
shadersObject of registered shaders.
systemsObject of registered systems.
THREEGlobal three.js object.
TWEENGlobal tween.js object.
utilsA-Frame utility modules.
versionVersion of A-Frame build.

window Properties

PropertyDescription
AFRAMEThe object described above.
hasNativeWebVRImplementationWhether the client has native WebVR support.