Skip to content

Commit df265ef

Browse files
authored
Merge pull request #4 from fsefidabi/dev
remove assets folder to reduce bundle size
2 parents f3f5591 + 7b37fc4 commit df265ef

11 files changed

+12
-13
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Rough React Wrapper
22

33
<p align="center">
4-
<img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/f39ea108357e6f4759f5cd5096aa1b1c645e27b8/assets/logo.svg" alt="logo">
4+
<img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/logo.png" style="max-height: 300px" alt="logo">
55
</p>
66

77
<p align="center">
8-
<a href="https://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="npm"></a>
8+
<a href="https://github.com/fsefidabi/rough-react-wrapper/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="npm"></a>
99
<a href="https://www.npmjs.com/package/rough-react-wrapper"><img src="https://img.shields.io/npm/v/rough-react-wrapper" alt="npm"></a>
10+
<img src="https://badgen.net/badge/-/TypeScript/blue?icon=typescript&label" alt="npm">
1011
</p>
1112

1213
This is a React wrapper for [Rough.js](https://roughjs.com/), a JavaScript library for creating sketchy, hand-drawn graphics.
@@ -56,7 +57,7 @@ return (
5657

5758
It will generate a rectangle shape like this:
5859

59-
<img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/rough-rectangle.png" alt="rough-rectangle" width="200">
60+
<img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/rough-rectangle.png" alt="rough-rectangle" width="200">
6061

6162

6263
## Props
@@ -92,13 +93,13 @@ It will generate a rectangle shape like this:
9293

9394
| value | description | example |
9495
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
95-
| `hachure` | Draws sketchy parallel lines with the same roughness as defined by the roughness and the bowing properties of the shape. It can be further configured using the `fillWeight`, `hachureAngle`, and `hachureGap` properties. | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-hachure.png" alt="fill-style-hachure" width="50"> |
96-
| `solid` | Like a conventional fill. | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-solid.png" alt="fill-style-solid" width="50"> |
97-
| `zigzag` | Draws zig-zag lines filling the shape. | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-zigzag.png" alt="fill-style-zigzag" width="50"> |
98-
| `cross-hatch` | Similar to `hachure`, but draws cross hatch lines (akin to two `hachure` fills 90 degrees from each other). | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-cross-hatch.png" alt="fill-style-cross-hatch" width="50"> |
99-
| `dots` | Fills the shape with sketchy dots. | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-dots.png" alt="fill-style-dots" width="50"> |
100-
| `dashed` | Similar to `hachure` but the individual lines are dashed. Dashes can be configured using the `dashOffset` and `dashGap` properties. | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-dashed.png" alt="fill-style-dashed" width="50"> |
101-
| `zigzag-line` | Similar to `hachure` but individual lines are drawn in a zig-zag fashion. The size of the zig-zag can be configured using the `zigzagOffset` proeprty. | <img src="https://raw.githubusercontent.com/fsefidabi/rough-react-wrapper/master/assets/fill-style-zigzag-line.png" alt="fill-style-zigzag-line" width="50"> |
96+
| `hachure` | Draws sketchy parallel lines with the same roughness as defined by the roughness and the bowing properties of the shape. It can be further configured using the `fillWeight`, `hachureAngle`, and `hachureGap` properties. | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-hachure.png" alt="fill-style-hachure" width="50"> |
97+
| `solid` | Like a conventional fill. | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-solid.png" alt="fill-style-solid" width="50"> |
98+
| `zigzag` | Draws zig-zag lines filling the shape. | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-zigzag.png" alt="fill-style-zigzag" width="50"> |
99+
| `cross-hatch` | Similar to `hachure`, but draws cross hatch lines (akin to two `hachure` fills 90 degrees from each other). | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-cross-hatch.png" alt="fill-style-cross-hatch" width="50"> |
100+
| `dots` | Fills the shape with sketchy dots. | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-dots.png" alt="fill-style-dots" width="50"> |
101+
| `dashed` | Similar to `hachure` but the individual lines are dashed. Dashes can be configured using the `dashOffset` and `dashGap` properties. | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-dashed.png" alt="fill-style-dashed" width="50"> |
102+
| `zigzag-line` | Similar to `hachure` but individual lines are drawn in a zig-zag fashion. The size of the zig-zag can be configured using the `zigzagOffset` proeprty. | <img src="https://raw.githubusercontent.com/fsefidabi/projects-assets/main/rough-react-wrapper/fill-style-zigzag-line.png" alt="fill-style-zigzag-line" width="50"> |
102103

103104

104105
You can also check props specification in [rough.js documentation](https://github.com/rough-stuff/rough/wiki#options)

assets/fill-style-cross-hatch.png

-32.3 KB
Binary file not shown.

assets/fill-style-dashed.png

-17.2 KB
Binary file not shown.

assets/fill-style-dots.png

-24.8 KB
Binary file not shown.

assets/fill-style-hachure.png

-25.4 KB
Binary file not shown.

assets/fill-style-solid.png

-12 KB
Binary file not shown.

assets/fill-style-zigzag-line.png

-16.6 KB
Binary file not shown.

assets/fill-style-zigzag.png

-30.8 KB
Binary file not shown.

assets/logo.svg

Lines changed: 0 additions & 2 deletions
This file was deleted.

assets/rough-rectangle.png

-341 KB
Binary file not shown.

0 commit comments

Comments
 (0)