equal
deleted
inserted
replaced
5731 </xsl:text> |
5731 </xsl:text> |
5732 <xsl:text> let size = Math.max(this.range * this.mincursize, Math.min(this.size, range)); |
5732 <xsl:text> let size = Math.max(this.range * this.mincursize, Math.min(this.size, range)); |
5733 </xsl:text> |
5733 </xsl:text> |
5734 <xsl:text> let maxh = this.range_elt.height.baseVal.value; |
5734 <xsl:text> let maxh = this.range_elt.height.baseVal.value; |
5735 </xsl:text> |
5735 </xsl:text> |
5736 <xsl:text> let pixels = (range - size) * maxh; |
5736 <xsl:text> let pixels = maxh; |
5737 </xsl:text> |
5737 </xsl:text> |
5738 <xsl:text> let units = range*range; |
5738 <xsl:text> let units = range; |
5739 </xsl:text> |
5739 </xsl:text> |
5740 <xsl:text> return [size, maxh, range, pixels, units]; |
5740 <xsl:text> return [size, maxh, range, pixels, units]; |
5741 </xsl:text> |
5741 </xsl:text> |
5742 <xsl:text> } |
5742 <xsl:text> } |
5743 </xsl:text> |
5743 </xsl:text> |
5751 </xsl:text> |
5751 </xsl:text> |
5752 <xsl:text> let [size, maxh, range, pixels, units] = this.get_ratios(); |
5752 <xsl:text> let [size, maxh, range, pixels, units] = this.get_ratios(); |
5753 </xsl:text> |
5753 </xsl:text> |
5754 <xsl:text> |
5754 <xsl:text> |
5755 </xsl:text> |
5755 </xsl:text> |
5756 <xsl:text> let new_y = this.range_elt.y.baseVal.value + Math.round(Math.min(this.position,range) * pixels / units); |
5756 <xsl:text> let new_y = this.range_elt.y.baseVal.value + Math.round(Math.min(this.position,range-size) * pixels / units); |
5757 </xsl:text> |
5757 </xsl:text> |
5758 <xsl:text> let new_height = Math.round(maxh * size/range); |
5758 <xsl:text> let new_height = Math.round(maxh * size/range); |
5759 </xsl:text> |
5759 </xsl:text> |
5760 <xsl:text> |
5760 <xsl:text> |
5761 </xsl:text> |
5761 </xsl:text> |
5781 </xsl:text> |
5781 </xsl:text> |
5782 <xsl:text> |
5782 <xsl:text> |
5783 </xsl:text> |
5783 </xsl:text> |
5784 <xsl:text> apply_position(position){ |
5784 <xsl:text> apply_position(position){ |
5785 </xsl:text> |
5785 </xsl:text> |
5786 <xsl:text> this.position = Math.round(Math.max(Math.min(position, this.range), 0)); |
5786 <xsl:text> this.position = Math.round(Math.max(Math.min(position, this.range - this.size), 0)); |
5787 </xsl:text> |
5787 </xsl:text> |
5788 <xsl:text> this.apply_hmi_value(0, this.position); |
5788 <xsl:text> this.apply_hmi_value(0, this.position); |
5789 </xsl:text> |
5789 </xsl:text> |
5790 <xsl:text> } |
5790 <xsl:text> } |
5791 </xsl:text> |
5791 </xsl:text> |