# rotate-component

> Canvas rotation with origin support

Latest version **1.0.0** (published 2013-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install rotate-component
pnpm add rotate-component
yarn add rotate-component
bun add rotate-component
```

## 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.0 |
| Published | 2013-06-07 |
| First published | 2013-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tjholowaychuk |
| Keywords | canvas, rotate, rotation |

## Links

- npm: https://www.npmjs.com/package/rotate-component
- npm.io page: https://npm.io/package/rotate-component

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-06-07

## README

# rotate

  Canvas rotation with origin support, expressed in radians or degrees.

## Installation

    $ component install component/rotate

## API

### rotate(ctx, options)

```js
rotate(ctx, { x: 50, y: 50, degrees: 180 });
```

## License

  MIT

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