chore(plugin-mirror): Ported to v3
This commit is contained in:
parent
bd156862d4
commit
e843144355
5 changed files with 17 additions and 16 deletions
|
@ -1,11 +1,11 @@
|
|||
import chai from 'chai'
|
||||
import freesewing from '@freesewing/core'
|
||||
import plugin from '../dist/index.mjs'
|
||||
import { Pattern } from '@freesewing/core'
|
||||
import { plugin } from '../dist/index.mjs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
describe('Mirror Plugin Tests', () => {
|
||||
const pattern = new freesewing.Pattern().use(plugin)
|
||||
const pattern = new Pattern().use(plugin)
|
||||
pattern.parts.test = new pattern.Part()
|
||||
pattern.parts.test.points.mirrorA = new pattern.Point(-100, -100)
|
||||
pattern.parts.test.points.mirrorB = new pattern.Point(100, 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue