1
0
Fork 0

chore: Linting for markdown and js

This commit is contained in:
joostdecock 2021-10-17 17:34:55 +02:00
parent eca8199ed8
commit 1c92e0f655
6677 changed files with 24391 additions and 25987 deletions

View file

@ -1,7 +1,8 @@
---
title: Design
***
title: Design
order: 10
---
---------
The `Design` object in FreeSewing's core library serves a single purpose:
To instantiate new pattern designs.
@ -16,13 +17,13 @@ function freesewing.Design(
)
```
This constructor creates a new pattern design.
This constructor creates a new pattern design.
It takes the following arguments:
- `config` : The pattern configuration
- `plugins` : Either a [plugin object](/guides/plugins/), or an array of plugin objects
- `conditionalPlugins` : Either a [conditional plugin object](/guides/plugins/conditionally-loading-build-time-plugins/), or an array
of conditional plugin objects to (conditionally) load in your pattern
* `config` : The pattern configuration
* `plugins` : Either a [plugin object](/guides/plugins/), or an array of plugin objects
* `conditionalPlugins` : Either a [conditional plugin object](/guides/plugins/conditionally-loading-build-time-plugins/), or an array
of conditional plugin objects to (conditionally) load in your pattern
```js
import freesewing from "@freesewing/core"
@ -35,9 +36,9 @@ const Sorcha = new freesewing.Design(config, plugins)
<Tip>
This method is a *super-constructor*. It will return a constructor
This method is a *super-constructor*. It will return a constructor
method that will become the default export of your design and
should be called to instantiate your pattern.
should be called to instantiate your pattern.
See [creating a new pattern design](/howtos/code/create-new-design) for a complete example.