Camera transform controls component for A-Frame
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Changed trigger for grip Feb 28, 2018
examples First commit Feb 27, 2018
tests First commit Feb 27, 2018
.gitattributes First commit Feb 27, 2018
.gitignore First commit Feb 27, 2018
.travis.yml First commit Feb 27, 2018
LICENSE First commit Feb 27, 2018
README.md Fix readme Feb 28, 2018
index.html Changed images Feb 27, 2018
index.js Changed trigger for grip Feb 28, 2018
package-lock.json First commit Feb 27, 2018
package.json First commit Feb 27, 2018
readme.gif Add readme.gifs Feb 28, 2018

README.md

aframe-camera-transform-controls-component

Version License

A Camera Transform Controls component for A-Frame.

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:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-camera-transform-controls-component/dist/aframe-camera-transform-controls-component.min.js"></script>
</head>

<body>
  <a-scene camera-transform-controls="">
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-camera-transform-controls-component

Then require and use.

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