diff --git a/FloatingSpace/CircularProgressBar.js b/FloatingSpace/CircularProgressBar.js index a28c0ea68..613441a30 100644 --- a/FloatingSpace/CircularProgressBar.js +++ b/FloatingSpace/CircularProgressBar.js @@ -52,6 +52,7 @@ function newCircularProgressBar () { function onHeartBeat (message) { opacityCounters[message.event.seconds] = 2000 + thisObject.payload.uiObject.setValue(message.event.processingDate) } function getContainer (point) { diff --git a/FloatingSpace/StrategyPart.js b/FloatingSpace/StrategyPart.js index fdac1cac7..28038d0fe 100644 --- a/FloatingSpace/StrategyPart.js +++ b/FloatingSpace/StrategyPart.js @@ -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) {