Skip to content

jgbarah/aframe-lounge-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aframe-lounge-component

Version License

A Lounge component for A-Frame.

For A-Frame.

API

Property Description Default Value

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.9.2/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-lounge-component@1.0.0/dist/aframe-lounge-component.min.js"></script>
</head>

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

npm

Install via npm:

npm install aframe-lounge-component

Then require and use.

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

Tests, screenshots, and screencasts

For producing screenshots and running tests, run, in a terminal (to launch a web server for serving the examples and tests):

$ npm start

And in another terminal (to actually run the tests):

$ npm run test

This command will also produce screenshots, in tests/screenshots

For producing the screencasts (in cypress/movies), run (while also having the web server running):

$ npx cypress-movie

To produce screencasts for a single test file (test.js), run:

$ npx cypress-movie --spec tests/test.js

Credits

Textures

360 images

  • 360 panorama, by Erythro Asimov in Flickr (license: CC by-sa 2.0).

About

A-Frame Lounge Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published