# lesca-threejs-orbitcontrols

> add set polar angle and azimuthal angle

Latest version **1.1.2** (published 2022-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install lesca-threejs-orbitcontrols
pnpm add lesca-threejs-orbitcontrols
yarn add lesca-threejs-orbitcontrols
bun add lesca-threejs-orbitcontrols
```

## 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.1.2 |
| Published | 2022-04-14 |
| First published | 2021-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 986.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jamehsu1125 |
| Maintainers | jameshsu1125 |
| Keywords | lesca, 衝康吉, jameshsu1125, threejs, OrbitControls |

## Links

- npm: https://www.npmjs.com/package/lesca-threejs-orbitcontrols
- npm.io page: https://npm.io/package/lesca-threejs-orbitcontrols

## Recent versions

- 1.1.2 (latest) — 2022-04-14
- 1.1.1 — 2022-04-14
- 1.1.0 — 2022-04-14
- 1.0.17 — 2021-12-22
- 1.0.16 — 2021-12-22
- 1.0.15 — 2021-12-22
- 1.0.14 — 2021-12-16
- 1.0.13 — 2021-12-16
- 1.0.12 — 2021-12-16
- 1.0.11 — 2021-12-10
- 1.0.10 — 2021-12-10
- 1.0.9 — 2021-07-04
- 1.0.8 — 2021-07-04
- 1.0.7 — 2021-07-03
- 1.0.6 — 2021-06-14
- … 6 more at https://npm.io/package/lesca-threejs-orbitcontrols/versions

## README

[![NPM](https://img.shields.io/badge/NPM-ba443f?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/)
[![React](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org/en/)
[![React](https://img.shields.io/badge/-ReactJs-61DAFB?style=for-the-badge&logo=react&logoColor=white)](https://zh-hant.reactjs.org/)
[![React](https://img.shields.io/badge/Less-1d365d?style=for-the-badge&logo=less&logoColor=white)](https://lesscss.org/)
[![React](https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white)](https://www.w3schools.com/html/)
[![React](https://img.shields.io/badge/-CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white)](https://www.w3schools.com/css/)
[![NPM](https://img.shields.io/badge/DEV-Jameshsu1125-9cf?style=for-the-badge)](https://www.npmjs.com/~jameshsu1125)

# Why use it?

add [OrbitControls](https://threejs.org/docs/#examples/en/controls/OrbitControls) setAzimuthalAngle and getPolarAngle methods.

#### [Live Demo](https://jameshsu1125.github.io/lesca-threejs-orbitcontrols/)

# Installation

```sh
npm install lesca-threejs-orbitcontrols --save
```

## Usage

```javascript
import * as THREE from 'three';
import { OrbitControls } from 'lesca-threejs-orbitcontrols';

const renderer = new THREE.WebGLRenderer();
const camera = new THREE.PerspectiveCamera(75, 16 / 9, 0.1, 1000);

// create controls object
const controls = new new OrbitControls(THREE)(camera, renderer.domElement);

// keep update
function animate() {
  requestAnimationFrame(animate);
  controls.update();
}

animate();
```

## Development

### Methods

| method                                     |     description     |
| :----------------------------------------- | :-----------------: |
| .**setPolarAngle**(**angle**:_number_)     |   set Polar Angle   |
| .**setAzimuthalAngle**(**angle**:_number_) | set Azimuthal Angle |

### Features

- maintain if necessary

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