Deep Scan found bug fixes

This commit is contained in:
Luis Fernando Molina committed 2021-01-17 21:03:53 +01:00
1 parent 90f2f28683
commit a5d2f3941a
3 files changed
+2 -16

No files matched your search

@@ -91,9 +91,6 @@
let dataDependencies;
let nextWaitTime;
processStopped()
TS.projects.superalgos.globals.taskVariables.FATAL_ERROR_MESSAGE = "The world is collapsing..."
return
initializeProcessExecutionEvents();
@@ -1751,7 +1751,7 @@ function newUiObject() {
if (thisObject.hasError === true) { return }
if (thisObject.hasWarning !== true) { return }
thisObject.uiObjectMessage.text = errorMessage
thisObject.uiObjectMessage.text = warningMessage
thisObject.uiObjectMessage.type = 'Warning'
thisObject.uiObjectMessage.docs = warningDocs
}
@@ -1761,7 +1761,7 @@ function newUiObject() {
if (thisObject.hasWarning === true) { return }
if (thisObject.hasInfo !== true) { return }
thisObject.uiObjectMessage.text = errorMessage
thisObject.uiObjectMessage.text = infoMessage
thisObject.uiObjectMessage.type = 'Info'
thisObject.uiObjectMessage.docs = infoDocs
}
@@ -58,7 +58,6 @@ function newUiObjectMessage() {
function physics() {
if (thisObject.text === undefined) { return }
let text = trimMessageText(thisObject.text)
/* Here we set the dimensions and position of this object */
const FRAME_HEIGHT = 120
@@ -173,7 +172,6 @@ function newUiObjectMessage() {
if (label.length > IDEAL_LABEL_LENGTH * 3) {
label = label.substring(0, IDEAL_LABEL_LENGTH * 3) + '...'
}
fontSize = 15
}
/* Split the line into Phrases */
@@ -201,14 +199,5 @@ function newUiObjectMessage() {
}
}
}
function trimMessageText(text) {
if (text === undefined) { return }
const MAX_LABEL_LENGTH = 35
if (text.length > MAX_LABEL_LENGTH) {
text = text.substring(0, MAX_LABEL_LENGTH) + '...'
}
return text
}
}