Merge branch 'master' of github.com:jean-emmanuel/open-stage-control

This commit is contained in:
bordun 2020-11-22 18:06:18 +01:00
commit afb96f6edf
2 changed files with 6 additions and 7 deletions

View file

@ -45,8 +45,8 @@ function getTransformationMatrix(w) {
}
module.export = function cssTransformCoords(node, x, y) {
module.exports = function cssTransformCoords(node, x, y) {
return new Point(pageX, pageY, 0).transformBy(getTransformationMatrix(element).inverse())
return new Point(x, y, 0).transformBy(getTransformationMatrix(node).inverse())
}