assets/js/frame.js in appscms-tools-theme-2.5.9 vs assets/js/frame.js in appscms-tools-theme-2.6.0
- old
+ new
@@ -81,21 +81,23 @@
)
}
if (item.translate) {
ctx.translate(item.translate.x, item.translate.y)
}
- if (item.skew) {
- ctx.setTransform(1, item.skew.x, item.skew.y, 1, 0, 0)
- }
if (perspectiveKey) {
let p = new Perspective(ctx, image)
p.draw([
[item.perspective.topLeft.x, item.perspective.topLeft.y],
[item.perspective.topRight.x, item.perspective.topRight.y],
[item.perspective.bottomRight.x, item.perspective.bottomRight.y],
[item.perspective.bottomLeft.x, item.perspective.bottomLeft.y],
])
}
+
+ if (item.skew) {
+ ctx.setTransform(1, item.skew.x, item.skew.y, 1, 0, 0)
+ }
+
ctx.restore()
resolve()
}
})
}