Skip to content

Repository files navigation

aframe-layout-component

3D layout component and helpers for A-Frame VR.

Properties

PropertyDescriptionDefault Value
typeType of layout. Can be one of box, circle, cube, dodecahedron, line, pyramid.line
marginMargin in meters.1
radiusRadius in meters.1

Usage

Browser Installation

Install and use by directly including the browser files:

<head><title>My A-Frame Scene</title><scriptsrc="https://aframe.io/releases/0.2.0/aframe.min.js"></script><scriptsrc="https://rawgit.com/ngokevin/aframe-layout-component/master/dist/aframe-layout-component.min.js"></script></head><body><a-scene><a-entitylayout="type: circle; margin: 10"><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity><a-entitygeometry="primitive: box" material></a-entity></a-entity></a-scene></body>

NPM Installation

Install via NPM:

npm install aframe-layout-component

Then register and use.

require('aframe');require('aframe-layout-component');

About

3D layout component for A-Frame VR.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages