Wikipedia:WikiProject Chemistry/Structure drawing workgroup/Mysid's script: Difference between revisions

Content deleted Content added
Dump source code for evaluation
 
Fix positioning code
Line 175:
#well. There is a group which encompasses all the tags, so put it there.
if (!$firstgroupflag && /<g/) {
s/<g/<g$movex transform=\"translate(- 0.95*$minx,-$miny)\"/;
$movey = 0.95*$miny;
s/<g/<g transform=\"translate(-$movex,-$movey)\"/;
#Only do it once!
$firstgroupflag = 1 ;