# react-fisheye

> React-fisheye is a react component implements fisheye effect.

Latest version **1.0.0-beta.6** (published 2019-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-fisheye
pnpm add react-fisheye
yarn add react-fisheye
bun add react-fisheye
```

## 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-beta.6 |
| Published | 2019-08-31 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vincent Chan |
| Maintainers | okcdz |

## Links

- npm: https://www.npmjs.com/package/react-fisheye
- npm.io page: https://npm.io/package/react-fisheye

## Dependencies (2)

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

## Recent versions

- 1.0.0-beta.6 (latest) — 2019-08-31
- 1.0.0-beta.5 — 2019-08-31
- 1.0.0-beta.4 — 2019-08-31
- 1.0.0-beta.3 — 2019-08-30
- 1.0.0-beta.2 — 2019-08-30
- 1.0.0-beta.0 — 2019-08-29

## README

# React Fisheye 鱼眼效果

React-fisheye is a react component implements fisheye effect.

![](./public/example-1.gif)
![](./public/example-3.gif)

# Installation

Use npm/yarn to install react-fisheye.

```
yarn add react-fisheye
```

# Usage

`data` property should be an array of data objects. Data item should
contain 'key' property.

| Property | Type | Default |
| -------- | ---- | ------- |
| data | object[] | undefined |
| multiple | number | 1 |
| mode | "vertical" \| "horizontal" | "vertical" |
| render | function | undefined |

```javascript
const list = [
  { key: "aaa" },
  { key: "bbb" },
  { key: "ccc" },
  { key: "ddd" },
  { key: "eee" },
  { key: "fff" },
  { key: "ggg" },
  { key: "vvv" }
];

function App() {
  return (
    <div className="App">
      <h1>Hello CodeSandbox</h1>
      <h2>Start editing to see some magic happen!</h2>
      <FishEye
        multiple={0.35}
        data={list}
        render={(item, index) => {
          return <div>{item.key + ' ' + index}</div>
        }}
      />
    </div>
  );
}
```

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