From 53af7dd2dbc6cb26b5e158e988cf349b31b7df13 Mon Sep 17 00:00:00 2001 From: Glandos Date: Thu, 27 Jan 2022 22:18:14 +0100 Subject: Performance: don't create extra objects in point() (#1251) --- src/types/Point.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } -- cgit v1.2.3