# canvas-handle

> some canvas handle function to simplify your work

Latest version **0.1.0** (published 2019-04-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install canvas-handle
pnpm add canvas-handle
yarn add canvas-handle
bun add canvas-handle
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-04-09 |
| First published | 2019-04-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 74 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | alixwang |
| Maintainers | alixw |
| Keywords | canvas |

## Links

- npm: https://www.npmjs.com/package/canvas-handle
- Repository: https://github.com/AlixWang/CanvasHelper
- Homepage: https://github.com/AlixWang/CanvasHelper#readme
- Issues: https://github.com/AlixWang/CanvasHelper/issues
- npm.io page: https://npm.io/package/canvas-handle

## Dependencies (1)

- [babel](https://npm.io/package/babel.md) ^6.23.0

## 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

- 0.1.0 (latest) — 2019-04-09

## README

### Canvas methods enhance

#### How to use
1. get canvas ctx and add enhance methods to ctx
```javascript
    var canvas = document.getElementById('canvas')
    var ctx = canvas.getContext('2d')
    ctx = new canvasHandle(ctx)
```

2. use provide methods

```javascript
    ctx.strokeRoundRect(10,10,100,100,2,'#f00',[20,20,20,20])
    ctx.fillRoundRect(10,10,100,100,'#f00',[20,20,20,20])
```

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