# three-controls

> ThreeJS controls as standalone

Latest version **1.0.1** (published 2019-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install three-controls
pnpm add three-controls
yarn add three-controls
bun add three-controls
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-07-08 |
| First published | 2019-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Unpacked size | 163.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | huangfengya |
| Maintainers | huangfengya |
| Keywords | three, js, controls, orbitcontrols |

## Links

- npm: https://www.npmjs.com/package/three-controls
- Repository: https://github.com/huangfengya/three-controls
- Issues: https://github.com/huangfengya/three-controls/issues
- npm.io page: https://npm.io/package/three-controls

## Dependencies (2)

- [three](https://npm.io/package/three.md) ^0.100.0
- [@types/three](https://npm.io/package/@types/three.md) ^0.93.15

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-07-08
- 1.0.0 — 2019-01-22

## README

# three-controls
ThreeJS controls as standalone

# how to use

## install

```javscript
npm install three-controls --save
```

## use

```javascript
import * as ThreeControls from 'three-controls'

let orbit = new ThreeControls.OrbitControls(camera, domElement)


function render() {
  orbit.update()
  renderer.render(scene, camera)
  requestAnimationFrame(render)
}
```

or you can use like this

```javascript
import {OrbitControls} from 'three-controls'

let orbit = new OrbitControls(camera, domElement)


function render() {
  orbit.update()
  renderer.render(scene, camera)
  requestAnimationFrame(render)
}
```

---
_Source: https://npm.io/package/three-controls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
