1
0
Fork 0

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:
Raphael Sizemore 2023-03-26 02:45:45 +00:00
parent 2154d507b6
commit 02d953d3b8
3 changed files with 5 additions and 5 deletions

View file

@ -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 - We check the length after every attempt, and adjust the `tweak` value
```js ```js
export default function (part) { export const partName = (part) {
let { Path, paths, points, store, options } = part.shorthand() let { Path, paths, points, store, options } = part.shorthand()
// we'll call this function repeatedly until it gets it right // we'll call this function repeatedly until it gets it right

View file

@ -57,8 +57,8 @@ Below is a complete example.
</head> </head>
<body> <body>
<script type="module"> <script type="module">
import Aaron from 'https://cdn.skypack.dev/@freesewing/aaron'; import { Aaron } from 'https://cdn.skypack.dev/@freesewing/aaron';
import theme from 'https://cdn.skypack.dev/@freesewing/plugin-theme'; import { pluginTheme as theme } from 'https://cdn.skypack.dev/@freesewing/plugin-theme';
const svg = new Aaron({ const svg = new Aaron({
sa: 10, // Seam allowance sa: 10, // Seam allowance
paperless: true, // Enable paperless mode paperless: true, // Enable paperless mode

View file

@ -35,8 +35,8 @@ Which can be done as a one-liner since `use()`, `draft()` and
## Code example ## Code example
```js ```js
import Aaron from '@freesewing/aaron' // Design to use import { Aaron } from '@freesewing/aaron' // Design to use
import theme from '@freesewing/plugin-theme' // SVG theme import { pluginTheme as theme } from '@freesewing/plugin-theme' // SVG theme
const svg = new Aaron( // Instantiate pattern const svg = new Aaron( // Instantiate pattern
{ // Pass in settings. See reference > core > settings { // Pass in settings. See reference > core > settings