# cvs-eyes

> 一双永远盯着鼠标的卡通眼睛...

Latest version **1.0.3** (published 2019-04-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install cvs-eyes
pnpm add cvs-eyes
yarn add cvs-eyes
bun add cvs-eyes
```

## 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.3 |
| Published | 2019-04-14 |
| First published | 2019-04-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mailzwj@126.com |
| Maintainers | mailzwj |
| Keywords | animate, eye, canvas |

## Links

- npm: https://www.npmjs.com/package/cvs-eyes
- Repository: https://github.com/mailzwj/eyes
- Homepage: https://github.com/mailzwj/eyes#readme
- Issues: https://github.com/mailzwj/eyes/issues
- npm.io page: https://npm.io/package/cvs-eyes

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.6.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.6.1

## 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.3 (latest) — 2019-04-14
- 1.0.2 — 2019-04-14
- 1.0.1 — 2019-04-02
- 1.0.0 — 2019-04-01

## README

## CvsEyes

### 预览

![](./stare.gif)

[在线演示](http://seejs.me/eyes/demo/index.html)

### 使用

* ES6 Module
    ```bash
    npm install --save cvs-eyes
    ```
    在项目代码中：
    ```js
    import CvsEyes from 'cvs-eyes';
    ...
    <CvsEyes color="#f50" lineWidth={4} radius={8} />
    ...
    ```

* Script
    ```xml
    <div id="root"></div>
    <script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
    <script src="<pluginsHost>/dist/index.min.js"></script>
    <script>
    (function() {
        const Eyes = React.createElement(CvsEyes.default, {
            color: '#39f',
            lineWidth: 2,
            radius: 100
        });
        ReactDOM.render(Eyes, document.querySelector('#root');
    }();
    </script>
    ```

### 参数说明

* `color<String>`: 合法的颜色值，包括`rgba`、`rgb`或`hex`;
* `lineWidth<Number>`: 眼圈线宽度，建议整偶数。
* `radius<Number>`: 指定眼球半径，默认值根据眼眶大小按比例自动缩放，最大值不超过`眼眶半径 - 2 * 眼眶线宽`。

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