A Lounge component for A-Frame.
For A-Frame.
Property | Description | Default Value |
---|---|---|
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/[email protected]/dist/aframe-lounge-component.min.js"></script>
</head>
<body>
<a-scene>
<a-entity lounge="foo: bar"></a-entity>
</a-scene>
</body>
Install via npm:
npm install aframe-lounge-component
Then require and use.
require('aframe');
require('aframe-lounge-component');
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
- Floor-lounge texture, by seier+seier in Flickr (license: CC by 2.0).
- 360 panorama, by Erythro Asimov in Flickr (license: CC by-sa 2.0).