1
0
Fork 0
freesewing/packages/plugin-logo/README.md

51 lines
1.1 KiB
Markdown
Raw Normal View History

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>&nbsp;<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>
# plugin-logo
2018-07-26 09:05:47 +00:00
A freesewing plugin to add our logo to your pattern.
2018-07-26 09:05:47 +00:00
## Install
2018-07-26 09:05:47 +00:00
Install this plugin from NPM:
2018-07-26 09:05:47 +00:00
```sh
npm install --save @freesewing/plugin-logo
2018-07-26 09:05:47 +00:00
```
## Usage
2018-07-26 09:05:47 +00:00
To load this plugin, add it to your instantiated pattern:
2018-07-26 09:05:47 +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
pattern.with(theme).with(logo);
2018-07-26 09:05:47 +00:00
```
You now have the following snippets available:
2018-07-26 09:05:47 +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
```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.