1
0
Fork 0

fix tests for new transform generation

This commit is contained in:
Enoch Riese 2022-08-14 17:17:21 -05:00
parent 5a711d60a9
commit a271117381
2 changed files with 2 additions and 4 deletions

View file

@ -558,8 +558,7 @@ it("Should generate a part transform", () => {
.line(part.points.to);
part.stack();
const transform = utils.generatePartTransform(30,60,90,true,true,part)
expect(transform.transform).to.equal("translate(30,60) scale(-1, 1) scale(1, -1) rotate(90)");
expect(transform['transform-origin']).to.equal("10.5 39")
expect(transform.transform).to.equal(`translate(${30 + part.topLeft.x + part.bottomRight.x} ${60 + part.topLeft.y + part.bottomRight.y}) scale(-1 -1) rotate(90 ${part.topLeft.x + part.width/2} ${part.topLeft.y + part.height/2})`);
});