Nihilist Postmodern Mistake
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

aframe-line-component

1.0.1 • Public • Published

aframe-line-component

Version License

A Line component for A-Frame.

For A-Frame.

line example

API

Property Description Default Value
start Start line position 0 0 0
end End line position 0 0 0
color Line color #fff
opacity Line opacity 1

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script> 
  <script src="https://unpkg.com/aframe-line-component/dist/aframe-line-component.min.js"></script> 
</head>
 
<body>
  <a-scene>
    <a-entity line="start: 1 2 3; end: 4 5 6; color: #ff0"></a-entity>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-line-component

Then require and use.

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

install

npm i aframe-line-component

Downloadsweekly downloads

13

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability