Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jsantell/three-orbit-controls

Personal fork of THREE.OrbitControls hosted on npm as @jsantell/three-orbit-controls
https://github.com/jsantell/three-orbit-controls

Last synced: about 1 month ago
JSON representation

Personal fork of THREE.OrbitControls hosted on npm as @jsantell/three-orbit-controls

Awesome Lists containing this project

README

        

# three-orbit-controls

[![Build Status](http://img.shields.io/npm/v/@jsantell/three-orbit-controls.svg?style=flat-square)](https://www.npmjs.org/package/@jsantell/three-orbit-controls)

Personal fork of [THREE.OrbitControls](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/OrbitControls.js) hosted on [npm](https://npmjs.org) as [@jsantell/three-orbit-controls](https://www.npmjs.org/package/@jsantell/three-orbit-controls). ES6-ified for inclusion via module bundler.

## Installation

`$ npm install --save @jsantell/three-orbit-controls`

## Usage

```js
import { PerspectiveCamera, WebGLRenderer } from 'three';
import OrbitControls from '@jsantell/three-orbit-controls';

const renderer = new WebGLRenderer();
const controls = new OrbitControls(new PerspectiveCamera(), renderer.domElement || document);
```

## Build

`$ npm run build`

## Publish

`$ npm run version`

## License

MIT License, Copyright © 2010-2018 three.js authors