diff --git a/Animation.js b/Animation.js index 02182b246..4a0e1e72d 100644 --- a/Animation.js +++ b/Animation.js @@ -129,7 +129,6 @@ function newAnimation () { printLabel(DEBUG.variable3, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) row++ printLabel(DEBUG.variable4, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) - console.log(DEBUG.variable4) } } else { browserCanvas.width = 1 diff --git a/ChartsSpace/CoordinateSystem.js b/ChartsSpace/CoordinateSystem.js index ed6996e5e..9d2ce752c 100644 --- a/ChartsSpace/CoordinateSystem.js +++ b/ChartsSpace/CoordinateSystem.js @@ -79,16 +79,23 @@ function newCoordinateSystem () { if (thisObject.autoMaxScale === true && thisObject.max.y !== newMax) { thisObject.max.y = newMax - newMax = -VERY_LARGE_NUMBER mustRecalculate = true } + if (thisObject.autoMaxScale === true) { + newMax = -VERY_LARGE_NUMBER + } + if (thisObject.autoMinScale === true && thisObject.min.y !== newMin) { thisObject.min.y = newMin newMin = VERY_LARGE_NUMBER mustRecalculate = true } + if (thisObject.autoMinScale === true) { + newMin = VERY_LARGE_NUMBER + } + if (mustRecalculate === true) { recalculateScale() } diff --git a/ChartsSpace/TimelineChart.js b/ChartsSpace/TimelineChart.js index 25fc0c616..c92c946b6 100644 --- a/ChartsSpace/TimelineChart.js +++ b/ChartsSpace/TimelineChart.js @@ -316,7 +316,7 @@ function newTimelineChart () { } function thisObjectPhysics () { - + timelineChartCoordinateSystem.physics() } function syncWithDesignerLayersManager () { diff --git a/Scales/RateScale.js b/Scales/RateScale.js index ee6c4ab88..1d4225c58 100644 --- a/Scales/RateScale.js +++ b/Scales/RateScale.js @@ -152,6 +152,7 @@ function newRateScale () { } function saveObjectState () { + return try { let code = JSON.parse(thisObject.payload.node.code) code.minValue = coordinateSystem.min.y @@ -165,6 +166,7 @@ function newRateScale () { } function readObjectState () { + return try { let code = JSON.parse(thisObject.payload.node.code)