1
0
Fork 0
freesewing/markdown/dev/reference/plugins/banner/en.md

40 lines
932 B
Markdown
Raw Normal View History

---
title: "@freesewing/plugin-banner"
---
2022-02-19 08:04:25 +01:00
The **@freesewing/plugin-banner** plugin provides
[the banner macro](/reference/api/macros/banner).
This macro allows you to add repeating text along a path.
## Example
<Example part="plugin_banner">Example of the banner macro provided by this plugin</Example>
2022-07-27 14:38:18 -07:00
<Tip>
The banner plugin is part of our [plugin-bundle](/reference/plugins/bundle)
</Tip>
## Installation
```sh
npm install @freesewing/plugin-banner
```
## Usage
Like all [build-time plugins](/guides/plugins/types-of-plugins#build-time-plugins), you
load them by passing them to the [freesewing.Design](/reference/api/design) super-constructor:
```js
import freesewing from "@freesewing/core";
import banner from "@freesewing/plugin-banner";
import config from "../config";
const Pattern = new freesewing.Design(config, banner);
```
2022-02-19 08:04:25 +01:00
Now you can use the
[banner](/reference/api/macros/banner/) macros in your parts.