Commit 493d3e8c authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

bug fix

parent ed8d4a49
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// CoNLL-U SVG RtoL by Koichi Yasuoka, September 19, 2020.
// CoNLL-U SVG RtoL by Koichi Yasuoka, September 29, 2020.
// "conllusvgview.js" is needed.
"use strict";
conllusvg.writeNodesSVG=function(textid){
@@ -49,8 +49,8 @@ conllusvg.writeNodesSVG=function(textid){
      g.appendChild(t);
      w=t.getBBox().width;
      if(w>90){
	t.setAttribute("transform","scale("+(90/w)+",1)");
	t.setAttribute("x",c.nodes[n].x*w/90);
	t.setAttribute("transform","scale("+(-90/w)+",1)");
	t.setAttribute("x",-c.nodes[n].x*w/90);
      }
    }
    if(c.nodes[n].form!="_"){