Skip to content

Commit

Permalink
Some code clean-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Sep 21, 2015
1 parent ce95043 commit 0f61ce8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/path/PathItem.Boolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion src/project/Symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0f61ce8

Please sign in to comment.