如何更改多边形的标签位置?
p = this.board.create('polygon',[p1,p2,p4,p3],{
withLines:false,
withLabel: true,
name: function () {
return "lala " + p1.Dist(p2).toFixed(2) + "m";
},
id: p3.X() + "_" + p4.Y()
});发布于 2012-11-03 18:42:55
在JSXGraph中,多边形标签默认居中。您可以通过标签提供偏移值(以像素为单位):{ offset:xoff,yoff }
参见http://jsxgraph.uni-bayreuth.de/wiki/index.php/Positioning_of_labels。
https://stackoverflow.com/questions/13001660
复制相似问题