aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlandos <bugs-github@antipoul.fr>2022-01-27 22:18:14 +0100
committerGitHub <noreply@github.com>2022-01-28 07:18:14 +1000
commit53af7dd2dbc6cb26b5e158e988cf349b31b7df13 (patch)
treec686f014853619b5ad9dbe1f9f25d992d5f8a224 /src
parentcbefb3aab476b4168024bd84382c13121f216191 (diff)
downloadsvg.js-53af7dd2dbc6cb26b5e158e988cf349b31b7df13.tar.gz
svg.js-53af7dd2dbc6cb26b5e158e988cf349b31b7df13.zip
Performance: don't create extra objects in point() (#1251)
Diffstat (limited to 'src')
-rw-r--r--src/types/Point.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/Point.js b/src/types/Point.js
index f028e6d..76fd985 100644
--- a/src/types/Point.js
+++ b/src/types/Point.js
@@ -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())
}