1
0
Fork 0

chore(plugin-mirror): Ported to v3

This commit is contained in:
Joost De Cock 2022-08-28 13:32:22 +02:00
parent bd156862d4
commit e843144355
5 changed files with 17 additions and 16 deletions

View file

@ -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)