From 0f61ce896a6a52fd106df6a725a4f8afa52ddaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 21 Sep 2015 10:54:33 -0400 Subject: [PATCH] Some code clean-up. --- src/path/PathItem.Boolean.js | 14 +++++++++----- src/project/Symbol.js | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 8bb3beb4a0..000c959b51 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -71,7 +71,7 @@ PathItem.inject(new function() { return result; } - var scaleFactor = 0.25; // 1 / 2000; + var scaleFactor = 1 / 10000; var textAngle = 33; var fontSize = 5; @@ -163,7 +163,7 @@ PathItem.inject(new function() { new Path.Circle({ center: inter.point, radius: 2 * scaleFactor, - fillColor: 'red', + strokeColor: 'red', strokeScaling: false }); console.log(log.map(function(v) { @@ -823,15 +823,19 @@ PathItem.inject(new function() { }, resolveCrossings: function() { - var crossings = this.getCrossings(); - if (!crossings.length) - return this.reorient(); var reportSegments = window.reportSegments; var reportWindings = window.reportWindings; var reportIntersections = window.reportIntersections; window.reportSegments = false; window.reportWindings = false; window.reportIntersections = false; + var crossings = this.getCrossings(); + if (!crossings.length) { + window.reportSegments = reportSegments; + window.reportWindings = reportWindings; + window.reportIntersections = reportIntersections; + return this.reorient(); + } splitPath(CurveLocation.expand(crossings)); var paths = this._children || [this], segments = []; diff --git a/src/project/Symbol.js b/src/project/Symbol.js index 6e8d25f779..736b53df2e 100644 --- a/src/project/Symbol.js +++ b/src/project/Symbol.js @@ -133,7 +133,7 @@ var Symbol = Base.extend(/** @lends Symbol# */{ /** * Places in instance of the symbol in the project. * - * @param [position] The position of the placed symbol + * @param {Point} [position] the position of the placed symbol * @return {PlacedSymbol} */ place: function(position) {