From 73627346c07d638773b7ec8a66d2cb00f421d236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 17 Feb 2014 20:36:18 +0100 Subject: [PATCH] Remove unnecessary paper namespace prefixes inside the library. --- src/path/PathItem.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 06c350ef..08065265 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -113,8 +113,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{ // Check if extended handles of endpoints of this curve intersects // each other. We cannot have a self intersection within this curve // if they don't intersect due to convex-hull property. - ix = new paper.Line(from._point.subtract(v1), v1.multiply(2), true) - .intersect(new paper.Line(to._point.subtract(v2), + ix = new Line(from._point.subtract(v1), v1.multiply(2), true) + .intersect(new Line(to._point.subtract(v2), v2.multiply(2), true), false); if (ix) { parts = paper.Curve.subdivide(values1); @@ -507,7 +507,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ if (seg._visited || !operator(seg._winding)) continue; // Initialise a new path chain with the seed segment. - path = new paper.Path(); + path = new Path(); ixOther = seg._intersection; startSegIx = ixOther ? ixOther._segment : null; firstHandleIn = null; @@ -579,8 +579,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ firstHandleIn = nextHandleIn; nextHandleIn = null; } - path.add(new paper.Segment(seg._point, nextHandleIn, - nextHandleOut)); + path.add(new Segment(seg._point, nextHandleIn, nextHandleOut)); seg._visited = true; // Move to the next segment according to the traversal direction seg = direction > 0 ? seg.getNext() : seg. getPrevious();