首页 > 技术文章 > Jtopo使用中link中文字与link平行

jerrypig 2017-09-21 23:20 原文

修改源代码如下

//新增
a.translate(e ,f );
a.rotate(Math.atan((d.y-c.y)/(d.x-c.x)));
//修改
a.fillText(this.text, -g/2,-h/2);

推荐阅读