chg: [decaying:tool] Handle is placed closer to t=0

pull/5032/head
mokaddem 2019-08-21 10:11:28 +02:00
parent 80f527ea16
commit 6be63d45a6
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 4 additions and 4 deletions

View File

@ -223,8 +223,8 @@
.append('circle')
.attr('id', 'decayingGraphHandleDot')
.attr('class', 'decayingGraphHandleDot useCursorPointer')
.attr("cx", function(d) { return that.x(parseFloat($('#input_lifetime').val()/2)); })
.attr("cy", function(d) { return that.y(that.getScore(parseInt($('#input_lifetime').val()/2))); })
.attr("cx", function(d) { return that.x(parseFloat($('#input_lifetime').val()/4)); })
.attr("cy", function(d) { return that.y(that.getScore(parseInt($('#input_lifetime').val()/4))); })
.attr("r", 5)
.call(this.drag);
@ -311,8 +311,8 @@
if (computeFromHandle === undefined) {
this.svg.select('.decayingGraphHandleDot')
.attr("cx", function(d) { return that.x(parseFloat($('#input_lifetime').val()/2)); })
.attr("cy", function(d) { return that.y(that.getScore(parseFloat($('#input_lifetime').val()/2))); });
.attr("cx", function(d) { return that.x(parseFloat($('#input_lifetime').val()/4)); })
.attr("cy", function(d) { return that.y(that.getScore(parseFloat($('#input_lifetime').val()/4))); });
}
this.svg.select(".axis-x")