diff options
author | Glandos <bugs-github@antipoul.fr> | 2022-01-27 22:18:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 07:18:14 +1000 |
commit | 53af7dd2dbc6cb26b5e158e988cf349b31b7df13 (patch) | |
tree | c686f014853619b5ad9dbe1f9f25d992d5f8a224 | |
parent | cbefb3aab476b4168024bd84382c13121f216191 (diff) | |
download | svg.js-53af7dd2dbc6cb26b5e158e988cf349b31b7df13.tar.gz svg.js-53af7dd2dbc6cb26b5e158e988cf349b31b7df13.zip |
Performance: don't create extra objects in point() (#1251)
-rw-r--r-- | src/types/Point.js | 2 |
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()) } |