Skip to content

Commit

Permalink
Performance: don't create extra objects in point() (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glandos authored Jan 27, 2022
1 parent cbefb3a commit 53af7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/Point.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export default class Point {
}

export function point (x, y) {
return new Point(x, y).transform(this.screenCTM().inverse())
return new Point(x, y).transformO(this.screenCTM().inverseO())
}

0 comments on commit 53af7dd

Please sign in to comment.