]> source.dussan.org Git - svg.js.git/commitdiff
Performance: don't create extra objects in point() (#1251)
authorGlandos <bugs-github@antipoul.fr>
Thu, 27 Jan 2022 21:18:14 +0000 (22:18 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Jan 2022 21:18:14 +0000 (07:18 +1000)
src/types/Point.js

index f028e6d67e7648e5ef8afc2083d3496535feffd6..76fd98517f63f4394b3fce2d786654aac2941cce 100644 (file)
@@ -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())
 }