Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.18 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.18 KB

aframe-bricks

Version License

A component for loading L-Draw parts and models.

For A-Frame.

API

Property Description Default Value
src URL of the L-Draw model
steps Number of blocks to show

Installation

Browser

Install and use by directly including the browser files:

<!DOCTYPE html>
<head>
  <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
  <script src="https://unpkg.com/[email protected]/dist/aframe-bricks.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity bricks="foo: bar"></a-entity>
  </a-scene>
</body>

npm

NOTE:

This component is still in development.
It hasn't been published to NPM, yet.

Install via npm:

npm install aframe-bricks

Then require and use.

require('aframe');
require('aframe-bricks');