function update() {
            var currentTime = Date.now();
            this.currentValue = currentTime >= this.targetTime ?
                this.targetValue :
                this.startValue + (this.targetValue - this.startValue) *
                    this._transform((currentTime - this.startTime) / (this.targetTime - this.startTime));
            return this;
        }
/**
         * Updates the current value of the spring based on current time and start and target values.
         * This method has to be invoked manually which is done by Malakh.Drawer.
         */
Updates the current value of the spring based on current time and start and target values.
This method has to be invoked manually which is done by Malakh.Drawer.
Updates the current value of the spring based on current time and start and target values . This method has to be invoked manually which is done by Malakh . Drawer .
function update() {
            var currentTime = Date.now();
            this.currentValue = currentTime >= this.targetTime ?
                this.targetValue :
                this.startValue + (this.targetValue - this.startValue) *
                    this._transform((currentTime - this.startTime) / (this.targetTime - this.startTime));
            return this;
        }
function update ( ) { var currentTime = Date . now ( ) ; this . currentValue = currentTime >= this . targetTime ? this . targetValue : this . startValue + ( this . targetValue - this . startValue ) * this . _transform ( ( currentTime - this . startTime ) / ( this . targetTime - this . startTime ) ) ; return this ; }
Updates the current value of the spring based on current time and start and target values.
Updates the current value of the spring based on current time and start and target values .