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 { Design } from '@freesewing/core'
|
||||||
import { name, version } from '../pkg.mjs'
|
import { data } from '../data.mjs'
|
||||||
import { front } from './front.mjs'
|
import { front } from './front.mjs'
|
||||||
import { pocket } from './pocket.mjs'
|
import { pocket } from './pocket.mjs'
|
||||||
import { strap } from './strap.mjs'
|
import { strap } from './strap.mjs'
|
||||||
|
@ -7,7 +7,7 @@ import { strap } from './strap.mjs'
|
||||||
// crossBox macro
|
// crossBox macro
|
||||||
export const crossBox = {
|
export const crossBox = {
|
||||||
name: 'crossbox',
|
name: 'crossbox',
|
||||||
version,
|
version: data.version,
|
||||||
macros: {
|
macros: {
|
||||||
crossBox: function (so) {
|
crossBox: function (so) {
|
||||||
let id = this.getId()
|
let id = this.getId()
|
||||||
|
@ -65,8 +65,7 @@ export const crossBox = {
|
||||||
|
|
||||||
// Setup our new design
|
// Setup our new design
|
||||||
const Albert = new Design({
|
const Albert = new Design({
|
||||||
name,
|
data,
|
||||||
version,
|
|
||||||
parts: [ front, pocket, strap ],
|
parts: [ front, pocket, strap ],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue