Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 644: | Rivi 1 644: | ||
orgstroke = parseFloat( v.match( /original-stroke-size: .+;/g )[0].replace( 'original-stroke-size: ', '' ).replace( ';', '') ); | orgstroke = parseFloat( v.match( /original-stroke-size: .+;/g )[0].replace( 'original-stroke-size: ', '' ).replace( ';', '') ); | ||
newsize = Math.round( Math.sqrt( Math.sqrt( ( w / 500 ) ) ) * orgsize ); | newsize = Math.round( Math.sqrt( Math.sqrt( ( w / 500 ) ) ) * orgsize ); | ||
newstroke = Math.sqrt( ( w / | newstroke = Math.sqrt( ( w / 400 ) ) * orgstroke; | ||
if ( w > 500 ) { | if ( w > 500 ) { | ||
| Rivi 1 652: | Rivi 1 652: | ||
memo.options.trendlines[t].lineWidth = Math.sqrt( (w/500) ) * memo.options.trendlines[t].originalLineWidth; | memo.options.trendlines[t].lineWidth = Math.sqrt( (w/500) ) * memo.options.trendlines[t].originalLineWidth; | ||
} | } | ||
} else { | } else { | ||
v = v.replace( ' size: ' + oldsize.toString(), ' size: ' + orgsize.toString() ); | v = v.replace( ' size: ' + oldsize.toString(), ' size: ' + orgsize.toString() ); | ||


