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 = | newstroke = w * orgstroke; | ||
if ( w > 500 ) { | if ( w > 500 ) { | ||
v = v.replace( ' size: ' + oldsize, ' size: ' + newsize ); | v = v.replace( ' size: ' + oldsize.toString(), ' size: ' + newsize.toString() ); | ||
v = v.replace( ' stroke-width: ' + oldstroke.toString(), ' stroke-width: ' + newstroke.toString() ); | v = v.replace( ' stroke-width: ' + oldstroke.toString(), ' stroke-width: ' + newstroke.toString() ); | ||
for ( var t in memo.options.trendlines ) { | for ( var t in memo.options.trendlines ) { | ||
| Rivi 1 656: | Rivi 1 654: | ||
console.log( v ); | console.log( v ); | ||
} else { | } else { | ||
v = v.replace( ' size: ' + oldsize, ' size: ' + orgsize ); | v = v.replace( ' size: ' + oldsize.toString(), ' size: ' + orgsize.toString() ); | ||
v = v.replace( ' stroke-width: ' + oldstroke.toString(), ' stroke-width: ' + orgstroke.toString() ); | v = v.replace( ' stroke-width: ' + oldstroke.toString(), ' stroke-width: ' + orgstroke.toString() ); | ||
for ( var t in memo.options.trendlines ) { | for ( var t in memo.options.trendlines ) { | ||


