A Camera Transform Controls component for A-Frame.
| 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 | 
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>Install via npm:
npm install aframe-camera-transform-controls-componentThen require and use.
require('aframe');
require('aframe-camera-transform-controls-component');