removed default export syntax in docs
edited imports so that they no longer rely on a default export to work, changed design/fit-sleeve so it doesn't set a default export
This commit is contained in:
parent
2154d507b6
commit
02d953d3b8
3 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ Here's how you can handle this in code:
|
|||
- We check the length after every attempt, and adjust the `tweak` value
|
||||
|
||||
```js
|
||||
export default function (part) {
|
||||
export const partName = (part) {
|
||||
let { Path, paths, points, store, options } = part.shorthand()
|
||||
|
||||
// we'll call this function repeatedly until it gets it right
|
||||
|
|
|
@ -57,8 +57,8 @@ Below is a complete example.
|
|||
</head>
|
||||
<body>
|
||||
<script type="module">
|
||||
import Aaron from 'https://cdn.skypack.dev/@freesewing/aaron';
|
||||
import theme from 'https://cdn.skypack.dev/@freesewing/plugin-theme';
|
||||
import { Aaron } from 'https://cdn.skypack.dev/@freesewing/aaron';
|
||||
import { pluginTheme as theme } from 'https://cdn.skypack.dev/@freesewing/plugin-theme';
|
||||
const svg = new Aaron({
|
||||
sa: 10, // Seam allowance
|
||||
paperless: true, // Enable paperless mode
|
||||
|
|
|
@ -35,8 +35,8 @@ Which can be done as a one-liner since `use()`, `draft()` and
|
|||
## Code example
|
||||
|
||||
```js
|
||||
import Aaron from '@freesewing/aaron' // Design to use
|
||||
import theme from '@freesewing/plugin-theme' // SVG theme
|
||||
import { Aaron } from '@freesewing/aaron' // Design to use
|
||||
import { pluginTheme as theme } from '@freesewing/plugin-theme' // SVG theme
|
||||
|
||||
const svg = new Aaron( // Instantiate pattern
|
||||
{ // Pass in settings. See reference > core > settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue