diff --git a/js/least-squares-regression/LeastSquaresRegressionConstants.ts b/js/least-squares-regression/LeastSquaresRegressionConstants.ts index f95a166..1184854 100644 --- a/js/least-squares-regression/LeastSquaresRegressionConstants.ts +++ b/js/least-squares-regression/LeastSquaresRegressionConstants.ts @@ -11,9 +11,6 @@ import leastSquaresRegression from '../leastSquaresRegression.js'; const LeastSquaresRegressionConstants = { - // speed for dataPoints to reach the bucket when animated - ANIMATION_SPEED: 0.001, // in model units per millisecond; - // Background color for sim and graph BACKGROUND_COLOR: 'rgb( 236, 255, 245 )', GRAPH_BACKGROUND_COLOR: 'rgb( 255, 255, 255 )', diff --git a/js/least-squares-regression/model/DataPoint.ts b/js/least-squares-regression/model/DataPoint.ts index ca0002c..98f2526 100644 --- a/js/least-squares-regression/model/DataPoint.ts +++ b/js/least-squares-regression/model/DataPoint.ts @@ -15,7 +15,6 @@ import Vector2Property from '../../../../dot/js/Vector2Property.js'; import Animation from '../../../../twixt/js/Animation.js'; import Easing from '../../../../twixt/js/Easing.js'; import leastSquaresRegression from '../../leastSquaresRegression.js'; -import LeastSquaresRegressionConstants from '../LeastSquaresRegressionConstants.js'; export default class DataPoint extends Disposable { @@ -76,7 +75,7 @@ export default class DataPoint extends Disposable { to: this.positionProperty.initialValue, easing: Easing.CUBIC_IN } ], - duration: distance / LeastSquaresRegressionConstants.ANIMATION_SPEED / 1000 + duration: 0.5 } ); animation.endedEmitter.addListener( () => {