From 8dfa721e5aed384a532cc7968ba355f345d00feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 1 Oct 2015 21:12:15 -0500 Subject: [PATCH] Adjust debug rendering. --- src/path/PathItem.Boolean.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 9ba56009..c5d9eba7 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -71,8 +71,8 @@ PathItem.inject(new function() { return result; } - var scaleFactor = 0.25; // 1 / 3000; - var textAngle = 33; + var scaleFactor = 0.1; // 1 / 3000; + var textAngle = -30; var fontSize = 5; var segmentOffset; @@ -448,8 +448,8 @@ PathItem.inject(new function() { function labelSegment(seg, text, color) { var point = seg.point; - var key = Math.round(point.x / (4 * scaleFactor)) - + ',' + Math.round(point.y / (4 * scaleFactor)); + var key = Math.round(point.x / (10 * scaleFactor)) + + ',' + Math.round(point.y / (10 * scaleFactor)); var offset = segmentOffset[key] || 0; segmentOffset[key] = offset + 1; var size = fontSize * scaleFactor;