Displaying a date when value is set

This commit is contained in:
Luis Fernando Molina committed 2019-10-04 21:21:36 +02:00
1 parent 5f2d8f0c1d
commit 74b4f7e40d
2 files changed
+9 -5

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ function newCircularProgressBar () {
function onHeartBeat (message) {
opacityCounters[message.event.seconds] = 2000
thisObject.payload.uiObject.setValue(message.event.processingDate)
}
function getContainer (point) {
+8 -5
View File
@@ -82,7 +82,7 @@ function newStrategyPart () {
let attachToNode
let errorMessage = ''
let formulaValue = 0
let currentValue = 0
let rightDragging = false
return thisObject
@@ -577,9 +577,9 @@ function newStrategyPart () {
function setValue (value) {
if (value !== undefined) {
formulaValue = value
currentValue = value
hasValue = true
valueCounter = 5
valueCounter = 100
}
}
@@ -904,7 +904,7 @@ function newStrategyPart () {
position = thisObject.container.frame.frameThisPoint(position)
let radius = thisObject.container.frame.radius
let radius = thisObject.container.frame.radius * 1.5
/* Label Text */
let labelPoint
let fontSize = thisObject.payload.floatingObject.currentFontSize * 6 / 4
@@ -913,7 +913,10 @@ function newStrategyPart () {
if (radius > 6) {
const MAX_LABEL_LENGTH = 30
label = formulaValue.toFixed(2)
label = currentValue
if (!isNaN(label)) {
label = currentValue.toFixed(2)
}
if (label !== undefined) {
if (label.length > MAX_LABEL_LENGTH) {