Text in Bubbles improved

This commit is contained in:
Luis Fernando Molina committed 2018-05-05 14:47:20 +02:00
1 parent a52da1695f
commit cd7e0eccb2
3 files changed
+23 -7

No files matched your search

Binary file not shown.
+22 -6
View File
@@ -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)
+1 -1
View File
@@ -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) {