Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
added images to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phloe committed Dec 11, 2013
1 parent f740ef9 commit b5662a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions README.md
Expand Up @@ -91,6 +91,14 @@ Type: `Number`
Default value: `10`

Defines unit size of the grid the sprite elements snap to.
```
#### options.refSize
Type: `String|Number`
Defines the basic height of your source svg-elements. All other sizes will be calculated relating to this. It can either be a key from the `sizes` option (which refers to a number) or just a raw number.
![Source elements and refSize](https://raw.github.com/drdk/dr-grunt-svg-sprites/master/docs/docs-source-elements.png)
#### options.sizes
Type: `Object`
Expand All @@ -99,15 +107,11 @@ A hash of size labels and values (`Number`) that define the different sizes of t
```javascript
sizes: {
large: 30,
small: 15
large: 39,
small: 13
}
```

#### options.refSize
Type: `String|Number`
Defines the basic height of your source svg-elements. All other sizes will be calculated relating to this. It can either be a key from the `sizes` option (which refers to a number) or just a raw number.
![sizes](https://raw.github.com/drdk/dr-grunt-svg-sprites/master/docs/docs-sprite-sizes.png)
### Usage Examples
Expand All @@ -124,11 +128,11 @@ grunt.initConfig({
shapes: {
options: {
sizes: {
xlarge: 36,
large: 24,
small: 16
large: 39,
medium: 26,
small: 13
},
refSize: "large",
refSize: "medium",
unit: 8
}
}
Expand Down
Binary file added docs/img/docs-source-elements.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/docs-sprite-sizes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b5662a3

Please sign in to comment.