Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 645: | Rivi 1 645: | ||
newsize = Math.round( Math.sqrt( Math.sqrt( ( w / 500 ) ) ) * orgsize ); | newsize = Math.round( Math.sqrt( Math.sqrt( ( w / 500 ) ) ) * orgsize ); | ||
newstroke = Math.round( Math.sqrt( Math.sqrt( ( w / 1 ) ) ) * orgstroke ); | newstroke = Math.round( Math.sqrt( Math.sqrt( ( w / 1 ) ) ) * orgstroke ); | ||
console.log( newstroke ); | |||
if ( w > 500 ) { | if ( w > 500 ) { | ||
v = v.replace( ' size: ' + oldsize, ' size: ' + newsize ); | v = v.replace( ' size: ' + oldsize, ' size: ' + newsize ); | ||
| Rivi 1 650: | Rivi 1 651: | ||
for ( var t in memo.options.trendlines ) { | for ( var t in memo.options.trendlines ) { | ||
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; | ||
} | } | ||
console.log( v ); | |||
} else { | } else { | ||
v = v.replace( ' size: ' + oldsize, ' size: ' + orgsize ); | v = v.replace( ' size: ' + oldsize, ' size: ' + orgsize ); | ||


