From 28806fe9779fee918ce24e5ef1338fd4dc5e024a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 26 Dec 2011 11:06:36 +0100 Subject: [PATCH] Ue the faster Matrix#_transformPoint(). And reuse Point objects if possible. --- src/path/Path.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index 54a08850..cbf79cc9 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1971,7 +1971,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ function add(point) { bounds = bounds.include(matrix - ? matrix.transform(point) : point); + ? matrix._transformPoint(point, point) : point); } function addBevelJoin(curve, t) { @@ -1987,7 +1987,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ if (join === 'round' || !segment._handleIn.isZero() && !segment._handleOut.isZero()) { bounds = bounds.unite(joinBounds.setCenter(matrix - ? matrix.transform(segment._point) : segment._point)); + ? matrix._transformPoint(segment._point) : segment._point)); } else if (join == 'bevel') { var curve = segment.getCurve(); addBevelJoin(curve, 0);