Use data property for config.
This commit is contained in:
parent
9b8b57964f
commit
88a3491b1c
1 changed files with 3 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Design } from '@freesewing/core'
|
||||
import { name, version } from '../pkg.mjs'
|
||||
import { data } from '../data.mjs'
|
||||
import { front } from './front.mjs'
|
||||
import { pocket } from './pocket.mjs'
|
||||
import { strap } from './strap.mjs'
|
||||
|
@ -7,7 +7,7 @@ import { strap } from './strap.mjs'
|
|||
// crossBox macro
|
||||
export const crossBox = {
|
||||
name: 'crossbox',
|
||||
version,
|
||||
version: data.version,
|
||||
macros: {
|
||||
crossBox: function (so) {
|
||||
let id = this.getId()
|
||||
|
@ -65,8 +65,7 @@ export const crossBox = {
|
|||
|
||||
// Setup our new design
|
||||
const Albert = new Design({
|
||||
name,
|
||||
version,
|
||||
data,
|
||||
parts: [ front, pocket, strap ],
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue