diff --git a/.vs/AAWeb/v15/.suo b/.vs/AAWeb/v15/.suo index 1b79158db..5417763ee 100644 Binary files a/.vs/AAWeb/v15/.suo and b/.vs/AAWeb/v15/.suo differ diff --git a/FloatingSpace/Bubble.js b/FloatingSpace/Bubble.js index 31349458f..39f32d0d8 100644 --- a/FloatingSpace/Bubble.js +++ b/FloatingSpace/Bubble.js @@ -222,11 +222,6 @@ function newBubble() { if (SIZE_PERCENTAGE > 0.9) { - let startingPosition = { - x: pFloatingObject.currentPosition.x, - y: pFloatingObject.currentPosition.y - TOTAL_ROWS / 2 * (fontSize * 0.60 + 10) - }; - let rawLabelArray = label.split(" "); let labelArray = []; @@ -247,7 +242,9 @@ function newBubble() { } } - /* Now we plot each row. */ + /* Calculate each ROW */ + + let labelRows = []; for (let i = 0; i < TOTAL_ROWS; i++) { @@ -263,6 +260,25 @@ function newBubble() { } } + if (labelRow !== "") { + + labelRows.push(labelRow); + + } + + } + + /* Now we plot each row. */ + + for (let i = 0; i < labelRows.length; i++) { + + let labelRow = labelRows[i]; + + let startingPosition = { + x: pFloatingObject.currentPosition.x, + y: pFloatingObject.currentPosition.y - labelRows.length / 2 * (fontSize * 0.60 + 10) + }; + labelPoint = { x: startingPosition.x - labelRow.length / 2 * fontSize * 0.60, y: startingPosition.y + (i + 1) * (fontSize * 0.60 + 10) diff --git a/server.js b/server.js index f4b180fca..626140bfd 100644 --- a/server.js +++ b/server.js @@ -6,7 +6,7 @@ if (CONSOLE_LOG === true) { } -const DEBUG_MODE = false; // This forces the server to read Plotters from the local drive. +const DEBUG_MODE = true; // This forces the server to read Plotters from the local drive. if (CONSOLE_LOG === true && DEBUG_MODE === true) {