Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fernandojsg/aframe-camera-transform-controls-component

Camera transform controls component for A-Frame
https://github.com/fernandojsg/aframe-camera-transform-controls-component

aframe threejs webvr

Last synced: 12 days ago
JSON representation

Camera transform controls component for A-Frame

Awesome Lists containing this project

README

        

## aframe-camera-transform-controls-component

[![Version](http://img.shields.io/npm/v/aframe-camera-transform-controls-component.svg?style=flat-square)](https://npmjs.org/package/aframe-camera-transform-controls-component)
[![License](http://img.shields.io/npm/l/aframe-camera-transform-controls-component.svg?style=flat-square)](https://npmjs.org/package/aframe-camera-transform-controls-component)

A Camera Transform Controls component for [A-Frame](https://aframe.io).


Recording component

### API

| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| enabled | | true |
| cameraRigId | Camera rig containing the camera and both controllers | cameraRig |
| onStart | Event used to start the panning or scale & rotate | triggerdown |
| onEnd | Event used to stop panning or scale & rotate | triggerup |
| showHint | Show a line between both controllers and the scale factor | true |

### Installation

#### Browser

Install and use by directly including the [browser files](dist):

```html

My A-Frame Scene


```

#### npm

Install via npm:

```bash
npm install aframe-camera-transform-controls-component
```

Then require and use.

```js
require('aframe');
require('aframe-camera-transform-controls-component');
```