2018-07-26 09:05:47 +00:00
< p align = "center" >
< a title = "Go to freesewing.org" href = "https://freesewing.org/" > < img src = "https://freesewing.org/img/logo/black.svg" align = "center" width = "150px" alt = "Freesewing logo" / > < / a >
< / p >
< h4 align = "center" > < em > < a title = "Go to freesewing.org" href = "https://freesewing.org/" > freesewing< / a > < / em >
< br > < sup > a library for made-to-measure sewing patterns< / sup >
< / h4 >
2018-07-26 12:20:19 +00:00
# plugin-logo
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
A freesewing plugin to add our logo to your pattern.
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
## Install
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
Install this plugin from NPM:
2018-07-26 09:05:47 +00:00
```sh
2018-07-26 12:20:19 +00:00
npm install --save @freesewing/plugin -logo
2018-07-26 09:05:47 +00:00
```
2018-07-26 12:20:19 +00:00
## Usage
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
To load this plugin, add it to your instantiated pattern:
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
```js
import pattern from '@freesewing/pattern -brian'
import theme from '@freesewing/plugin -theme'
import logo from '@freesewing/plugin -logo'
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
pattern.with(theme).with(logo);
2018-07-26 09:05:47 +00:00
```
2018-07-26 12:20:19 +00:00
You now have the following snippets available:
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
- logo-xs
- logo-sm
- logo
- logo-lg
- logo-xl
- logo-xxl
You can use them as such:
2018-07-26 09:05:47 +00:00
2018-07-26 12:20:19 +00:00
```sh
snippets.logo = new F.snippet('logo-sm', points.logo);
```
2018-07-26 09:05:47 +00:00
## Where to get help
Questions? Stuck? The [freesewing chat room on Gitter ](https://gitter.im/freesewing/freesewing )
is the best place to ask for help.