Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
afb96f6edf
2 changed files with 6 additions and 7 deletions
|
|
@ -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())
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue