# pic-plug

> 图片画布工具

Latest version **1.0.2** (published 2019-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install pic-plug
pnpm add pic-plug
yarn add pic-plug
bun add pic-plug
```

## 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.2 |
| Published | 2019-12-02 |
| First published | 2019-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 330.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | zht831143@163.com |
| Maintainers | zhanghaitao716 |
| Keywords | image, canvas, html, css, javascript, web |

## Links

- npm: https://www.npmjs.com/package/pic-plug
- npm.io page: https://npm.io/package/pic-plug

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [core-js](https://npm.io/package/core-js.md) ^2.6.5

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-12-02

## README

# pic-plug
A Tool for Marking Pictures. 
Similar to editing after screenshots.
Now,only for Vue


## Installation 
Install from GitHub via NPM
```bash
npm install pic-plug
```
## Usage

To use `pic-plug`, simply import it and the `css` file, and call `Vue.use()` to install.

```html
<template>
  <div id="app">
    <!-- component -->
     <pic-plug 
       :picUrl="picUrl" //图片地址
       @close="handelClose" //点击关闭图标的回调
       @complete="handelComplete"//点击完成图标的回调
     />
  </div>
</template>
```

main.js
```javascript
import Vue from 'vue'
import Marker from 'pic-plug'
import 'pic-plug/lib/pic-plug.css'
Vue.use(Marker)

new Vue({
  router,
  store,
  components: { App },
  template: '<App/>',
}).$mount('#app')
```

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