equal
deleted
inserted
replaced
718 | this.needle_elt.setAttribute('d', "M "+this.origin.x+","+this.origin.y+" "+tip.x+","+tip.y); |
718 | this.needle_elt.setAttribute('d', "M "+this.origin.x+","+this.origin.y+" "+tip.x+","+tip.y); |
719 | }, |
719 | }, |
720 | origin: undefined, |
720 | origin: undefined, |
721 | range: undefined, |
721 | range: undefined, |
722 | init: function() { |
722 | init: function() { |
723 | let min = this.min_elt ? Number(this.min_elt.textContent) : 0; |
723 | let min = this.min_elt ? |
724 | let max = this.max_elt ? Number(this.max_elt.textContent) : 100; |
724 | Number(this.min_elt.textContent) : |
|
725 | this.args.length >= 1 ? this.args[0] : 0; |
|
726 | let max = this.max_elt ? |
|
727 | Number(this.max_elt.textContent) : |
|
728 | this.args.length >= 2 ? this.args[1] : 100; |
725 | this.range = [min, max, this.range_elt.getTotalLength()] |
729 | this.range = [min, max, this.range_elt.getTotalLength()] |
726 | this.origin = this.needle_elt.getPointAtLength(0); |
730 | this.origin = this.needle_elt.getPointAtLength(0); |
727 | }, |
731 | }, |
728 } |
732 } |
729 |
733 |