fix(plugin-annotations): Make name consistently plural
This commit is contained in:
parent
656466a37a
commit
441e0d7011
11 changed files with 62 additions and 62 deletions
|
@ -38,5 +38,5 @@ export const plugin = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const annotationPlugin = plugin
|
export const annotationsPlugin = plugin
|
||||||
export const pluginAnnotation = plugin
|
export const pluginAnnotations = plugin
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { round, Design } from '@freesewing/core'
|
import { round, Design } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -51,7 +51,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -87,7 +87,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -123,7 +123,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -157,7 +157,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -191,7 +191,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -225,7 +225,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -259,7 +259,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
part
|
part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
@ -280,7 +280,7 @@ describe('Bartack plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const design = new Design({ parts: [part] })
|
const design = new Design({ parts: [part] })
|
||||||
const pattern = new design()
|
const pattern = new design()
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design } from '@freesewing/core'
|
import { Design } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
const Pattern = new Design()
|
const Pattern = new Design()
|
||||||
const pattern = new Pattern().use(annotationPlugin)
|
const pattern = new Pattern().use(annotationsPlugin)
|
||||||
pattern.draft().render()
|
pattern.draft().render()
|
||||||
|
|
||||||
describe('Buttons Plugin Test', () => {
|
describe('Buttons Plugin Test', () => {
|
||||||
|
@ -24,7 +24,7 @@ describe('Buttons Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const svg = new Pattern().draft().render()
|
const svg = new Pattern().draft().render()
|
||||||
|
@ -40,7 +40,7 @@ describe('Buttons Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const svg = new Pattern().draft().render()
|
const svg = new Pattern().draft().render()
|
||||||
|
@ -56,7 +56,7 @@ describe('Buttons Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const svg = new Pattern().draft().render()
|
const svg = new Pattern().draft().render()
|
||||||
|
@ -72,7 +72,7 @@ describe('Buttons Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const svg = new Pattern().draft().render()
|
const svg = new Pattern().draft().render()
|
||||||
|
@ -88,7 +88,7 @@ describe('Buttons Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const svg = new Pattern().draft().render()
|
const svg = new Pattern().draft().render()
|
||||||
|
@ -104,7 +104,7 @@ describe('Buttons Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const svg = new Pattern().draft().render()
|
const svg = new Pattern().draft().render()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design, round } from '@freesewing/core'
|
import { Design, round } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ describe('Crossbox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
var c = pattern.parts[0].test.paths['1crossBox']
|
var c = pattern.parts[0].test.paths['1crossBox']
|
||||||
|
@ -82,9 +82,9 @@ describe('Crossbox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
const c = pattern.parts[0].test.points.textAnchor
|
const c = pattern.parts[0].test.points.textAnchor
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design, round } from '@freesewing/core'
|
import { Design, round } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ describe('Cutonfold Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
const c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
const c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
||||||
|
@ -57,9 +57,9 @@ describe('Cutonfold Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
const c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
const c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
||||||
|
@ -80,9 +80,9 @@ describe('Cutonfold Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
let c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
let c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
||||||
|
@ -119,9 +119,9 @@ describe('Cutonfold Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
let c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
let c = pattern.parts[0].test.paths.cutonfoldCutonfold
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { round, Design } from '@freesewing/core'
|
import { round, Design } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ describe('Grainline Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const pattern = new Pattern()
|
const pattern = new Pattern()
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design } from '@freesewing/core'
|
import { Design } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
describe('Logo Plugin Tests', () => {
|
describe('Logo Plugin Tests', () => {
|
||||||
it('Should import style and defs', () => {
|
it('Should import style and defs', () => {
|
||||||
const Pattern = new Design()
|
const Pattern = new Design()
|
||||||
const pattern = new Pattern().use(annotationPlugin)
|
const pattern = new Pattern().use(annotationsPlugin)
|
||||||
pattern.draft().render()
|
pattern.draft().render()
|
||||||
expect(pattern.svg.defs).to.contain(
|
expect(pattern.svg.defs).to.contain(
|
||||||
'<g id="logo" transform="scale(1) translate(-23 -36)"><path class="logo"'
|
'<g id="logo" transform="scale(1) translate(-23 -36)"><path class="logo"'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design } from '@freesewing/core'
|
import { Design } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ const part = {
|
||||||
draft: ({ Point, snippets, Snippet }) => {
|
draft: ({ Point, snippets, Snippet }) => {
|
||||||
snippets.button = new Snippet('notch', new Point(10, 20))
|
snippets.button = new Snippet('notch', new Point(10, 20))
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const pattern = new Pattern()
|
const pattern = new Pattern()
|
||||||
|
@ -32,7 +32,7 @@ describe('Notches Plugin Test', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const pattern = new Pattern()
|
const pattern = new Pattern()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design, round } from '@freesewing/core'
|
import { Design, round } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ describe('Pleat Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
var c = pattern.parts[0].test.paths.pleatPleatFrom
|
var c = pattern.parts[0].test.paths.pleatPleatFrom
|
||||||
|
@ -64,9 +64,9 @@ describe('Pleat Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
var c = pattern.parts[0].test.paths.pleatPleatFrom
|
var c = pattern.parts[0].test.paths.pleatPleatFrom
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design, round } from '@freesewing/core'
|
import { Design, round } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ describe('Scalebox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const pattern = new Pattern()
|
const pattern = new Pattern()
|
||||||
|
@ -90,7 +90,7 @@ describe('Scalebox Plugin Tests', () => {
|
||||||
rotate: 90,
|
rotate: 90,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({ parts: [part] })
|
const Pattern = new Design({ parts: [part] })
|
||||||
const pattern = new Pattern()
|
const pattern = new Pattern()
|
||||||
|
@ -137,7 +137,7 @@ describe('Scalebox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({
|
const Pattern = new Design({
|
||||||
parts: [part],
|
parts: [part],
|
||||||
|
@ -171,7 +171,7 @@ describe('Scalebox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({
|
const Pattern = new Design({
|
||||||
parts: [part],
|
parts: [part],
|
||||||
|
@ -205,11 +205,11 @@ describe('Scalebox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({
|
const Pattern = new Design({
|
||||||
parts: [part],
|
parts: [part],
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
data: { name: 'test', version: '1.2.3' },
|
data: { name: 'test', version: '1.2.3' },
|
||||||
})
|
})
|
||||||
const pattern = new Pattern({ scale: 0.5 })
|
const pattern = new Pattern({ scale: 0.5 })
|
||||||
|
@ -250,11 +250,11 @@ describe('Scalebox Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Pattern = new Design({
|
const Pattern = new Design({
|
||||||
parts: [part],
|
parts: [part],
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
data: { name: 'test', version: '1.2.3' },
|
data: { name: 'test', version: '1.2.3' },
|
||||||
})
|
})
|
||||||
const pattern = new Pattern({ scale: 0.5 })
|
const pattern = new Pattern({ scale: 0.5 })
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import chai from 'chai'
|
import chai from 'chai'
|
||||||
import { Design, round } from '@freesewing/core'
|
import { Design, round } from '@freesewing/core'
|
||||||
import { annotationPlugin } from '../src/index.mjs'
|
import { annotationsPlugin } from '../src/index.mjs'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ describe('Sewtogether Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
const c = pattern.parts[0].test.paths.sewtogetherSewTogether
|
const c = pattern.parts[0].test.paths.sewtogetherSewTogether
|
||||||
|
@ -56,9 +56,9 @@ describe('Sewtogether Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test()
|
const pattern = new Test()
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
var c = pattern.parts[0].test.paths.sewtogetherSewTogetherHinge
|
var c = pattern.parts[0].test.paths.sewtogetherSewTogetherHinge
|
||||||
|
@ -87,9 +87,9 @@ describe('Sewtogether Plugin Tests', () => {
|
||||||
|
|
||||||
return part
|
return part
|
||||||
},
|
},
|
||||||
plugins: [annotationPlugin],
|
plugins: [annotationsPlugin],
|
||||||
}
|
}
|
||||||
const Test = new Design({ plugins: [annotationPlugin], parts: [part] })
|
const Test = new Design({ plugins: [annotationsPlugin], parts: [part] })
|
||||||
const pattern = new Test({ sa: 10 })
|
const pattern = new Test({ sa: 10 })
|
||||||
pattern.draft()
|
pattern.draft()
|
||||||
var c = pattern.parts[0].test.paths.sewtogetherSewTogetherHinge
|
var c = pattern.parts[0].test.paths.sewtogetherSewTogetherHinge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue