An open API service indexing awesome lists of open source software.

https://github.com/dneustadt/vue-rough

A small components library to use Rough.js in Vue.
https://github.com/dneustadt/vue-rough

canvas drawn hand js rough svg vue

Last synced: 8 months ago
JSON representation

A small components library to use Rough.js in Vue.

Awesome Lists containing this project

README

          

# vue-rough

A small components library to use [Rough.js](https://github.com/rough-stuff/rough) in Vue.

## Examples

[https://vue-rough.neustadt.dev](https://vue-rough.neustadt.dev)

## Installation

```
$ npm install vue-rough
```

```js
import VueRough from 'vue-rough';

Vue.use(VueRough);
```

## Container Components

These wrap around visual components. You can choose between canvas or SVG as the container format.

```vue

```
```vue

```

`options` takes an Object with properties to be applied in general to all included visual components.
See the [Rough.js wiki](https://github.com/rough-stuff/rough/wiki#options) for a list of available
options.

## Visual Components

Shown below is a quick overview of the available components with their required properties.
All components may use additional properties. See the [Rough.js wiki](https://github.com/rough-stuff/rough/wiki#options)
for a full list of options. Components must be placed inside `rough-canvas` or `rough-svg`

### rough-line
```vue

```

### rough-rectangle
```vue

```

### rough-ellipse
```vue

```

### rough-circle
```vue

```

### rough-linear-path
```vue

```

### rough-polygon
```vue

```

### rough-arc
```vue

```

### rough-curve
```vue

```

### rough-path
```vue

```