// Import Design constructor import { Design } from '@freesewing/core' // Import parts import { box } from './box.mjs' // Create the new design const Pattern = new Design({ data: { /* * If you like, you can add any data you want to your design. * We'll add the name here as an example. * * If you don't use this, * you can remove this data key enterely. */ name: "{{ name }}", }, // A list of parts is all that is required. parts: [ box ], }) /* * Named exports * * We export the design itself as well as each part individually. * This allows us to re-use these parts in other designs. */ export { box, Pattern }